/* SKS Kalite Standartlari Portali - Ozel Umit Hastaneleri */

:root {
    --primary: #9B2257;
    --primary-light: #c0396e;
    --primary-dark: #6d1740;
    --primary-darker: #4a0f2c;
    --accent: #d4275e;
    --accent-light: #e8548a;
    --success: #27ae60;
    --warning: #f39c12;
    --bg: #faf5f7;
    --bg-card: #ffffff;
    --text: #2c2030;
    --text-light: #7f7085;
    --border: #e8dce2;
    --shadow: 0 2px 12px rgba(155,34,87,0.06);
    --shadow-lg: 0 6px 24px rgba(155,34,87,0.12);
    --radius: 10px;
    --radius-lg: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* ===================== HERO BANNER ===================== */
.hero-banner {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary) 50%, var(--primary-light) 100%);
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero-logo-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.hero-logo-row img {
    height: 65px;
    width: auto;
    opacity: 1;
    filter: brightness(0) invert(1);
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 6px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.hero-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 20px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* ===================== HEADER ===================== */
.header {
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary) 60%, var(--primary-light) 100%);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.header-logo img {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
}

.header-logo-text h1 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.header-logo-text .subtitle {
    font-size: 0.7rem;
    opacity: 0.85;
    font-weight: 400;
}

.header-stats {
    display: flex;
    gap: 24px;
    font-size: 0.8rem;
}

.header-stat {
    text-align: center;
    padding: 4px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.header-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
}

.header-stat-label {
    opacity: 0.85;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================== ARAMA BARI ===================== */
.search-bar {
    background: rgba(0,0,0,0.15);
    padding: 12px 24px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input-wrapper {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-input-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-light);
}

.search-input {
    width: 100%;
    padding: 11px 14px 11px 42px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.95);
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(155,34,87,0.15);
}

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

.filter-select {
    padding: 11px 14px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.95);
    font-size: 0.88rem;
    color: var(--text);
    cursor: pointer;
    min-width: 155px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-light);
}

.search-btn {
    padding: 11px 28px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
}

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

/* ===================== ANA ICERIK ===================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 0.85rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}

.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--border); }

/* ===================== ISTATISTIK KARTLARI ===================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 22px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-card-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.stat-card-value {
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card-label {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================== BOYUT KARTLARI ===================== */
.boyut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.boyut-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid var(--border);
}

