/* GüvenTakip — panel görünümü (Bootstrap 5 üzerine) */

:root {
  --gt-sidebar-bg: #101b2d;
  --gt-sidebar-w: 240px;
  --gt-accent: #2f6fed;
}

body {
  background: #f2f4f8;
  font-size: 0.925rem;
}

.app-wrap {
  display: flex;
  min-height: 100vh;
}

/* ---- Kenar menü ---- */
.sidebar {
  width: var(--gt-sidebar-w);
  min-width: var(--gt-sidebar-w);
  background: var(--gt-sidebar-bg);
  color: #cfd8e6;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sidebar .brand i { color: #5b9bff; font-size: 1.3rem; }

.side-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #cfd8e6;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.side-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side-nav a.active { background: var(--gt-accent); color: #fff; font-weight: 600; }
.side-nav a i { width: 18px; text-align: center; }

.side-foot {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #e8eef7;
}

/* ---- Üst bar / içerik ---- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  background: #fff;
  border-bottom: 1px solid #e3e7ee;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.content { padding: 20px; }

/* ---- Kartlar / tablolar ---- */
.card {
  border: 1px solid #e3e7ee;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 27, 45, .04);
}

.card-header {
  background: #fff;
  font-weight: 600;
  border-bottom: 1px solid #eef1f6;
  border-radius: 12px 12px 0 0 !important;
}

.table > :not(caption) > * > * { padding: .55rem .75rem; }
.table thead th {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #6b7a90;
  background: #f8f9fc;
  white-space: nowrap;
}

a { text-decoration: none; }
a:hover { text-decoration: underline; }
.btn:hover, .page-link:hover, .side-nav a:hover, .dropdown-item:hover { text-decoration: none; }

/* ---- İstatistik kartları ---- */
.stat-card .card-body { display: flex; align-items: center; gap: 14px; }
.stat-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.stat-num { font-size: 1.45rem; font-weight: 700; line-height: 1.1; }
.stat-label { font-size: .8rem; color: #6b7a90; }

/* ---- Avatar ---- */
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center; justify-content: center;
}
.avatar-initials {
  background: #dfe8fb;
  color: #2f5fce;
  font-weight: 700;
  font-size: .8rem;
}
.avatar-xl { width: 96px; height: 96px; font-size: 1.6rem; }

/* ---- Giriş sayfası ---- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #101b2d 0%, #1d3a6b 60%, #2f6fed 100%);
  padding: 16px;
}
.login-card { width: 100%; max-width: 420px; border-radius: 16px; border: 0; }
.login-logo {
  width: 64px; height: 64px;
  margin: 0 auto;
  border-radius: 16px;
  background: #e7efff;
  color: var(--gt-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}

/* ---- Aramalı seçim kutusu (çok seçenekli select'ler) ---- */
.combo-wrap { position: relative; }
.combo-wrap .combo-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
  margin: 0; padding: 0; border: 0;
}
.combo-list {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  z-index: 1060;
  margin-top: 2px;
  background: #fff;
  border: 1px solid #d6dbe3;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(16, 27, 45, .16);
  max-height: 280px;
  overflow-y: auto;
}
.combo-list.open { display: block; }
.combo-item {
  padding: .4rem .75rem;
  font-size: .875rem;
  cursor: pointer;
  white-space: normal;
}
.combo-item:hover, .combo-item.active { background: #e9f2ff; }
.combo-item.selected { font-weight: 600; color: var(--gt-accent); }
.combo-empty, .combo-note {
  padding: .45rem .75rem;
  font-size: .8rem;
  color: #6c757d;
}
.combo-note { border-top: 1px solid #eef1f5; }

/* ---- Puantaj cetveli ---- */
.matrix-table { font-size: .8rem; }
.matrix-table .matrix-name { min-width: 160px; position: sticky; left: 0; background: #fff; }
.matrix-table thead .matrix-name { background: #f8f9fc; z-index: 2; }

/* ---- Mobil ---- */
@media (max-width: 991.98px) {
  .sidebar {
    position: fixed;
    left: calc(-1 * var(--gt-sidebar-w));
    z-index: 1050;
    transition: left .2s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, .25);
  }
  .sidebar.open { left: 0; }
  .content { padding: 14px; }
}

@media print {
  .sidebar, .topbar, .btn, form { display: none !important; }
  .content { padding: 0; }
  .card { border: 0; box-shadow: none; }
}
