/* ============================================================
   Site Yönetim Sistemi — Sneat-stili özel tema
   Bootstrap 5 CDN ile birlikte kullanılır
   ============================================================ */

:root {
  --sneat-primary: #696cff;
  --sneat-primary-rgb: 105, 108, 255;
  --sneat-body-bg: #f5f5f9;
  --sneat-sidebar-bg: #fff;
  --sneat-sidebar-width: 260px;
  --sneat-sidebar-icon-color: #a3a4cc;
  --sneat-heading: #566a7f;
  --sneat-border: #d9dee3;
}

body {
  background: var(--sneat-body-bg);
  font-family: 'Public Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #697a8d;
}

/* ---------- Layout sarmalayıcı ---------- */
.layout-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ---------- Kenar çubuğu (sidebar) ---------- */
.layout-menu {
  width: var(--sneat-sidebar-width);
  background: var(--sneat-sidebar-bg);
  border-right: 1px solid var(--sneat-border);
  padding: 0 0 1rem;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  overflow-y: auto;
  transition: margin-left .25s ease;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: 1rem 1.25rem;
  margin-bottom: .5rem;
}

.app-brand-text {
  font-weight: 700;
  color: var(--sneat-heading);
  font-size: 1.4rem;
  letter-spacing: -.4px;
  white-space: nowrap;
}

.menu-inner {
  list-style: none;
  margin: 0;
  padding: .5rem;
}

.menu-item {
  margin-bottom: .2rem;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .62rem 1rem;
  border-radius: .5rem;
  color: #566a7f;
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  transition: all .18s ease;
}

.menu-link .menu-icon {
  font-size: 1.3rem;
  color: var(--sneat-sidebar-icon-color);
  width: 1.5rem;
  text-align: center;
}

.menu-link:hover {
  background: rgba(var(--sneat-primary-rgb), .08);
  color: var(--sneat-primary);
}

.menu-item.active > .menu-link {
  background: var(--sneat-primary);
  color: #fff;
}

.menu-item.active > .menu-link .menu-icon {
  color: #fff;
}

.menu-header {
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .6px;
  color: #a3a4cc;
  padding: 1rem 1rem .5rem;
  font-weight: 600;
}

/* ---------- Ana içerik ---------- */
.layout-page {
  flex: 1;
  margin-left: var(--sneat-sidebar-width);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

/* ---------- Üst çubuk (navbar) ---------- */
.layout-navbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid var(--sneat-border);
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.layout-navbar .navbar-search {
  position: relative;
  width: 240px;
}

.layout-navbar .navbar-search .form-control {
  border-radius: 50rem;
  padding-left: 2.4rem;
  background: var(--sneat-body-bg);
  border-color: transparent;
}

.layout-navbar .navbar-search .search-icon {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #a3a4cc;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.dropdown-user {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--sneat-heading);
  font-weight: 600;
}

/* ---------- İçerik ---------- */
.layout-content {
  padding: 1.5rem;
  flex: 1;
}

.content-wrapper {
  max-width: 1440px;
  margin: 0 auto;
}

/* ---------- Kartlar ---------- */
.card {
  border: 0;
  box-shadow: 0 2px 6px rgba(67, 89, 113, .08);
  border-radius: .6rem;
}

.card-header {
  background: transparent;
  border-bottom: 1px solid rgba(67, 89, 113, .08);
  padding: 1.1rem 1.25rem;
}

.card-title {
  color: var(--sneat-heading);
  font-weight: 600;
  margin: 0;
}

.card-body {
  padding: 1.25rem;
}

/* ---------- Sayaç kartları (stats) ---------- */
.card-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card-stat .stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-label {
  color: #a3a4cc;
  font-size: .8rem;
  margin-bottom: .15rem;
}

.stat-value {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--sneat-heading);
  line-height: 1.1;
}

/* ---------- Tablolar ---------- */
.table th {
  color: var(--sneat-heading);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--sneat-border);
  padding: .8rem 1rem;
}

.table td {
  padding: .8rem 1rem;
  vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
  background: rgba(67, 89, 113, .03);
}

/* ---------- Rozetler ---------- */
.badge-soft-success {
  background: rgba(34, 197, 94, .12);
  color: #22c55e;
}
.badge-soft-warning {
  background: rgba(242, 153, 74, .15);
  color: #f2994a;
}
.badge-soft-danger {
  background: rgba(255, 86, 48, .12);
  color: #ff5630;
}
.badge-soft-primary {
  background: rgba(var(--sneat-primary-rgb), .12);
  color: var(--sneat-primary);
}
.badge-soft-info {
  background: rgba(3, 195, 236, .12);
  color: #03c3ec;
}
.badge-soft-secondary {
  background: rgba(133, 146, 163, .12);
  color: #8592a3;
}

