/* ================================================================
   ILMIY KENGASH SAHIFASI
   ================================================================ */

:root {
    --primary:   #1566B7;
    --primary-d: #0d47a1;
    --gold:      #FFD54F;
    --text:      #2c3e50;
    --muted:     #5f738c;
    --light-bg:  #f8faff;
    --border:    #e5efff;
    --dark-bg:   #0e1a2b;
}

/* ── HEADER ── */
.ik-header {
    background: linear-gradient(135deg, var(--primary-d) 0%, var(--primary) 100%);
    padding: 56px 0 44px;
    position: relative;
    overflow: hidden;
}
.ik-header-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.ik-orb-1 { width: 300px; height: 300px; left: -70px; bottom: -70px; background: rgba(255,255,255,0.05); }
.ik-orb-2 { width: 420px; height: 420px; right: -110px; top: -110px; background: rgba(255,255,255,0.04); }
.ik-header-inner { position: relative; z-index: 2; }

.ik-header .breadcrumb { background: none; padding: 0; margin-bottom: 16px; }
.ik-header .breadcrumb-item,
.ik-header .breadcrumb-item a { color: rgba(255,255,255,0.65); font-size: 13px; text-decoration: none; font-family: sans-serif; }
.ik-header .breadcrumb-item a:hover { color: var(--gold); }
.ik-header .breadcrumb-item.active { color: #fff; }
.ik-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.35); }

