/* ============================================================
   CamChekL — Minimal Material Design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---- Material Symbols config ---- */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 20;
    vertical-align: middle;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================================================
   DARK THEME (default)
   ================================================ */
:root,
[data-theme="dark"] {
    --bg-base: #131316;
    --bg-surface: #1c1c21;
    --bg-elevated: #25252b;
    --bg-hover: #2a2a32;
    --bg-input: #202026;
    --bg-overlay: rgba(0, 0, 0, 0.5);

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.11);
    --border-focus: rgba(99, 102, 241, 0.45);

    --text-1: #e8e8ee;
    --text-2: #8a8a9a;
    --text-3: #5e5e70;

    --accent: #6366f1;
    --accent-soft: rgba(99, 102, 241, 0.12);
    --accent-text: #a5b4fc;

    --green: #34d399;
    --green-soft: rgba(52, 211, 153, 0.1);
    --yellow: #fbbf24;
    --orange: #fb923c;
    --orange-soft: rgba(251, 146, 60, 0.1);
    --red: #f87171;
    --red-soft: rgba(248, 113, 113, 0.1);
    --blue: #60a5fa;
    --blue-soft: rgba(96, 165, 250, 0.1);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);

    --prov-idle: #4b5563;
    --prov-hover: #6b7280;
}

/* ================================================
   LIGHT THEME
   ================================================ */
[data-theme="light"] {
    --bg-base: #f6f6f8;
    --bg-surface: #ffffff;
    --bg-elevated: #ededf2;
    --bg-hover: #e8e8ee;
    --bg-input: #f2f2f6;
    --bg-overlay: rgba(0, 0, 0, 0.25);

    --border: rgba(0, 0, 0, 0.07);
    --border-hover: rgba(0, 0, 0, 0.13);
    --border-focus: rgba(99, 102, 241, 0.4);

    --text-1: #111114;
    --text-2: #636370;
    --text-3: #9898aa;

    --accent: #5b5ef0;
    --accent-soft: rgba(91, 94, 240, 0.08);
    --accent-text: #5b5ef0;

    --green: #16a34a;
    --green-soft: rgba(22, 163, 74, 0.08);
    --yellow: #ca8a04;
    --orange: #ea580c;
    --orange-soft: rgba(234, 88, 12, 0.08);
    --red: #dc2626;
    --red-soft: rgba(220, 38, 38, 0.08);
    --blue: #2563eb;
    --blue-soft: rgba(37, 99, 235, 0.08);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);

    --prov-idle: #c8cfd8;
    --prov-hover: #9ca3af;
}

/* ---- Common tokens ---- */
:root {
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --transition: 0.18s ease;

    /* Typography scale */
    --text-xs:   11px;
    --text-sm:   12px;
    --text-base: 13px;
    --text-md:   15px;
    --text-lg:   18px;
    --text-xl:   22px;

    /* Exam/sınav salon rengi — tek yerden yönet */
    --exam-color: #f59e0b;
    --exam-soft:  rgba(245, 158, 11, 0.12);
    --exam-border: rgba(245, 158, 11, 0.30);

    /* Mono font */
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

/* ================================================
   BASE
   ================================================ */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-base);
    color: var(--text-1);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    transition: background var(--transition), color var(--transition);
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* ================================================
   HEADER
   ================================================ */
.app-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 0 28px;
    height: 52px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background var(--transition);
}

.header-content {
    max-width: 1160px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}

/* Koyu temada beyaz (negatif) logo */
.app-logo-dark { display: none; }
[data-theme="dark"] .app-logo-light { display: none; }
[data-theme="dark"] .app-logo-dark { display: block; }

.logo-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.3px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.btn-header {
    background: transparent;
    border: none;
    color: var(--text-2);
    height: 32px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 500;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all var(--transition);
}

.btn-header:hover {
    background: var(--bg-hover);
    color: var(--text-1);
}

.btn-header .material-symbols-outlined {
    font-size: 17px !important;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-2);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-1);
}

.theme-toggle .material-symbols-outlined {
    font-size: 18px !important;
}

/* ================================================
   MAIN LAYOUT
   ================================================ */
.main-content {
    max-width: 1160px;
    margin: 0 auto;
    padding: 20px 28px;
    width: 100%;
    flex: 1;
}

/* ================================================
   DASHBOARD — compact stat chips
   ================================================ */
.dashboard-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.stat-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
}

.stat-chip:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
}

.stat-chip.stat-active {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.stat-chip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-chip-icon .material-symbols-outlined {
    font-size: 16px !important;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.stat-icon-total .material-symbols-outlined {
    color: var(--accent);
}

.stat-icon-ok .material-symbols-outlined {
    color: var(--green);
}

.stat-icon-warn .material-symbols-outlined {
    color: var(--orange);
}

.stat-chip-num {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.4px;
    min-width: 16px;
    line-height: 1;
}

.stat-chip-label {
    font-size: 12px;
    color: var(--text-2);
    font-weight: 500;
}

/* ================================================
   TOOLBAR
   ================================================ */
.toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.search-wrapper {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px !important;
    color: var(--text-3);
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 36px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-1);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: all var(--transition);
}

.search-input::placeholder {
    color: var(--text-3);
}

.search-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.filter-select {
    height: 36px;
    padding: 0 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-1);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    min-width: 155px;
    transition: all var(--transition);
}

.filter-select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.filter-select option {
    background: var(--bg-surface);
    color: var(--text-1);
}

.btn-add {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--accent);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}

.btn-add:hover {
    opacity: 0.85;
}

.btn-add:active {
    transform: scale(0.95);
}

.btn-add .material-symbols-outlined {
    font-size: 20px !important;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

/* ================================================
   COMPANY LIST — compact rows
   ================================================ */
.company-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 10px;
}

.company-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    min-height: 52px;
}

.company-row:hover {
    background: var(--bg-hover);
}

.company-row.row-complete {
    background: var(--green-soft);
}

.company-row.row-complete:hover {
    background: rgba(52, 211, 153, 0.14);
}

/* Row number */
.row-num {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
    min-width: 22px;
    text-align: right;
    flex-shrink: 0;
}

/* Main info */
.row-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.row-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.row-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--status-color, #6b7280);
    flex-shrink: 0;
}

.row-status-label {
    font-size: 11.5px;
    color: var(--text-2);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Right side */
.row-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.row-progress {
    display: flex;
    align-items: center;
    gap: 7px;
}

.row-progress-track {
    width: 72px;
    height: 3px;
    background: var(--bg-elevated);
    border-radius: 2px;
    overflow: hidden;
}

.row-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.row-progress-fill.fill-done {
    background: var(--green);
}

.row-progress-text {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    min-width: 28px;
    text-align: right;
}

.row-del-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    color: var(--text-3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition);
}

.company-row:hover .row-del-btn {
    opacity: 1;
}

.row-del-btn:hover {
    background: var(--red-soft);
    color: var(--red);
}

.row-del-btn .material-symbols-outlined {
    font-size: 16px !important;
}

