:root {
  --brand: #0f6b4f;
  --brand-dark: #0a4d39;
  --brand-light: #e7f3ee;
  --sidebar-w: 250px;
}
body { background: #f4f6f8; font-size: .925rem; }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); --bs-btn-active-bg: var(--brand-dark); }
.text-brand { color: var(--brand) !important; }
.bg-brand { background: var(--brand) !important; color: #fff; }

/* Yerleşim */
.app-wrap { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); background: #10241d; color: #cfe3da; flex-shrink: 0; position: fixed; inset: 0 auto 0 0; overflow-y: auto; z-index: 1040; transition: transform .2s; }
.portal-auditor .sidebar { background: #1d2440; }
.portal-client .sidebar { background: #2b2216; }
.portal-training .sidebar { background: #2a1d3d; }
.sidebar-brand { display: flex; gap: .75rem; align-items: center; padding: 1.1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand i { font-size: 1.8rem; color: #5fd3a3; }
.sidebar-brand strong { display: block; color: #fff; letter-spacing: .05em; }
.sidebar-brand small { color: #9fb8ad; }
.sidebar-nav { padding: .5rem 0 2rem; }
.sidebar-nav a { display: flex; gap: .7rem; align-items: center; padding: .55rem 1.25rem; color: #cfe3da; text-decoration: none; border-left: 3px solid transparent; }
.sidebar-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.sidebar-nav a.active { background: rgba(95,211,163,.12); color: #fff; border-left-color: #5fd3a3; }
.nav-heading { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #7d978c; padding: 1rem 1.25rem .3rem; }
.main { margin-left: var(--sidebar-w); flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { background: #fff; border-bottom: 1px solid #e3e7eb; padding: .65rem 1.5rem; display: flex; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 1020; }
.page-title { font-size: 1.15rem; margin: 0; font-weight: 600; }
.content { padding: 1.5rem; flex: 1; }
.footer { padding: .75rem 1.5rem; color: #8a959e; font-size: .8rem; }
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
}

/* Kartlar */
.card { border: 0; box-shadow: 0 1px 3px rgba(16,36,29,.08); }
.card-header { background: #fff; font-weight: 600; }
.stat-card { border-radius: .6rem; padding: 1.1rem 1.25rem; background: #fff; box-shadow: 0 1px 3px rgba(16,36,29,.08); display: flex; align-items: center; gap: 1rem; }
.stat-card .icon { width: 48px; height: 48px; border-radius: .6rem; display: grid; place-items: center; font-size: 1.4rem; }
.stat-card .value { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.stat-card .label { color: #6c757d; font-size: .82rem; }

/* Tablolar */
.table > :not(caption) > * > * { padding: .55rem .6rem; vertical-align: middle; }
.table thead th { font-size: .78rem; text-transform: uppercase; color: #6c757d; letter-spacing: .03em; white-space: nowrap; }
.actions { white-space: nowrap; }
.actions .btn { padding: .15rem .45rem; }

/* Giriş */
.login-body { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #0f6b4f 0%, #10241d 100%); padding: 1rem; }
.login-body.portal-auditor { background: linear-gradient(135deg, #2c3e8f 0%, #1d2440 100%); }
.login-body.portal-client { background: linear-gradient(135deg, #a8742a 0%, #2b2216 100%); }
.login-body.portal-training { background: linear-gradient(135deg, #6b3fa0 0%, #2a1d3d 100%); }
.login-card { width: 100%; max-width: 420px; border-radius: 1rem; }
.login-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; font-size: 1.8rem; margin: 0 auto .75rem; }

/* Planlama */
.day-row, .team-row { background: #f8faf9; border: 1px solid #e3e7eb; border-radius: .5rem; padding: .5rem; margin-bottom: .5rem; }
.busy-note { font-size: .75rem; }
select option:disabled { color: #b02a37; }

/* Takvim */
#calendar { background: #fff; padding: 1rem; border-radius: .6rem; }
.fc .fc-event { cursor: pointer; font-size: .78rem; }
.fc .ev-cancelled { text-decoration: line-through; opacity: .7; }
.legend span { display: inline-flex; align-items: center; gap: .3rem; margin: 0 .75rem .3rem 0; font-size: .8rem; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* Mülakat */
.q-card { border-left: 4px solid var(--brand); }
.q-cat { font-size: .72rem; text-transform: uppercase; color: var(--brand); font-weight: 600; letter-spacing: .05em; }

/* Profil fotoğrafı */
.avatar { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; background: #e9ecef; display: grid; place-items: center; font-size: 2.5rem; color: #adb5bd; }
.avatar-sm { width: 36px; height: 36px; font-size: 1rem; }

.qr-box svg, .qr-box img { width: 100%; height: auto; max-width: 180px; }
pre.json { background: #f8f9fa; padding: .75rem; border-radius: .4rem; font-size: .78rem; max-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-word; }

/* Sınav */
.exam-timer { position: sticky; top: 64px; z-index: 1010; }
.exam-q .form-check { padding: .45rem .5rem .45rem 2rem; border: 1px solid #e3e7eb; border-radius: .4rem; margin-bottom: .35rem; background: #fff; }
.exam-q .form-check:has(input:checked) { background: var(--brand-light); border-color: var(--brand); }
.opt-row { background: #f8faf9; border: 1px solid #e3e7eb; border-radius: .4rem; padding: .35rem .5rem; margin-bottom: .35rem; }
.training-content { white-space: pre-wrap; line-height: 1.6; }