.ik-header-tag {
    display: inline-block; font-size: 10px; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--gold); background: rgba(255,213,79,0.12);
    border: 1px solid rgba(255,213,79,0.25);
    padding: 5px 16px; border-radius: 20px;
    margin-bottom: 14px; font-family: sans-serif;
}
.ik-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(30px, 4vw, 48px); font-weight: 900;
    color: #fff; line-height: 1.15; margin-bottom: 10px;
}
.ik-header h1 em { font-style: italic; color: var(--gold); }
.ik-header-sub {
    font-size: 14px; font-weight: 300;
    color: rgba(255,255,255,0.6);
    font-family: sans-serif;
}
body.dark .ik-header { background: linear-gradient(135deg, #060c18 0%, #0a1628 100%); }

/* ── SECTION ── */
.ik-section { background: var(--light-bg); padding: 44px 0 88px; }
body.dark .ik-section { background: #0a1525; }

/* ── LAYOUT ── */
.ik-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

/* ── SIDEBAR NAV ── */
.ik-sidebar {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(21,102,183,0.07);
    overflow: hidden;
    position: sticky;
    top: 20px;
}
body.dark .ik-sidebar { background: #1a2740; border-color: rgba(255,255,255,0.07); }

.ik-nav-title {
    font-family: 'Playfair Display', serif;
    font-size: 11px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--muted);
    padding: 16px 20px 10px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.ik-nav-title::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
}
body.dark .ik-nav-title { border-color: rgba(255,255,255,0.07); color: #64748b; }

.ik-nav { display: flex; flex-direction: column; padding: 8px; gap: 4px; }

.ik-nav-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    background: none; border: none;
    border-radius: 12px;
    font-size: 13px; font-weight: 500;
    font-family: sans-serif; color: var(--text);
    cursor: pointer; text-align: left;
    transition: background 0.2s, color 0.2s;
    width: 100%;
}
.ik-nav-btn > i:first-child { font-size: 14px; color: var(--muted); flex-shrink: 0; }
.ik-nav-btn span { flex: 1; line-height: 1.4; }
.ik-arrow { font-size: 10px; color: transparent; transition: color 0.2s, transform 0.2s; }

.ik-nav-btn:hover { background: var(--light-bg); }
.ik-nav-btn:hover .ik-arrow { color: var(--muted); }

.ik-nav-btn.active {
    background: linear-gradient(135deg, var(--primary-d), var(--primary));
    color: #fff;
    box-shadow: 0 4px 14px rgba(21,102,183,0.25);
}
.ik-nav-btn.active > i:first-child { color: rgba(255,255,255,0.8); }
.ik-nav-btn.active .ik-arrow { color: rgba(255,255,255,0.6); transform: translateX(2px); }

body.dark .ik-nav-btn { color: #94a3b8; }
body.dark .ik-nav-btn:hover { background: rgba(255,255,255,0.05); }
body.dark .ik-nav-btn.active { background: linear-gradient(135deg, var(--primary-d), var(--primary)); color: #fff; }

/* ── CONTENT ── */
.ik-content {
    min-width: 0;
}

/* ── PANEL ── */
.ik-panel {
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(21,102,183,0.07);
    overflow: hidden;
}
body.dark .ik-panel { background: #1a2740; border-color: rgba(255,255,255,0.07); }

.ik-panel-header {
    display: flex; align-items: center; gap: 16px;
    padding: 22px 28px;
    border-bottom: 1px solid var(--border);
    background: var(--light-bg);
    position: relative;
}
.ik-panel-header::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
}
body.dark .ik-panel-header { background: #111e33; border-color: rgba(255,255,255,0.07); }

.ik-panel-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-d), var(--primary));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px;
    box-shadow: 0 4px 12px rgba(21,102,183,0.25);
}
.ik-panel-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 19px; font-weight: 900;
    color: var(--primary-d); margin: 0 0 3px;
}
body.dark .ik-panel-header h2 { color: #90caf9; }
.ik-panel-header p { font-size: 13px; color: var(--muted); font-family: sans-serif; margin: 0; }
body.dark .ik-panel-header p { color: #64748b; }

.ik-panel-body { padding: 24px 28px; }

/* ── NIZOM: Qoidalar ── */
.ik-info-lead {
    font-family: 'Playfair Display', serif;
    font-size: 16px; font-weight: 700;
    color: var(--primary-d); margin-bottom: 20px;
}
body.dark .ik-info-lead { color: #90caf9; }

.ik-rules { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }

.ik-rule-item {
    display: flex; gap: 14px; align-items: flex-start;
    opacity: 0; transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.ik-rule-item.visible { opacity: 1; transform: translateY(0); }

.ik-rule-num {
    width: 30px; height: 30px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-d), var(--primary));
    color: #fff; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    font-family: sans-serif;
    margin-top: 2px;
}
.ik-rule-item p {
    font-family: 'Source Serif 4', serif;
    font-size: 14px; line-height: 1.8;
    color: #4a5568; font-weight: 300; margin: 0;
}
body.dark .ik-rule-item p { color: #94a3b8; }

.ik-note {
    display: flex; align-items: flex-start; gap: 10px;
    background: rgba(21,102,183,0.06);
    border: 1px solid rgba(21,102,183,0.12);
    border-left: 3px solid var(--primary);
    border-radius: 10px; padding: 12px 14px;
    margin-bottom: 24px;
}
.ik-note > i { color: var(--primary); font-size: 15px; margin-top: 2px; flex-shrink: 0; }
.ik-note p { font-family: sans-serif; font-size: 13px; line-height: 1.65; color: var(--muted); margin: 0; }
body.dark .ik-note { background: rgba(21,102,183,0.1); border-color: rgba(21,102,183,0.2); }
body.dark .ik-note > i { color: #90caf9; }
body.dark .ik-note p { color: #64748b; }

/* ── PDF SECTION ── */
.ik-pdf-section { margin-top: 4px; }
.ik-pdf-header {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 14px; font-weight: 700;
    color: var(--primary-d);
    padding: 12px 16px;
    background: rgba(21,102,183,0.05);
    border-radius: 12px 12px 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
}
.ik-pdf-header > i { font-size: 18px; color: #e53935; }
body.dark .ik-pdf-header { background: rgba(21,102,183,0.1); border-color: rgba(255,255,255,0.07); color: #90caf9; }

.ik-pdf-viewer {
    border: 1px solid var(--border);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}
body.dark .ik-pdf-viewer { border-color: rgba(255,255,255,0.07); }

/* ── TARKIB: Shaxslar ── */
.ik-persons-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.ik-person-card {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px;
    background: var(--light-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: box-shadow 0.25s;
    opacity: 0; transform: translateY(14px);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.25s;
}
.ik-person-card.visible { opacity: 1; transform: translateY(0); }
.ik-person-card:hover { box-shadow: 0 6px 20px rgba(21,102,183,0.1); }
body.dark .ik-person-card { background: #111e33; border-color: rgba(255,255,255,0.07); }

.ik-person-card img {
    width: 120px; height: 140px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    border: 2px solid var(--border);
}
body.dark .ik-person-card img { border-color: rgba(255,255,255,0.1); }

.ik-person-role {
    font-size: 14px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--border);
    background: linear-gradient(135deg, var(--primary-d), var(--primary));
    padding: 3px 10px; border-radius: 6px;
    display: inline-block; margin-bottom: 6px;
    font-family: sans-serif;
}
.ik-person-name {
    font-family: 'Playfair Display', serif;
    font-size: 14px; font-weight: 700;
    color: var(--dark-bg); margin-bottom: 4px;
    line-height: 1.35;
}
body.dark .ik-person-name { color: #e2e8f0; }
.ik-person-pos {
    font-size: 12px; color: var(--muted);
    font-family: sans-serif; margin-bottom: 8px;
}
body.dark .ik-person-pos { color: #64748b; }

.ik-person-contact {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--primary);
    font-family: sans-serif; text-decoration: none;
    margin-bottom: 4px;
    transition: color 0.2s;
}
.ik-person-contact:hover { color: var(--primary-d); }
.ik-person-contact i { font-size: 11px; }
body.dark .ik-person-contact { color: #90caf9; }

/* ── DOC LIST (Kun tartibi / Qarorlar) ── */
.ik-docs-list { display: flex; flex-direction: column; gap: 8px; }

.ik-doc-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    background: var(--light-bg);
    border-radius: 14px;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    opacity: 0; transform: translateX(-10px);
}
.ik-doc-item.visible {
    opacity: 1; transform: translateX(0);
    transition: opacity 0.4s ease, transform 0.4s ease,
    background 0.2s, box-shadow 0.2s;
}
.ik-doc-item:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(21,102,183,0.1);
    transform: translateX(3px);
}
body.dark .ik-doc-item { background: #111e33; border-color: rgba(255,255,255,0.06); }
body.dark .ik-doc-item:hover { background: #1a2740; }

.ik-doc-icon {
    width: 42px; height: 42px; flex-shrink: 0;
    background: rgba(229,57,53,0.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #e53935;
}

.ik-doc-info { flex: 1; min-width: 0; }
.ik-doc-name {
    font-family: sans-serif;
    font-size: 14px; font-weight: 600;
    color: var(--text); line-height: 1.4;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.dark .ik-doc-name { color: #e2e8f0; }
.ik-doc-meta {
    font-size: 12px; color: var(--muted);
    font-family: sans-serif; margin-top: 2px;
}
body.dark .ik-doc-meta { color: #64748b; }

.ik-doc-dl {
    font-size: 16px; color: var(--primary);
    flex-shrink: 0;
    opacity: 0; transition: opacity 0.2s;
}
.ik-doc-item:hover .ik-doc-dl { opacity: 1; }
body.dark .ik-doc-dl { color: #90caf9; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .ik-layout { grid-template-columns: 220px 1fr; }
}
@media (max-width: 768px) {
    .ik-layout { grid-template-columns: 1fr; }
    .ik-sidebar { position: static; }
    .ik-nav { flex-direction: row; flex-wrap: wrap; padding: 8px; gap: 6px; }
    .ik-nav-btn { padding: 9px 12px; font-size: 12px; }
    .ik-nav-btn span { display: none; }
    .ik-nav-btn > i:first-child { font-size: 16px; }
    .ik-arrow { display: none; }
    .ik-persons-row { grid-template-columns: 1fr; }
    .ik-panel-body { padding: 18px 16px; }
    .ik-panel-header { padding: 16px; }
}
@media (max-width: 480px) {
    .ik-person-card { flex-direction: column; }
}
/* ══════════════════════════════════════════
   BO'SH HOLAT — ik-empty-state
══════════════════════════════════════════ */
.ik-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 24px;
    text-align: center;
    gap: 16px;
}
.ik-empty-state > i {
    font-size: 48px;
    color: var(--border, #e5efff);
    display: block;
}
body.dark .ik-empty-state > i {
    color: rgba(255,255,255,0.08);
}
.ik-empty-state p {
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #b0bec5;
    margin: 0;
    letter-spacing: 0.02em;
}
body.dark .ik-empty-state p {
    color: rgba(255,255,255,0.2);
}