/* ---- Avatar ---- */
.row-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.row-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.row-avatar-letter {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* ---- Empty state ---- */
.empty-state {
    text-align: center;
    padding: 56px 20px;
    color: var(--text-3);
}

.empty-state .material-symbols-outlined {
    font-size: 36px !important;
    display: block;
    margin: 0 auto 12px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 5px;
}

.empty-state p {
    font-size: 12.5px;
    color: var(--text-3);
}

/* ================================================
   DETAIL BACKDROP
   ================================================ */
.detail-backdrop {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: 190;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.detail-backdrop.backdrop-active {
    opacity: 1;
    visibility: visible;
}

/* ================================================
   DETAIL PANEL
   ================================================ */
.detail-panel {
    position: fixed;
    top: 0;
    right: -540px;
    width: 500px;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border);
    z-index: 200;
    overflow-y: auto;
    transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}

.detail-panel.detail-active {
    right: 0;
}

.detail-panel-content {
    padding: 22px 24px;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.btn-back {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-2);
    height: 30px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all var(--transition);
    flex-shrink: 0;
}

.btn-back:hover {
    background: var(--bg-hover);
    color: var(--text-1);
}

.btn-back .material-symbols-outlined {
    font-size: 15px !important;
}

.detail-title {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-delete-detail {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    color: var(--text-3);
    display: flex;
    align-items: center;
}

.btn-delete-detail:hover {
    background: var(--red-soft);
    color: var(--red);
}

.btn-delete-detail .material-symbols-outlined {
    font-size: 17px !important;
}

/* ---- Sections ---- */
.detail-section {
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-3);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-title .material-symbols-outlined {
    font-size: 14px !important;
}

.section-header .section-title {
    margin-bottom: 0;
}

/* ---- Status select ---- */
.status-selector {
    margin-top: 6px;
}

.current-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot-lg {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--status-color, #6b7280);
    flex-shrink: 0;
}

.status-select {
    flex: 1;
    height: 36px;
    padding: 0 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-1);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: all var(--transition);
}

.status-select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.status-select option {
    background: var(--bg-surface);
    color: var(--text-1);
}

/* ---- Notes ---- */
.notes-input {
    width: 100%;
    min-height: 68px;
    padding: 9px 11px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-1);
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: all var(--transition);
    line-height: 1.5;
}

.notes-input::placeholder {
    color: var(--text-3);
}

.notes-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ================================================
   ACCOUNT TREE
   ================================================ */
.account-tree {
    margin-top: 8px;
}

.tree-node {
    position: relative;
    padding-left: 20px;
    margin-bottom: 5px;
}

.tree-node::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    width: 1px;
    height: 100%;
    background: var(--border);
}

.tree-node:last-child::before {
    height: 16px;
}

.tree-node::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 16px;
    width: 12px;
    height: 1px;
    background: var(--border);
}

.tree-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.tree-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.tree-item-icon {
    flex-shrink: 0;
    color: var(--text-3);
    display: flex;
}

.tree-item-icon .material-symbols-outlined {
    font-size: 16px !important;
}

.tree-item-info {
    flex: 1;
    min-width: 0;
}

.tree-item-name {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tree-item-url {
    font-size: 11px;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 3px;
}

.tree-item-url .material-symbols-outlined {
    font-size: 11px !important;
}

.acc-link {
    color: var(--accent-text);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.acc-link:hover {
    text-decoration: underline;
}

.tree-item-creds {
    display: flex;
    gap: 3px;
    align-items: center;
    flex-shrink: 0;
}

.cred-badge {
    font-size: 10px;
    padding: 2px 7px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-3);
    font-weight: 500;
    font-family: var(--font-mono);
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-copy {
    background: none;
    border: none;
    cursor: pointer;
    padding: 3px;
    border-radius: 4px;
    transition: all var(--transition);
    color: var(--text-3);
    display: flex;
    align-items: center;
}

.btn-copy:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.btn-copy .material-symbols-outlined {
    font-size: 13px !important;
}

.tree-item-actions {
    display: flex;
    gap: 1px;
    flex-shrink: 0;
}

.btn-tree-action {
    background: none;
    border: none;
    cursor: pointer;
    padding: 3px;
    border-radius: 4px;
    transition: all var(--transition);
    color: var(--text-3);
    opacity: 0;
    display: flex;
    align-items: center;
}

.tree-item:hover .btn-tree-action {
    opacity: 1;
}

.btn-tree-action:hover {
    background: var(--bg-hover);
    color: var(--text-1);
}

.btn-tree-action .material-symbols-outlined {
    font-size: 14px !important;
}

.tree-root-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
}

.tree-root-label .material-symbols-outlined {
    font-size: 16px !important;
    color: var(--accent);
}

.tree-root-name {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-2);
}

.tree-empty {
    padding: 12px;
    text-align: center;
    color: var(--text-3);
    font-size: 12px;
    font-style: italic;
}

/* ================================================
   CONTACTS
   ================================================ */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
}

.contact-icon .material-symbols-outlined {
    font-size: 14px !important;
    color: var(--text-3);
}

.contact-value {
    font-size: 12.5px;
    color: var(--text-1);
    flex: 1;
    min-width: 80px;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.btn-contact-del {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    color: var(--text-3);
    display: flex;
    transition: all var(--transition);
}

.btn-contact-del:hover {
    color: var(--red);
}

.btn-contact-del .material-symbols-outlined {
    font-size: 14px !important;
}

.btn-add-contact {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    background: none;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
    margin-top: 4px;
    width: 100%;
    justify-content: center;
}

.btn-add-contact:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.btn-add-contact .material-symbols-outlined {
    font-size: 14px !important;
}

/* ================================================
   CHECKLIST
   ================================================ */
.checklist-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.checklist-item:hover {
    background: var(--bg-elevated);
}

.checklist-item.checked .checklist-text {
    text-decoration: line-through;
    color: var(--text-3);
}

.checklist-label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    min-width: 0;
}

.checklist-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--border-hover);
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    background: transparent;
}

.checklist-label input:checked+.checkmark {
    background: var(--green);
    border-color: var(--green);
}

.checklist-label input:checked+.checkmark::after {
    content: '';
    display: block;
    width: 4px;
    height: 7px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(42deg) translateY(-1px);
}

.checklist-text {
    font-size: 13px;
    color: var(--text-1);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-checklist-action,
.btn-del-item {
    background: none;
    border: none;
    cursor: pointer;
    padding: 3px;
    border-radius: 4px;
    color: var(--text-3);
    opacity: 0;
    display: flex;
    align-items: center;
    transition: all var(--transition);
}

.checklist-item:hover .btn-checklist-action,
.checklist-item:hover .btn-del-item {
    opacity: 1;
}

.btn-del-item:hover {
    color: var(--red);
}

.btn-checklist-action .material-symbols-outlined,
.btn-del-item .material-symbols-outlined {
    font-size: 14px !important;
}

/* ================================================
   LOGO PREVIEW
   ================================================ */
.logo-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-top: 6px;
}

.logo-preview-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-preview-url {
    font-size: 11px;
    color: var(--text-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

/* ---- Logo section dot indicator ---- */
.logo-set-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    margin-left: 5px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ================================================
   DETAIL FOOTER
   ================================================ */
.detail-footer {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.detail-date {
    font-size: 11px;
    color: var(--text-3);
}

/* ================================================
   MODALS
   ================================================ */
.modal {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal.modal-active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(6px);
    transition: transform 0.2s ease;
}

.modal.modal-active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    display: flex;
    align-items: center;
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-1);
}

.modal-close .material-symbols-outlined {
    font-size: 18px !important;
}

/* ---- Forms ---- */
.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-2);
    margin-bottom: 5px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    height: 36px;
    padding: 0 11px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-1);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: all var(--transition);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-3);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-select option {
    background: var(--bg-surface);
    color: var(--text-1);
}

.form-textarea {
    height: auto;
    min-height: 70px;
    padding: 9px 11px;
    resize: vertical;
    line-height: 1.5;
}

.form-input-color {
    height: 36px;
    padding: 4px;
    cursor: pointer;
}

/* Password wrapper */
.password-wrapper {
    position: relative;
}

.btn-toggle-pw {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-3);
    display: flex;
    padding: 3px;
    border-radius: 4px;
    transition: color var(--transition);
}

.btn-toggle-pw:hover {
    color: var(--text-1);
}

