body { background-color: #f7f9fc; }
.topbar { background: #2c2f33; color: white; }
.topbar a { color: white; text-decoration: none; margin-left: 15px; }
.card-option {
  transition: 0.3s;
  cursor: pointer;
}
.card-option:hover {
  background-color: #0d6efd;
  transform: translateY(-3px);
}
.active {
  background-color: #0d6efd;
  color: #fff;  
  transition: 0.5s;
}
.active i{
  color: #fff!important;
}
.card-option i {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.card-option:hover i,
.card-option:hover p {
  color: white !important; /* içindeki ikon ve yazının rengini de beyaz yap */
}

.icon-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}


/*Card için bunu ana style.css e alırsın*/
  /* Kart görselliği */
.feature-card{ transition:transform .2s ease, box-shadow .2s ease; }
.feature-card:hover{ transform:translateY(-4px); box-shadow:0 12px 30px rgba(13,110,253,.12); }
.icon-badge{ width:44px; height:44px; display:grid; place-items:center; }
/*contacts.php için*/
.message-card{
  border:1px solid #e9ecef;border-radius:10px;padding:15px;margin-bottom:15px;background:#fff;
  display:flex;gap:12px;align-items:flex-start;justify-content:space-between;
  transition:background .25s ease,border-color .25s ease,box-shadow .25s ease, transform .2s ease;
}
.message-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.06);}
.message-index{font-weight:700;font-size:18px;color:#0d6efd;width:40px;text-align:center;}
.message-info{flex:1;min-width:0;}
.message-info .info-row{margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;}
.message-info strong{width:120px;display:inline-block;}
.message-actions{display:flex;gap:8px;flex-wrap:wrap;}
/* Okundu görünümü */
.message-card.read{
  background:#e8f5e9; /* açık yeşil */
  border-color:#7dd18a;
  box-shadow:0 0 0 3px rgba(76,175,80,.15);
}
/* Yıldızlı görünümü */
.message-card.starred{
  border-color:#f6c344;
  box-shadow:0 0 12px 3px rgba(246,195,68,.60);
}
.btn-star.active{
  border-color:#f6c344 !important;
  color:#b8860b !important;
  background:#fff7e0 !important;
}
@media (max-width: 576px){
  /* Buton yazılarını gizle, ikonları bırak */
  .message-actions span {
    display: none;
  }
  .message-actions i {
    margin-right: 0 !important;
    font-size: 1.2rem; /* ikonları biraz büyütelim */
  }

  /* Bilgi satırlarını okunabilir yap */
  .message-info {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  .message-info .info-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    white-space: normal; /* taşma engellenir */
  }
  .message-info strong{
    width: auto; /* sabit genişliği kaldır */
    display: inline-block;
    color: #0d6efd; /* mobilde başlık mavi gözüksün */
  }

  /* Kart içi spacing */
  .message-card {
    flex-direction: column; /* yan yana yerine alt alta */
    gap: 10px;
  }
  .message-actions {
    justify-content: flex-start;
  }
}
/*contacts.php Bitiş*/
/*Small Yazıları Başlangıç*/
.text-danger {
  display: none; /* başta gizle */
  font-size: 0.9rem;
}
.text-danger.active {
  display: block; /* hata durumunda göster */
}
/*Small Yazıları Bitiş*/
/*login.php*/
.login-card {
  margin-top: 5%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.45);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
}
.login-card h3 {
  font-weight: bold;
  margin-bottom: 1rem;
  color: #1e3a8a;
}
.btn-custom {
  background: #3b82f6;
  color: #fff;
  transition: 0.3s;
}
.btn-custom:hover {
  background: #1e3a8a;
  color: #fff;
}
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}
@media (max-width: 576px) {
  .login-card {
    margin-top: 0%;
    margin: 10px;
    padding: 1.5rem;
    box-shadow: 0 6px 18px rgba(255, 0, 0, 0.35);
    border-radius: 10px;           /* tam ekran hissi için (isteğe bağlı) */
  }
  .login-card h3 {
    font-size: 1.3rem;   /* başlık biraz küçülür */
    text-align: center;  /* mobilde ortalanmış başlık daha iyi durur */
  }
  /* Form elemanları tam ekran */
  .form-control {
    font-size: 0.95rem;
    padding: .55rem .75rem;
  }
  /* Beni Hatırla + Şifre unuttum alanı taşma yapmasın */
  .d-flex.flex-wrap a {
    width: 90%;
    text-align: right;
    margin-top: 5px;
  }
}

/*login bitiş*/
/*Hakkımızda Başlangıç*/


.form-label {
  font-weight: 500;
}
/*Hakkımızda Bitiş*/

/*Dashboard Başlangıç*/
.dashboard {
  padding: 20px;
}
.chart-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 20px;
}
canvas {
  width: 100% !important;
  height: auto !important;
}
/*Dashboard Bitiş*/