.boyut-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.boyut-card-header {
    padding: 18px 20px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.boyut-card-header svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.boyut-1 .boyut-card-header { background: linear-gradient(135deg, #6d1740, #9B2257); }
.boyut-2 .boyut-card-header { background: linear-gradient(135deg, #7b2d8e, #a855c7); }
.boyut-3 .boyut-card-header { background: linear-gradient(135deg, #1a7a4a, #2ecc71); }
.boyut-4 .boyut-card-header { background: linear-gradient(135deg, #b8860b, #e6a817); }
.boyut-5 .boyut-card-header { background: linear-gradient(135deg, #922b21, #d44637); }

.boyut-card-body {
    padding: 16px 20px;
}

.boyut-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--bg);
}

.boyut-stat-row:last-child { border-bottom: none; }

.boyut-stat-row strong {
    color: var(--primary);
}

.boyut-bolum-list {
    margin-top: 12px;
}

.boyut-bolum-item {
    padding: 9px 14px;
    margin: 4px 0;
    background: var(--bg);
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
}

.boyut-bolum-item:hover {
    background: #fce4ee;
    border-color: var(--primary-light);
}

.boyut-bolum-item .badge {
    background: var(--primary);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* ===================== BOLUM DETAY ===================== */
.bolum-header {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 28px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.bolum-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bolum-amac {
    background: linear-gradient(135deg, #fdf2f6, #fce4ee);
    border-left: 4px solid var(--primary);
    padding: 18px;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.9rem;
    line-height: 1.85;
    white-space: pre-line;
}

.bolum-amac-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* ===================== STANDART KARTLARI ===================== */
.standart-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.standart-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.standart-card:hover {
    box-shadow: var(--shadow-lg);
}

.standart-card.cekirdek {
    border-left: 5px solid var(--accent);
}

.standart-header {
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

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

.standart-kod {
    background: var(--primary);
    color: white;
    padding: 5px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.83rem;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.standart-card.cekirdek .standart-kod {
    background: var(--accent);
}

.standart-aciklama {
    flex: 1;
    font-size: 0.93rem;
    line-height: 1.65;
}

.standart-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.puan-badge {
    background: var(--success);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
}

.cekirdek-badge {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.73rem;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toggle-icon {
    color: var(--text-light);
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.standart-card.open .toggle-icon {
    transform: rotate(180deg);
}

/* ===================== OLCUT LISTESI ===================== */
.olcut-container {
    display: none;
    border-top: 2px solid var(--bg);
    background: #fdfbfc;
}

.standart-card.open .olcut-container {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.olcut-item {
    padding: 14px 20px 14px 52px;
    border-bottom: 1px solid var(--bg);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: background 0.2s;
}

.olcut-item:hover {
    background: #fce4ee22;
}

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

.olcut-kod {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.83rem;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 85px;
}

.olcut-aciklama {
    font-size: 0.9rem;
    line-height: 1.75;
    white-space: pre-line;
}

.olcut-puan {
    background: #e8f5e9;
    color: var(--success);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.73rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===================== ARAMA SONUCLARI ===================== */
.search-results-header {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.search-results-header h2 {
    color: var(--primary);
    font-size: 1.1rem;
}

.search-result-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 20px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
}

.search-result-item:hover {
    border-color: var(--primary);
    transform: translateX(3px);
}

.result-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 8px;
    letter-spacing: 0.5px;
}

.result-type-standart { background: #fce4ee; color: var(--primary); }
.result-type-olcut { background: #fef3e0; color: #e67e22; }
.result-type-bolum { background: #e8f5e9; color: var(--success); }

.result-path {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 6px;
}

.highlight {
    background: #ffe082;
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 600;
}

/* ===================== YUKLENIYOR ===================== */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== BUTONLAR ===================== */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--primary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
}

.back-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.toggle-all-btn {
    padding: 9px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.toggle-all-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

.section-toolbar h3 {
    color: var(--primary);
    font-size: 1.05rem;
}

/* ===================== BILGI KARTLARI ===================== */
.info-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--border);
}

.info-section h3 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.info-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 20px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
}

.info-card h4 {
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.info-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===================== BOS DURUM ===================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state svg {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* ===================== FOOTER ===================== */
.footer {
    text-align: center;
    padding: 28px 20px;
    color: var(--text-light);
    font-size: 0.8rem;
    border-top: 2px solid var(--border);
    margin-top: 48px;
    background: var(--bg-card);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.footer-logo img {
    height: 30px;
    opacity: 0.6;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .hero-banner { height: 200px; }
    .hero-title { font-size: 1.3rem; }
    .hero-logo-row img { height: 40px; }

    .header-top {
        flex-direction: column;
        gap: 8px;
        padding: 10px 16px;
    }

    .header-stats { gap: 10px; }

    .search-bar {
        flex-direction: column;
        padding: 10px 16px;
    }

    .search-input-wrapper { min-width: 100%; }
    .filter-select { width: 100%; }
    .boyut-grid { grid-template-columns: 1fr; }
    .container { padding: 14px; }

    .standart-header { flex-direction: column; }
    .standart-meta { width: 100%; justify-content: flex-start; }
    .olcut-item { padding-left: 16px; flex-direction: column; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-card { padding: 14px; }
    .stat-card-value { font-size: 1.8rem; }
}

/* ===================== DENETIM DURUM BADGES ===================== */
.durum-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.durum-tamamlandi {
    background: #e8f5e9;
    color: #27ae60;
    border: 1px solid #a5d6a7;
}

.durum-devam {
    background: #fff8e1;
    color: #e67e22;
    border: 1px solid #ffe082;
}

.durum-baslanmadi {
    background: #f5f5f5;
    color: #95a5a6;
    border: 1px solid #e0e0e0;
}

.durum-uygun-degil {
    background: #ffebee;
    color: #e74c3c;
    border: 1px solid #ef9a9a;
}

.yuzde-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.73rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

.olcut-durum-area {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ===================== DENETIM EDIT KONTROLLERI ===================== */
.olcut-edit-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px 8px 52px;
    background: #fdf2f6;
    border-top: 1px dashed var(--border);
    flex-wrap: wrap;
}

.edit-durum {
    padding: 6px 10px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem;
    background: white;
    color: var(--text);
    cursor: pointer;
    min-width: 140px;
    transition: border-color 0.2s;
}

.edit-durum:focus {
    outline: none;
    border-color: var(--primary);
}

.edit-yuzde {
    padding: 6px 10px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem;
    background: white;
    color: var(--text);
    width: 65px;
    text-align: center;
    transition: border-color 0.2s;
}

.edit-yuzde:focus {
    outline: none;
    border-color: var(--primary);
}

.edit-not {
    padding: 6px 10px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem;
    background: white;
    color: var(--text);
    flex: 1;
    min-width: 120px;
    transition: border-color 0.2s;
}

.edit-not:focus {
    outline: none;
    border-color: var(--primary);
}

.edit-not::placeholder,
.edit-yuzde::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

/* ===================== KAYIT BILGI (Kaydeden + Tarih) ===================== */
.kayit-bilgi {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 20px 4px 52px;
    font-size: 0.73rem;
    color: var(--text-light);
    flex-wrap: wrap;
    width: 100%;
}

.kayit-bilgi span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #f0f4f8;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

/* ===================== SORUMLU BILGI BAR ===================== */
.sorumlu-bilgi-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.sorumlu-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid #90caf9;
}

.sorumlu-chip small {
    font-weight: 400;
    opacity: 0.8;
}

/* ===================== TAB NAVIGATION ===================== */
.tab-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
}

.tab-btn {
    padding: 10px 24px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

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

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    animation: slideDown 0.3s ease;
}

/* ===================== SORUMLULUK FORM ===================== */
.sorumluluk-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: end;
}

/* ===================== ADMIN PANEL ===================== */
.admin-user-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: end;
}

@media (max-width: 768px) {
    .olcut-edit-row {
        padding-left: 16px;
        flex-direction: column;
        align-items: stretch;
    }
    .edit-durum { min-width: 100%; }
    .edit-yuzde { width: 100%; }
    .admin-user-grid {
        grid-template-columns: 1fr;
    }
    .sorumluluk-form-grid {
        grid-template-columns: 1fr;
    }
    .tab-nav {
        overflow-x: auto;
    }
    .tab-btn {
        padding: 8px 16px;
        font-size: 0.82rem;
        white-space: nowrap;
    }
    .kayit-bilgi {
        padding-left: 16px;
    }
    .sorumlu-bilgi-bar {
        gap: 4px;
    }
    .sorumlu-chip {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}

/* ===================== PERSONEL TABLO ===================== */
.personel-tablo-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.personel-tablo {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    white-space: nowrap;
}

.personel-tablo th {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
}

.personel-tablo td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--bg);
    vertical-align: middle;
}

.personel-tablo tbody tr:hover {
    background: #fdf2f6;
}

.personel-tablo tbody tr:nth-child(even) {
    background: #faf8f9;
}

.personel-tablo tbody tr:nth-child(even):hover {
    background: #fdf2f6;
}

.personel-bolum-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
    border: 1px solid #90caf9;
    white-space: nowrap;
}

.personel-btn-edit {
    background: #f39c12;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.personel-btn-edit:hover {
    background: #e67e22;
}

.personel-btn-del {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.personel-btn-del:hover {
    background: #c0392b;
}

/* ===================== PERSONEL FORM ===================== */
.personel-form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    align-items: end;
}

/* ===================== IMPORT AREA ===================== */
.import-area {
    margin-top: 10px;
}

.import-dropzone {
    border: 3px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fdfbfc;
}

.import-dropzone:hover,
.import-dropzone.dragover {
    border-color: var(--primary);
    background: #fdf2f6;
    transform: scale(1.01);
}

.import-dropzone.dragover {
    border-color: var(--accent);
    background: #fce4ee;
}

@media (max-width: 768px) {
    .personel-form-grid {
        grid-template-columns: 1fr 1fr;
    }
    .personel-tablo {
        font-size: 0.78rem;
    }
    .personel-tablo th,
    .personel-tablo td {
        padding: 7px 8px;
    }
}

@media (max-width: 480px) {
    .personel-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================== PRINT ===================== */
@media print {
    .header, .search-bar, .back-btn, .breadcrumb, .hero-banner, .footer { display: none !important; }
    .standart-card .olcut-container { display: block !important; }
    .container { max-width: 100%; padding: 0; }
    .standart-card, .boyut-card { break-inside: avoid; }
    .personel-tablo { white-space: normal; }
    .personel-btn-edit, .personel-btn-del { display: none; }
}