.btn-toggle-pw .material-symbols-outlined {
    font-size: 16px !important;
}

/* Entry lists */
.entry-list,
.account-entries {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 6px;
}

.btn-add-entry,
.btn-add-account {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    background: none;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
    width: 100%;
    justify-content: center;
}

.btn-add-entry:hover,
.btn-add-account:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.btn-add-entry .material-symbols-outlined,
.btn-add-account .material-symbols-outlined {
    font-size: 15px !important;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    margin-top: 18px;
}

.btn {
    height: 34px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}

.btn-cancel {
    background: var(--bg-elevated);
    color: var(--text-2);
    border: 1px solid var(--border);
}

.btn-cancel:hover {
    background: var(--bg-hover);
    color: var(--text-1);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.87;
}

/* Small subtle button */
.btn-sm-subtle {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-2);
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 3px 9px;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
}

.btn-sm-subtle:hover {
    background: var(--bg-hover);
    color: var(--text-1);
    border-color: var(--border-hover);
}

.btn-sm-subtle .material-symbols-outlined {
    font-size: 14px !important;
}

/* ================================================
   TOAST
   ================================================ */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-1);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.25s, transform 0.25s;
    max-width: 320px;
}

.toast.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast.toast-hide {
    opacity: 0;
    transform: translateX(12px);
}

.toast-icon .material-symbols-outlined {
    font-size: 17px !important;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.toast-success .toast-icon .material-symbols-outlined {
    color: var(--green);
}

.toast-error .toast-icon .material-symbols-outlined {
    color: var(--red);
}

.toast-info .toast-icon .material-symbols-outlined {
    color: var(--blue);
}

.toast-warning .toast-icon .material-symbols-outlined {
    color: var(--yellow);
}

/* ================================================
   ACCOUNT ENTRY (add company form)
   ================================================ */
.account-entry {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 8px;
}

.account-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.account-entry-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-remove-entry {
    background: none;
    border: none;
    cursor: pointer;
    padding: 3px;
    border-radius: 4px;
    color: var(--text-3);
    display: flex;
    align-items: center;
    transition: all var(--transition);
}

.btn-remove-entry:hover {
    color: var(--red);
    background: var(--red-soft);
}

.btn-remove-entry .material-symbols-outlined {
    font-size: 16px !important;
}

/* ================================================
   ENTRY ROW (contact entries in add form)
   ================================================ */
.entry-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.entry-row .form-input {
    flex: 1;
    min-width: 80px;
}

.btn-remove-entry-inline {
    background: none;
    border: none;
    cursor: pointer;
    padding: 3px;
    border-radius: 4px;
    color: var(--text-3);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: all var(--transition);
}

.btn-remove-entry-inline:hover {
    color: var(--red);
    background: var(--red-soft);
}

.btn-remove-entry-inline .material-symbols-outlined {
    font-size: 16px !important;
}

/* ================================================
   LETTER FILTER BAR
   ================================================ */
.letter-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 8px 0 10px;
    align-items: center;
    justify-content: flex-start;
}

.letter-btn {
    min-width: 28px;
    height: 28px;
    padding: 0 4px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-2);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.letter-btn:hover:not(.letter-empty) {
    background: var(--bg-elevated);
    color: var(--text-1);
}

.letter-btn.letter-active {
    background: var(--accent);
    color: #fff;
}

.letter-btn.letter-empty {
    color: var(--text-3);
    cursor: default;
    opacity: 0.4;
}

/* "Tüm" butonu biraz daha geniş */
.letter-btn:first-child {
    min-width: 36px;
    font-size: 11px;
    margin-right: 4px;
}

/* ================================================
   ACTIVITY LOG — Süreç Kaydı
   ================================================ */
.log-section .section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.log-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--accent-soft);
    color: var(--accent-text);
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 4px;
    letter-spacing: 0;
    text-transform: none;
}

/* ---- Input area ---- */
.log-input-area {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
    transition: border-color var(--transition);
}

.log-input-area:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.log-textarea {
    width: 100%;
    padding: 9px 13px;
    background: transparent;
    border: none;
    color: var(--text-1);
    font-size: 13px;
    font-family: inherit;
    resize: none;
    outline: none;
    line-height: 1.6;
    min-height: 52px;
}

.log-textarea::placeholder {
    color: var(--text-3);
}

.log-input-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px 7px 13px;
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
}

.log-hint {
    font-size: 10.5px;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 4px;
}

.log-hint .material-symbols-outlined {
    font-size: 13px !important;
}

.btn-log-save {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    padding: 0 12px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-log-save:hover {
    opacity: 0.87;
}

.btn-log-save .material-symbols-outlined {
    font-size: 14px !important;
}

/* ---- Timeline entries ---- */
.log-timeline {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 2px;
}

.log-entry {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.log-entry::before {
    display: none;
}

.log-entry:hover {
    background: var(--bg-elevated);
}

.log-entry-header {
    display: none;
}

.log-entry-time {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-3);
    white-space: nowrap;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.log-entry-time .material-symbols-outlined {
    display: none;
}

.log-entry-del {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    color: var(--text-3);
    display: flex;
    align-items: center;
    opacity: 0;
    transition: all var(--transition);
    flex-shrink: 0;
    align-self: center;
}

.log-entry:hover .log-entry-del {
    opacity: 1;
}

.log-entry-del:hover {
    color: var(--red);
    background: var(--red-soft);
}

.log-entry-del .material-symbols-outlined {
    font-size: 14px !important;
}

.log-entry-note {
    font-size: 12.5px;
    color: var(--text-1);
    line-height: 1.5;
    margin: 0;
    word-break: break-word;
}

/* ---- Empty log state ---- */
.log-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    color: var(--text-3);
    font-size: 12.5px;
    font-style: italic;
    background: var(--bg-elevated);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
}

.log-empty .material-symbols-outlined {
    font-size: 18px !important;
    opacity: 0.6;
}

/* ================================================
   NEW ADDITIONS — Company Type, Form Row, etc.
   ================================================ */

/* Two-column form row */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Form hint text */
.form-hint {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 5px;
}

/* Smaller modal variant */
.modal-content-sm {
    max-width: 380px;
}

/* Row meta: type tag + status */
.row-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Type tag pill */
.type-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 100px;
    background: color-mix(in srgb, var(--type-color, #6366f1) 14%, transparent);
    color: var(--type-color, #6366f1);
    border: 1px solid color-mix(in srgb, var(--type-color, #6366f1) 28%, transparent);
    letter-spacing: 0.2px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Type selector in detail panel */
.type-selector {
    margin-top: 6px;
}

.current-type {
    display: flex;
    align-items: center;
    gap: 10px;
}

.type-dot-lg {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--type-color, #6b7280);
    flex-shrink: 0;
}

.type-select {
    flex: 1;
    height: 36px;
    padding: 0 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-1);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: all var(--transition);
}

.type-select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.type-select option {
    background: var(--bg-surface);
    color: var(--text-1);
}

/* Detail title wrapper */
.detail-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

/* Stat card icon for type */
.stat-icon-type .material-symbols-outlined {
    color: var(--accent);
}

/* Type filter chips container */
.type-filter-wrapper {
    margin-bottom: 12px;
}

.type-filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.type-chip {
    padding: 6px 14px;
    border-radius: 100px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
    font-family: inherit;
}

.type-chip:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
    color: var(--text-1);
}

.type-chip.chip-active {
    background: color-mix(in srgb, var(--chip-color, var(--accent)) 12%, transparent);
    border-color: var(--chip-color, var(--accent));
    color: var(--chip-color, var(--accent));
}

.type-chip.chip-active:not([style*="--chip-color"]) {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

/* Manager List Styles */
.manager-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 10px;
}

.manager-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.manager-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
}

.manager-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.manager-item-label {
    font-size: 14px;
    font-weight: 500;
}

.manager-item-actions {
    display: flex;
    gap: 6px;
}

.btn-icon-sm {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-2);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-icon-sm:hover {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent);
}

.btn-icon-sm.btn-del:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #ef4444;
}

.empty-manager {
    text-align: center;
    padding: 20px;
    color: var(--text-3);
    font-style: italic;
}

/* Exam Center Specific Styles — --exam-color ile yönetiliyor */
.stat-icon-exam .material-symbols-outlined {
    color: var(--exam-color);
}

.row-avatar {
    position: relative;
}

.exam-badge-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: var(--exam-color);
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-surface);
    z-index: 2;
}