/* ---------- WhatsApp Özel Buton ---------- */
.btn-whatsapp {
  background-color: #25D366;
  color: #fff !important;
  border: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: all .2s ease;
  box-shadow: 0 2px 6px rgba(37, 211, 102, .3);
}
.btn-whatsapp:hover, .btn-whatsapp:focus {
  background-color: #1ea952;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 211, 102, .4);
}

/* ---------- Daire gizlilik uyarısı (KVKK) ---------- */
.kvkk-privacy-note {
  background: rgba(var(--sneat-primary-rgb), .06);
  border: 1px dashed rgba(var(--sneat-primary-rgb), .45);
  border-radius: .6rem;
  padding: .9rem 1rem;
  color: #566a7f;
  font-size: .85rem;
  display: flex;
  gap: .6rem;
  align-items: flex-start;
}

/* ---------- Giriş sayfası ---------- */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #696cff 0%, #8771e0 100%);
  padding: 1rem;
}

.auth-card {
  width: 100%;
  max-width: 430px;
  border: 0;
  border-radius: .9rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
}

.auth-card .card-body {
  padding: 2.25rem;
}

/* ---------- Avatar ---------- */
.avatar {
  border-radius: 50%;
  object-fit: cover;
}

/* ---------- Mobil Overlay & Responsive ---------- */
.layout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(67, 89, 113, .5);
  z-index: 95;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.layout-overlay.show {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 991.98px) {
  .layout-menu {
    margin-left: calc(-1 * var(--sneat-sidebar-width));
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15);
  }
  .layout-menu.show {
    margin-left: 0;
  }
  .layout-page {
    margin-left: 0;
  }
  .navbar-search {
    display: none;
  }
  .layout-content {
    padding: 1rem .75rem;
  }
  .table th, .table td {
    padding: .65rem .75rem;
    font-size: .875rem;
  }
}

/* ---------- Sneat bg-label-* Rozet Sınıfları ---------- */
.bg-label-primary {
  background-color: rgba(var(--sneat-primary-rgb), .12) !important;
  color: var(--sneat-primary) !important;
}
.bg-label-success {
  background-color: rgba(34, 197, 94, .12) !important;
  color: #22c55e !important;
}
.bg-label-warning {
  background-color: rgba(242, 153, 74, .15) !important;
  color: #f2994a !important;
}
.bg-label-danger {
  background-color: rgba(255, 86, 48, .12) !important;
  color: #ff5630 !important;
}
.bg-label-info {
  background-color: rgba(3, 195, 236, .12) !important;
  color: #03c3ec !important;
}
.bg-label-secondary {
  background-color: rgba(133, 146, 163, .12) !important;
  color: #8592a3 !important;
}

/* ---------- Sneat btn-label-* Buton Sınıfları ---------- */
.btn-label-primary {
  background-color: rgba(var(--sneat-primary-rgb), .12);
  color: var(--sneat-primary);
  border: none;
}
.btn-label-primary:hover, .btn-label-primary:focus {
  background-color: var(--sneat-primary);
  color: #fff;
}
.btn-label-secondary {
  background-color: rgba(133, 146, 163, .12);
  color: #8592a3;
  border: none;
}
.btn-label-secondary:hover, .btn-label-secondary:focus {
  background-color: #8592a3;
  color: #fff;
}
.btn-label-success {
  background-color: rgba(34, 197, 94, .12);
  color: #22c55e;
  border: none;
}
.btn-label-success:hover, .btn-label-success:focus {
  background-color: #22c55e;
  color: #fff;
}
.btn-label-danger {
  background-color: rgba(255, 86, 48, .12);
  color: #ff5630;
  border: none;
}
.btn-label-danger:hover, .btn-label-danger:focus {
  background-color: #ff5630;
  color: #fff;
}
.btn-label-warning {
  background-color: rgba(242, 153, 74, .15);
  color: #f2994a;
  border: none;
}
.btn-label-warning:hover, .btn-label-warning:focus {
  background-color: #f2994a;
  color: #fff;
}

/* ---------- Yardımcı Sınıflar ---------- */
.hover-shadow {
  transition: box-shadow .2s ease, transform .2s ease;
}
.hover-shadow:hover {
  box-shadow: 0 6px 20px rgba(67, 89, 113, .15) !important;
  transform: translateY(-2px);
}
.transition {
  transition: all .2s ease;
}
.transition-all {
  transition: all .2s ease;
}