.exam-badge-dot .material-symbols-outlined {
    font-size: 10px !important;
}

.row-name-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.exam-tag-mini {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    background: var(--exam-soft);
    color: var(--exam-color);
    border: 1px solid var(--exam-border);
    border-radius: 4px;
    letter-spacing: 0.4px;
}

/* Checkbox and Toggle Styles */
.form-group-checkbox {
    margin-bottom: 15px;
    padding: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-1);
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-status-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    min-width: 40px;
}

/* Switch styling */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--exam-color);
}

input:focus + .slider {
    box-shadow: 0 0 0 3px var(--exam-soft);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Exam Row Highlight */
.company-row.is-exam-row {
    border-left: 3px solid var(--exam-color);
    background: var(--exam-soft);
}

.company-row.is-exam-row:hover {
    background: rgba(245, 158, 11, 0.08);
    border-color: var(--exam-color);
}

.is-exam-row .exam-tag-mini {
    background: var(--exam-color);
    color: white;
    border: none;
    padding: 2px 8px;
    font-weight: 800;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.35);
}

.is-exam-row .row-name {
    color: #b45309;
}

[data-theme="dark"] .is-exam-row .row-name {
    color: #fbbf24;
}

/* Material icon fill helper */
.icon-fill {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ================================================
   REFINED DETAIL DASHBOARD (Tabs & Cards)
   ================================================ */

.detail-panel {
    width: 600px !important;
    right: -610px;
    background: var(--bg-base);
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
}

.detail-panel.detail-active {
    right: 0;
}

.detail-header {
    background: var(--bg-surface);
    margin-bottom: 0;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
}

.detail-title-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.detail-title {
    font-size: 20px !important;
    font-weight: 700;
    color: var(--text-1);
    margin: 0;
}

/* Tabs Navigation */
.detail-tabs-nav {
    display: flex;
    gap: 4px;
    padding: 10px 24px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-2);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition);
}

.tab-btn:hover {
    background: var(--bg-hover);
    color: var(--text-1);
}

.tab-btn.active {
    background: var(--accent-soft);
    color: var(--accent);
}

/* Tab Content Panes - IMPORTANT: Hiding should work now */
.detail-tab-pane {
    display: none !important;
    padding: 24px;
    animation: fadeIn 0.15s ease;
}

.detail-tab-pane.active {
    display: block !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dashboard Cards */
.dash-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .dash-card {
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.dash-card-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-3);
    margin-bottom: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-card-title .material-symbols-outlined {
    font-size: 16px !important;
}

.detail-panel-footer {
    padding: 24px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    margin-top: 20px;
}

.badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 6px;
}






/* ================================================
   SKELETON LOADER
   ================================================ */
@keyframes shimmer {
    0%   { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}
.skeleton {
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-hover) 50%, var(--bg-elevated) 75%);
    background-size: 936px 100%;
    animation: shimmer 1.4s infinite linear;
    border-radius: var(--radius-sm);
}
.skeleton-row {
    display: flex; align-items: center; gap: 14px; padding: 12px 14px;
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); min-height: 52px;
}
.skeleton-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.skeleton-text-group { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.skeleton-text { height: 12px; border-radius: 4px; }
.skeleton-text.w-60 { width: 60%; }
.skeleton-text.w-40 { width: 40%; }

/* ================================================
   TOUCH & MOBILE
   ================================================ */
@media (hover: none) {
    .row-del-btn { opacity: 0.5; }
    .btn-tree-action { opacity: 0.6; }
    .btn-checklist-action, .btn-del-item { opacity: 0.6; }
    .log-entry-del { opacity: 0.5; }
}
@media (max-width: 640px) {
    .detail-panel { width: 100% !important; right: -100% !important; }
    .detail-panel.detail-active { right: 0 !important; }
}
@media (max-width: 768px) {
    .btn-header > span:not(.material-symbols-outlined) { display: none; }
    .header-actions { gap: 1px; }
    .main-content { padding: 12px 16px; }
    .app-header { padding: 0 16px; }
    .logo-text { font-size: 14px; }
}
@media (hover: none), (max-width: 768px) {
    .btn-header { min-width: 40px; height: 40px; }
    .theme-toggle { width: 40px; height: 40px; }
    .btn-add { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
    .modal { padding: 10px; }
    .modal-content { padding: 18px 16px; }
    .form-row-2 { grid-template-columns: 1fr; }
    .detail-tabs-nav { padding: 8px 12px; gap: 2px; }
    .tab-btn { padding: 6px 10px; font-size: 12px; }
    .tab-btn > span:not(.material-symbols-outlined) { display: none; }
}

/* Tab gecis animasyonu - guclendirilmis */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ================================================
   UTILITY CLASSES
   ================================================ */
.toggle-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px; background: var(--bg-elevated);
    border-radius: var(--radius-md); margin-bottom: 10px;
}
.toggle-row-label { font-size: var(--text-base); color: var(--text-1); font-weight: 500; }

.empty-state .btn-cta {
    margin-top: 14px; display: inline-flex; align-items: center; gap: 6px;
    height: 34px; padding: 0 16px; background: var(--accent); color: #fff;
    border: none; border-radius: var(--radius-md); font-size: var(--text-base);
    font-weight: 500; font-family: inherit; cursor: pointer; transition: all var(--transition);
}
.empty-state .btn-cta:hover { opacity: 0.87; }

/* Settings dropdown */
.header-settings-dropdown { position: relative; }
.header-dropdown-menu {
    position: absolute; top: calc(100% + 6px); right: 0;
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-md);
    min-width: 200px; z-index: 500; padding: 4px;
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
.header-settings-dropdown.open .header-dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-item {
    display: flex; align-items: center; gap: 8px; width: 100%;
    padding: 7px 10px; background: none; border: none;
    border-radius: var(--radius-sm); color: var(--text-2);
    font-size: var(--text-base); font-weight: 500; font-family: inherit;
    cursor: pointer; text-align: left; transition: all var(--transition);
}
.dropdown-item:hover { background: var(--bg-hover); color: var(--text-1); }
.dropdown-item .material-symbols-outlined { font-size: 16px !important; color: var(--text-3); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* User list row */
.user-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}
.user-list-row:last-child { border-bottom: none; }
.user-list-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.user-list-email {
    font-size: 12px;
    color: var(--text-2);
}
.user-list-role {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.user-role-select {
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    background-color: var(--bg-surface, #ffffff);
    color: var(--text-main, #0f172a);
    border: 1px solid var(--border-color, #e2e8f0);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.user-role-select:focus {
    border-color: var(--accent, #6366f1);
    outline: none;
}
.user-role-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}



/* ====================================================================
   DESIGN-MD REFERANS IYILESTIRMELERI
   Linear  : ultra-minimal list, purple accent, tight spacing
   Notion  : warm surface, property rows, section headers
   Stripe  : form elegance, gradient accents, focus rings
   Vercel  : backdrop blur header, dark-first
   Supabase: mono credential display
   ==================================================================== */

/* ================================================
   LINEAR — List item hover: sol kenarda accent cizgi
   ================================================ */
.company-row {
    border-left: 2px solid transparent;
    transition: background var(--transition), border-color var(--transition);
}
.company-row:hover {
    border-left-color: var(--accent);
}
.company-row.row-selected {
    border-left-color: var(--accent);
    background: var(--accent-soft);
}

/* ================================================
   LINEAR — Tab Navigation: underline indicator style
   ================================================ */
.detail-tabs-nav {
    border-bottom: 1px solid var(--border);
    background: transparent !important;
    padding: 0 20px !important;
    gap: 0 !important;
}
.tab-btn {
    position: relative;
    border-radius: 0 !important;
    padding: 11px 14px !important;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    background: transparent !important;
    transition: color 0.15s ease, background 0.15s ease;
}
.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 8px;
    right: 8px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
    opacity: 0;
    transform: scaleX(0.5);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.tab-btn:hover {
    color: var(--text-1);
    background: var(--bg-hover) !important;
}
.tab-btn.active {
    color: var(--accent-text) !important;
    background: transparent !important;
    font-weight: 600;
}
.tab-btn.active::after {
    opacity: 1;
    transform: scaleX(1);
}

/* ================================================
   STRIPE — Buttons: gradient primary
   ================================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.30), inset 0 1px 0 rgba(255,255,255,0.10);
    letter-spacing: -0.1px;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #5254cc 0%, #6d28d9 100%);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}
.btn-primary:active {
    transform: translateY(0);
}

/* ================================================
   STRIPE — Form focus ring: elegant glow
   ================================================ */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--border-focus) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14), 0 1px 3px rgba(0,0,0,0.08) !important;
    background: var(--bg-surface) !important;
}
.form-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1px;
    color: var(--text-2);
}

/* ================================================
   STRIPE — Modal: shadow + blur backdrop
   ================================================ */
.modal {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.modal-content {
    box-shadow: 0 20px 60px rgba(0,0,0,0.40), 0 4px 20px rgba(0,0,0,0.20);
    border: 1px solid var(--border-hover);
}

/* ================================================
   VERCEL — Header: backdrop blur sticky
   ================================================ */
.app-header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(24, 24, 28, 0.88) !important;
}
[data-theme="light"] .app-header {
    background: rgba(255, 255, 255, 0.88) !important;
}

/* Header group separator */
.header-separator {
    width: 1px;
    height: 18px;
    background: var(--border);
    margin: 0 4px;
    flex-shrink: 0;
}

/* ================================================
   SUPABASE — Credential badge: mono code style
   ================================================ */
.cred-badge {
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 3px 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-text);
    cursor: pointer;
    transition: all var(--transition);
}
.cred-badge:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

/* ================================================
   NOTION — Empty state: centered minimal
   ================================================ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    text-align: center;
    gap: 6px;
}
.empty-state .material-symbols-outlined {
    font-size: 40px !important;
    opacity: 0.35;
    margin-bottom: 8px;
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 48;
}
.empty-state h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-2);
    letter-spacing: -0.2px;
}
.empty-state p {
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 4px;
}

/* ================================================
   NOTION — Section label: subtle uppercase header
   ================================================ */
.section-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 12px 0 6px;
    display: block;
}

/* ================================================
   NOTION — Property rows: inline key/value
   ================================================ */
.notion-prop-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}
.notion-prop-row:last-child { border-bottom: none; }
.notion-prop-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.55px;
    min-width: 110px;
    flex-shrink: 0;
}
.notion-prop-value {
    font-size: 13px;
    color: var(--text-1);
    flex: 1;
    line-height: 1.5;
}

/* ================================================
   NOTION — Activity log timeline
   ================================================ */
.log-list {
    position: relative;
    padding-left: 18px;
}
.log-list::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--border);
}
.log-entry {
    position: relative;
}
.log-entry::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 13px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-hover);
}

/* ================================================
   LINEAR — Dash card: subtle hover lift
   ================================================ */
.dash-card {
    transition: border-color var(--transition), box-shadow var(--transition);
}
.dash-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

/* ================================================
   LINEAR — Type tags: compact pill
   ================================================ */
.type-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 100px;
    letter-spacing: 0.1px;
}

/* ================================================
   LINEAR — Letter filter: scale on hover/active
   ================================================ */
.letter-btn:hover {
    transform: scale(1.1);
}
.letter-btn.active {
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.30);
}

/* ================================================
   LINEAR — Search input: elevated on focus
   ================================================ */
.search-input {
    background: var(--bg-elevated) !important;
    border-color: transparent !important;
}
.search-input:focus {
    background: var(--bg-surface) !important;
    border-color: var(--border-focus) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12) !important;
}



/* ====================================================================
   LINEAR.APP DESIGN SYSTEM — Gerçek Tokenlar (getdesign.md'den)
   ====================================================================
   Kaynak: Linear DESIGN.md v2 (Nisan 2026)
   CamCheckL projesine uyarlanmıştır. Dark mode native.
   ==================================================================== */

/* Inter Variable — Linear'ın OpenType özellikleri */
body {
    font-feature-settings: "cv01", "ss03";
}

/* ================================================
   LINEAR — Gerçek dark surface hiyerarşisi
   Mevcut --bg-* tokenlarını Linear renkleriyle hizala
   ================================================ */
:root,
[data-theme="dark"] {
    /* Linear'ın gerçek background stack'i */
    --linear-bg-0:      #010102;   /* Marketing black */
    --linear-bg-panel:  #0f1011;   /* Panel/sidebar bg → --bg-base ile eşleş */
    --linear-bg-card:   #191a1b;   /* Elevated surfaces */
    --linear-bg-hover:  #28282c;   /* Hover/lightest dark */

    /* Linear'ın gerçek brand accent renkleri */
    --linear-brand:     #5e6ad2;   /* Primary CTA bg */
    --linear-accent:    #7170ff;   /* Interactive accent */
    --linear-accent-hv: #828fff;   /* Hover state */
    --linear-muted:     #7a7fad;   /* Muted/secondary accent */

    /* Linear'ın gerçek text renkleri */
    --linear-text-1:    #f7f8f8;   /* Primary (near-white) */
    --linear-text-2:    #d0d6e0;   /* Secondary silver-gray */
    --linear-text-3:    #8a8f98;   /* Tertiary muted */
    --linear-text-4:    #62666d;   /* Quaternary — timestamps */

    /* Linear'ın gerçek border renkleri */
    --linear-border:    rgba(255,255,255,0.05);  /* Default ultra-subtle */
    --linear-border-md: rgba(255,255,255,0.08);  /* Standard card/input */
    --linear-border-s:  #23252a;                 /* Solid border */

    /* Linear'ın green (status) */
    --linear-green:     #27a644;
    --linear-emerald:   #10b981;
}

/* ================================================
   LINEAR — Font özellikleri: Inter + cv01 + ss03
   ================================================ */
.detail-panel-title,
.modal-title,
.section-title,
.dash-card-title,
.stat-chip-num,
.row-name,
h1, h2, h3 {
    font-feature-settings: "cv01", "ss03";
    letter-spacing: -0.3px;
}

/* ================================================
   LINEAR — Company row: gerçek border & hover
   rgba(255,255,255,0.05) border + accent left border
   ================================================ */
.company-row {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    border-left: 2px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.company-row:hover {
    background: rgba(255,255,255,0.03);
    border-left-color: var(--linear-accent, var(--accent));
}

/* ================================================
   LINEAR — Gerçek button tokens
   Primary: #5e6ad2, hover: #828fff
   ================================================ */
.btn-primary {
    background: #5e6ad2;
    box-shadow: 0 1px 3px rgba(94, 106, 210, 0.25), inset 0 1px 0 rgba(255,255,255,0.08);
    color: #fff;
    border: none;
    letter-spacing: -0.1px;
    font-feature-settings: "cv01", "ss03";
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background: #828fff;
    box-shadow: 0 4px 14px rgba(113,112,255,0.30);
    transform: translateY(-1px);
}

.btn-primary:active {
    background: #5e6ad2;
    transform: translateY(0);
    box-shadow: none;
}

/* ================================================
   LINEAR — Standard ghost button
   rgba(255,255,255,0.02-0.05) bg
   ================================================ */
.btn,
.btn-secondary {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: rgba(0,0,0,0.10) 0px 4px 12px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover,
.btn-secondary:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.12);
}

[data-theme="light"] .btn,
[data-theme="light"] .btn-secondary {
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: rgba(0,0,0,0.05) 0px 1px 4px;
}

/* ================================================
   LINEAR — Card tokens
   rgba(255,255,255,0.02) bg + rgba(255,255,255,0.08) border
   ================================================ */
.dash-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: rgba(0,0,0,0.20) 0px 0px 0px 1px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dash-card:hover {
    border-color: rgba(255,255,255,0.12);
    box-shadow: rgba(0,0,0,0.30) 0px 4px 16px;
}

[data-theme="light"] .dash-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.07);
    box-shadow: rgba(0,0,0,0.04) 0px 1px 4px;
}

/* ================================================
   LINEAR — Input/form tokens
   ================================================ */
.form-input,
.form-select,
.form-textarea,
.search-input {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.08);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: rgba(113,112,255,0.5);
    box-shadow: 0 0 0 3px rgba(113,112,255,0.12);
    background: rgba(255,255,255,0.04);
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea {
    background: #ffffff;
    border-color: rgba(0,0,0,0.12);
}

/* ================================================
   LINEAR — Tab navigation: underline indicator
   ================================================ */
.tab-btn {
    color: #8a8f98;
    font-weight: 510;
    font-size: 13px;
    font-feature-settings: "cv01", "ss03";
}

.tab-btn:hover {
    color: #d0d6e0;
}

.tab-btn.active {
    color: #f7f8f8;
}

[data-theme="light"] .tab-btn { color: var(--text-2); }
[data-theme="light"] .tab-btn:hover { color: var(--text-1); }
[data-theme="light"] .tab-btn.active { color: var(--text-1); }

/* ================================================
   LINEAR — Stat chip: real border + accent active
   ================================================ */
.stat-chip {
    border-color: rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.025);
}

.stat-chip:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.12);
}

.stat-chip.stat-active {
    background: rgba(94,106,210,0.15);
    border-color: rgba(113,112,255,0.35);
}

.stat-chip-num {
    font-weight: 700;
    letter-spacing: -0.5px;
    font-feature-settings: "cv01", "ss03", "tnum";
}

/* ================================================
   LINEAR — Modal backdrop: rgba(0,0,0,0.85)
   ================================================ */
.modal {
    background: rgba(0, 0, 0, 0.85);
}

.modal-content {
    background: #191a1b;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        rgba(0,0,0,0.4) 0px 20px 60px,
        rgba(0,0,0,0.2) 0px 4px 20px,
        rgba(0,0,0,0.2) 0px 0px 0px 1px;
}

[data-theme="light"] .modal {
    background: rgba(0,0,0,0.30);
}

[data-theme="light"] .modal-content {
    background: #ffffff;
    border-color: rgba(0,0,0,0.10);
    box-shadow: rgba(0,0,0,0.12) 0px 20px 60px;
}

/* ================================================
   LINEAR — Status dot/badge: green tones
   ================================================ */
.status-dot-ok {
    background: #27a644;
}

.status-dot-warn {
    background: #f59e0b;
}

.status-dot-err {
    background: #ef4444;
}

/* ================================================
   LINEAR — Letter filter pill: accent active state
   ================================================ */
.letter-btn.active {
    background: #5e6ad2;
    color: #ffffff;
    border-color: #7170ff;
    box-shadow: 0 2px 8px rgba(94,106,210,0.35);
}

.letter-btn:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-1);
}

/* ================================================
   LINEAR — Header: backdrop blur
   Panel dark: #0f1011 with blur
   ================================================ */
.app-header {
    background: rgba(15, 16, 17, 0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

[data-theme="light"] .app-header {
    background: rgba(247, 248, 248, 0.90);
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

/* ================================================
   LINEAR — Dropdown: card style
   ================================================ */
.header-dropdown-menu {
    background: #191a1b;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: rgba(0,0,0,0.4) 0px 12px 40px, rgba(0,0,0,0.2) 0px 0px 0px 1px;
}

[data-theme="light"] .header-dropdown-menu {
    background: #ffffff;
    border-color: rgba(0,0,0,0.10);
    box-shadow: rgba(0,0,0,0.12) 0px 8px 30px;
}

/* ================================================
   SUPABASE — Cred badge: monospace dark code style
   ================================================ */
.cred-badge {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #828fff;
    font-family: var(--font-mono);
    font-size: 11px;
    border-radius: 5px;
    padding: 2px 7px;
    cursor: pointer;
    transition: all 0.15s ease;
    letter-spacing: -0.1px;
}

.cred-badge:hover {
    background: rgba(113,112,255,0.12);
    border-color: rgba(113,112,255,0.35);
    color: #a5b4fc;
}

[data-theme="light"] .cred-badge {
    background: rgba(91,94,240,0.06);
    border-color: rgba(91,94,240,0.18);
    color: #5b5ef0;
}



/* ====================================================================
   NOTION DESIGN SYSTEM — Gerçek Tokenlar (getdesign.md'den)
   ====================================================================
   Notion: Warm minimalism, serif headings, soft surfaces
   ==================================================================== */

/* ================================================
   NOTION — Light mode gerçek renk tokenları
   (Dark mod için CamCheckL'in kendi dark palette'i kalıyor)
   ================================================ */
[data-theme="light"] {
    /* Notion'ın sıcak nötr yüzeyleri */
    --notion-surface:       #f6f5f4;   /* Sidebar & alternating sections */
    --notion-canvas:        #ffffff;   /* Primary canvas */
    --notion-border:        rgba(0, 0, 0, 0.10);   /* "Whisper border" */
    --notion-text-1:        rgba(0, 0, 0, 0.95);   /* Near-black, never pure */
    --notion-text-2:        #615d59;   /* Medium warm gray */
    --notion-text-3:        #a39e98;   /* Light warm gray */
    --notion-accent:        #0075de;   /* Notion Blue */
    --notion-focus:         #097fe8;   /* Focus blue */

    /* Light mode override — Notion warm palette ile */
    --bg-base:      #f6f5f4;
    --bg-surface:   #ffffff;
    --bg-elevated:  #ededeb;
    --bg-hover:     rgba(0, 0, 0, 0.04);
    --border:       rgba(0, 0, 0, 0.10);
    --text-2:       #615d59;
    --text-3:       #a39e98;
}

/* ================================================
   NOTION — Card: whisper border + multi-layer shadow
   rgba(0,0,0,0.1) border, 12px radius, soft shadow
   ================================================ */
[data-theme="light"] .dash-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 12px;
    box-shadow:
        rgba(0,0,0,0.04)  0px 4px 18px,
        rgba(0,0,0,0.027) 0px 2px 7.85px,
        rgba(0,0,0,0.02)  0px 0.8px 2.93px,
        rgba(0,0,0,0.01)  0px 0.175px 1.04px;
}

/* ================================================
   NOTION — Typography scale: letter-spacing ile
   ================================================ */
.detail-panel-title,
.company-detail-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.875px;
    line-height: 1.3;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.1px;
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.25px;
    text-transform: uppercase;
    color: var(--text-3);
}

/* ================================================
   NOTION — Property rows: 8px padding, whisper border
   ================================================ */
.notion-prop-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    min-height: 36px;
    transition: background 0.12s ease;
}

.notion-prop-row:last-child { border-bottom: none; }

.notion-prop-row:hover {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
}

.notion-prop-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.25px;
    color: var(--text-3);
    text-transform: uppercase;
    min-width: 110px;
    flex-shrink: 0;
}

.notion-prop-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-1);
    flex: 1;
    line-height: 1.5;
}

/* ================================================
   NOTION — Input: 4px radius, whisper focus
   ================================================ */
[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea {
    border-color: rgba(0, 0, 0, 0.10);
    border-radius: 4px;
    background: #ffffff;
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-select:focus,
[data-theme="light"] .form-textarea:focus {
    border-color: #097fe8;
    box-shadow: 0 0 0 2px rgba(9, 127, 232, 0.15);
    outline: none;
}

/* ================================================
   NOTION — Primary button: Notion Blue, 4px radius
   ================================================ */
[data-theme="light"] .btn-primary {
    background: #0075de;
    border-radius: 4px;
    box-shadow: rgba(0,0,0,0.08) 0px 1px 3px;
    font-weight: 600;
    color: #ffffff;
}

[data-theme="light"] .btn-primary:hover {
    background: #097fe8;
    transform: none;
    box-shadow: rgba(0,0,0,0.12) 0px 3px 10px;
}

/* Secondary button — Notion */
[data-theme="light"] .btn,
[data-theme="light"] .btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.10);
    color: rgba(0, 0, 0, 0.87);
    border-radius: 4px;
}

[data-theme="light"] .btn:hover,
[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* ================================================
   NOTION — Empty state: Notion stil
   ================================================ */
[data-theme="light"] .empty-state h3 { color: #615d59; }
[data-theme="light"] .empty-state p  { color: #a39e98; }

/* ================================================
   NOTION — Activity log: timeline görünüm
   ================================================ */
.log-list {
    position: relative;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.log-list::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: var(--border);
}

.log-entry {
    position: relative;
    padding: 10px 0 10px 12px;
    border-bottom: 1px solid var(--border);
    transition: background 0.12s ease;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-entry::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 18px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--border-hover);
    z-index: 1;
}

.log-entry:first-child::before {
    background: var(--accent);
    border-color: var(--accent);
}

/* ================================================
   SUPABASE — Dark emerald tokens (dark mode içinde)
   ================================================ */
:root,
[data-theme="dark"] {
    --supa-bg:      #0f0f0f;
    --supa-surface: #171717;
    --supa-card:    #1c1c1c;
    --supa-border:  #2e2e2e;
    --supa-border2: #363636;
    --supa-green:   #3ecf8e;
    --supa-green2:  #00c573;
}

/* Supabase tarzı credential/code badge — dark modda */
[data-theme="dark"] .cred-badge {
    background: #171717;
    border: 1px solid #2e2e2e;
    color: #3ecf8e;
    font-family: var(--font-mono);
    font-size: 11px;
    border-radius: 6px;
    padding: 3px 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

[data-theme="dark"] .cred-badge:hover {
    background: rgba(62, 207, 142, 0.10);
    border-color: #3ecf8e;
    color: #3ecf8e;
    box-shadow: 0 0 8px rgba(62, 207, 142, 0.12);
}

/* ================================================
   FOOTER — Notion property row tarzı
   ================================================ */
.detail-panel-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
    padding: 16px 20px;
}

.detail-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.detail-footer-item {
    padding: 8px 12px 8px 0;
}

.detail-footer-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.25px;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 3px;
}

.detail-footer-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
}

.detail-footer-date {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 1px;
}


/* ====================================================================
   UI-UX PRO MAX: ACCESSIBILITY & ANIMATION RULES
   ==================================================================== */

:root {
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Enhance base transition to use ease-out for entering elements */
    --transition: 0.2s var(--ease-out);
}

/* 1. ACCESSIBLE FOCUS RINGS (A11y) */
/* Override specific Stripe shadow if keyboard navigation is used */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    box-shadow: none !important;
}

/* 2. MODAL ANIMATIONS (Fade-in-up) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal.modal-active .modal-content {
    animation: fadeInUp 0.4s var(--ease-out) forwards;
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
}

.modal.modal-closing .modal-content {
    animation: fadeOutDown 0.3s var(--ease-in) forwards;
}

/* 3. REDUCED MOTION (A11y) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .modal.modal-active .modal-content {
        animation: none !important;
        transform: none !important;
    }
}

/* ================================================
   ACTIVE USERS PANEL
   ================================================ */
.active-users-panel {
    position: fixed;
    bottom: 24px;
    right: 28px;
    width: 260px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 150;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.active-users-header {
    height: 44px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-elevated);
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: background var(--transition);
}

.active-users-panel.panel-expanded .active-users-header {
    border-bottom-color: var(--border);
}

.active-users-header:hover {
    background: var(--bg-hover);
}

.active-users-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-1);
}

.online-indicator {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green-soft);
    position: relative;
    flex-shrink: 0;
}

.online-indicator::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1px solid var(--green);
    animation: pulse 2s infinite;
    opacity: 0.6;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    70% { transform: scale(2); opacity: 0; }
    100% { transform: scale(2); opacity: 0; }
}

.expand-icon {
    font-size: 18px !important;
    color: var(--text-2);
    transition: transform 0.3s;
}

.active-users-panel.panel-expanded .expand-icon {
    transform: rotate(180deg);
}

/* Kapalıyken liste tamamen gizli; açılınca yukarı doğru büyür */
.active-users-body {
    max-height: 0;
    overflow-y: hidden;
    background: var(--bg-surface);
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.active-users-panel.panel-expanded .active-users-body {
    max-height: 250px;
    overflow-y: auto;
}

.active-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
}

.active-user-item:last-child {
    border-bottom: none;
}

.active-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.active-user-name {
    font-size: 13px;
    color: var(--text-1);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ================================================
   LOGO FIXES AND BRANDING
   ================================================ */

/* Ensure uploaded square logos fit inside the circle instead of being cut off */
.row-avatar-img, .detail-avatar-img {
    object-fit: contain !important;
    padding: 3px;
    background-color: var(--bg-surface);
}

/* Branding color for Logo Text in Light Mode (SHGM Blue) */
[data-theme="light"] .logo-text {
    color: #1a4f8f !important;
}

/* ================================================
   TURKEY MAP MODULE
   ================================================ */

/* Full-screen Map Modal */
.modal-content-map {
    max-width: 95vw;
    width: 95vw;
    max-height: 90vh;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.map-modal-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0;
}

.map-canvas-wrapper {
    flex: 1;
    overflow: hidden;
    padding: 12px 16px;
    min-width: 0;
}

.map-detail-panel {
    width: 300px;
    flex-shrink: 0;
    border-left: 1px solid var(--border);
    overflow-y: auto;
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
}

/* Map Bubble Tooltip */
.map-bubble-tooltip {
    position: absolute;
    pointer-events: none;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    box-shadow: var(--shadow-md);
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 10;
    top: 16px;
    left: 16px;
    min-width: 110px;
}

.mtt-plate {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-text);
    letter-spacing: 0.5px;
}

.mtt-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
}

.mtt-count {
    font-size: 11px;
    color: var(--accent-text);
    font-weight: 500;
}

.mtt-empty {
    font-size: 11px;
    color: var(--text-3);
}

/* Map Stats Badge */
.map-stats-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-text);
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    border-radius: 100px;
    padding: 3px 10px;
}

/* Map Province Detail Panel */
.map-detail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-3);
    height: 100%;
    padding: 32px 20px;
    text-align: center;
}

.map-detail-placeholder .material-symbols-outlined {
    font-size: 40px;
    opacity: 0.5;
}

.map-detail-placeholder p {
    font-size: 13px;
    line-height: 1.5;
}

.map-prov-header {
    padding: 20px 16px 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.map-prov-plate {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: var(--accent);
    border-radius: 6px;
    padding: 2px 7px;
    letter-spacing: 0.5px;
}

.map-prov-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
    margin: 0;
}

.map-prov-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-text);
    background: var(--accent-soft);
    border-radius: 100px;
    padding: 2px 8px;
}

.map-prov-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px 16px;
    color: var(--text-3);
    font-size: 13px;
    text-align: center;
}

.map-prov-empty .material-symbols-outlined {
    font-size: 32px;
    opacity: 0.4;
}

.map-prov-companies {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.map-prov-company {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-1);
    transition: background 0.15s, border-color 0.15s;
}

.map-prov-company:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
}

.map-prov-company.approved {
    background: var(--accent-soft);
    border-color: rgba(99, 102, 241, 0.25);
}

.map-prov-company.approved:hover {
    background: rgba(99, 102, 241, 0.18);
    border-color: var(--accent);
}

.map-prov-company .material-symbols-outlined {
    font-size: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

/* ---- Province Chip List ---- */
.prov-chips-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.prov-chips-search {
    flex: 1;
    height: 34px;
    font-size: 13px;
}

.prov-chips-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-text);
    white-space: nowrap;
    background: var(--accent-soft);
    border-radius: 100px;
    padding: 3px 10px;
}

.prov-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-height: 210px;
    overflow-y: auto;
    padding: 10px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.prov-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    font-size: 11px;
    font-family: inherit;
    color: var(--text-2);
    transition: all 0.12s ease;
    line-height: 1;
}

.prov-chip:hover {
    border-color: var(--border-hover);
    color: var(--text-1);
}

.prov-chip-active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-text);
}

.prov-chip-plate {
    font-weight: 800;
    font-size: 10px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-text);
    padding: 1px 4px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.prov-chip-active .prov-chip-plate {
    background: rgba(99, 102, 241, 0.3);
}

.prov-chip-name {
    font-weight: 500;
    font-size: 11px;
}

/* ---- Exam Province Pills (in detail panel) ---- */
.exam-prov-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-text);
}

/* ---- Small subtle action button ---- */
.btn-sm-subtle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-family: inherit;
    font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
    transition: background 0.14s, border-color 0.14s, color 0.14s;
}
.btn-sm-subtle:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-text);
}
.btn-sm-subtle .material-symbols-outlined {
    font-size: 14px;
}

/* ---- Map: info text for province status colors ---- */
.map-modal-body svg path {
    outline: none;
}

/* ---- Map Province Company List (status-aware) ---- */
.map-prov-company {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.13s, border-color 0.13s;
}
.map-prov-company:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}
.map-co-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-green { background: #22c55e; }
.dot-red   { background: #ef4444; }

.map-co-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.map-co-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.map-co-status {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.mcs-green { color: #16a34a; }
.mcs-red   { color: #dc2626; }

.map-co-arrow {
    flex-shrink: 0;
    font-size: 15px !important;
    color: var(--text-3);
}

/* Province count badge color variants */
.map-prov-count.count-green {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    border-color: transparent;
}
.map-prov-count.count-red {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border-color: transparent;
}

/* Map loading spinner animation */
@keyframes mapSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ================================================
   REPORTING & DASHBOARD MODULE
   ================================================ */

.modal-content-reports {
    max-width: 95vw;
    width: 95vw;
    max-height: 90vh;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.reports-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    padding: 0 4px;
}

/* Tabs */
.reports-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.reports-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-2);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.reports-tab-btn:hover {
    color: var(--text-1);
    background: var(--bg-hover);
}

.reports-tab-btn.active {
    color: var(--accent-text);
    background: var(--accent-soft);
    border-color: var(--border-focus);
}

.reports-tab-btn .material-symbols-outlined {
    font-size: 16px;
}

.reports-tab-content {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 20px;
}

.reports-tab-content.hidden {
    display: none !important;
}

/* Dashboard Stats Grid */
.report-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    flex-shrink: 0;
}

.report-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.rsc-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.rsc-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rsc-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rsc-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-1);
}

/* Dashboard Charts Row */
.report-charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 16px;
    flex: 1;
}

.report-chart-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    min-height: 300px;
}

.rcc-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.rcc-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rcc-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-3);
    font-size: 13px;
}

/* Progress Bar Rows */
.report-bar-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rbr-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 500;
}

.rbr-label {
    color: var(--text-1);
    font-weight: 600;
}

.rbr-val-text {
    color: var(--text-2);
}

.rbr-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
}

.rbr-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease-out;
}

/* Filtering Layout */
.report-filters-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
}

.report-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.rfg-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rfg-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.25px;
}

.report-actions-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.rep-result-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
}

/* Detailed Rapor Table */
.report-table-wrapper {
    flex: 1;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    text-align: left;
}

.report-table th {
    position: sticky;
    top: 0;
    background: var(--bg-elevated);
    color: var(--text-1);
    font-weight: 700;
    padding: 10px 14px;
    border-bottom: 1.5px solid var(--border);
    z-index: 2;
}

.report-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
}

.report-table tbody tr:hover td {
    background: var(--bg-hover);
    color: var(--text-1);
}

.badge-type,
.badge-status {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.table-cell-ellipsis {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-transform: none;
    text-overflow: ellipsis;
}

/* ================================================
   SINAV MERKEZLERİ NOT DEFTERİ STİLLERİ (Yenilenmiş Tasarım)
   ================================================ */
.notebook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 20px;
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 6px;
}

@media (max-width: 600px) {
    .notebook-grid {
        grid-template-columns: 1fr;
    }
}

.notebook-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.notebook-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.nbc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.nbc-header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nbc-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nbc-title {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.nbc-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.nbc-edit-btn {
    padding: 6px 12px;
    font-size: 12px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.nbc-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
}

.nbc-callout {
    background: var(--accent-soft);
    border: 1px solid var(--border-focus);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nbc-callout-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-text);
    white-space: nowrap;
}

.nbc-callout-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-1);
}

/* Notion-style Structured Data Table */
.nbc-data-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--bg-input);
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.nbc-data-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
}

@media (max-width: 480px) {
    .nbc-data-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

.nbc-data-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nbc-data-label .material-symbols-outlined {
    font-size: 16px;
    color: var(--accent);
}

.nbc-data-val {
    font-size: 13px;
    color: var(--text-1);
    word-break: break-all;
}

.nbc-data-val.font-mono {
    font-family: var(--font-mono);
    font-size: 12px;
}

.nbc-account-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nbc-account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-2);
}

.nbc-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-3);
    border-bottom: 1px solid var(--border);
    padding-bottom: 4px;
    margin-top: 4px;
}

.nbc-proctor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.nbc-proctor-card {
    background: var(--bg-input);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}




/* ---- Load error overlay ---- */
.load-error-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.55);
}

.load-error-card {
    max-width: 420px;
    width: 100%;
    padding: 28px 24px;
    text-align: center;
    border-radius: 16px;
    background: var(--bg-surface, #fff);
    color: var(--text-1, #111);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.load-error-card .material-symbols-outlined {
    font-size: 44px;
    color: var(--red, #ef4444);
}

.load-error-card h2 {
    margin: 8px 0 6px;
    font-size: 18px;
}

.load-error-card p {
    margin: 0 0 18px;
    font-size: 14px;
    color: var(--text-2, #555);
}
