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

:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --accent: #3b82f6;
    --accent-light: #dbeafe;
    --gradient-1: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-2: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    --gradient-3: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-4: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

body.dark-mode {
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #6b7280;
    --border-color: #374151;
    --accent: #3b82f6;
    --accent-light: #1e3a5f;
}

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

body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; 
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
}

/* Search */
.search-box {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s;
}

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

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    margin-top: 0.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.search-results.active { display: block; }

.search-result-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}

.search-result-item:hover { background: var(--bg-card); }
.search-result-item:last-child { border-bottom: none; }

/* Header actions */
.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.header-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.header-link:hover { 
    color: var(--accent); 
    background: var(--accent-light); 
}

/* Contact dropdown */
.contact-dropdown { position: relative; }

.contact-dropdown-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.contact-dropdown-btn:hover { 
    color: var(--accent); 
    background: var(--accent-light); 
}

.contact-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.5rem;
    min-width: 280px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: none;
    z-index: 100;
}

.contact-dropdown.active .contact-dropdown-menu { display: block; }

.contact-item {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: background 0.15s;
}

.contact-item:hover { background: var(--bg-card); }

.contact-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-item-email {
    font-size: 0.8rem;
    color: var(--accent);
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.15s;
}

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

.copy-btn.copied {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

/* Hero */
.hero {
    background: var(--gradient-1);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}

.hero-content { max-width: 800px; margin: 0 auto; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Main */
.main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
    margin-top: -3rem;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Section */
.section { margin-bottom: 3rem; }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.section-title-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.doc-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doc-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.doc-card:hover::before { opacity: 1; }

.doc-card.payadmin::before { background: var(--gradient-1); }
.doc-card.szep::before { background: var(--gradient-2); }
.doc-card.integration::before { background: var(--gradient-3); }
.doc-card.api::before { background: var(--gradient-4); }

.doc-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.doc-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.doc-card.payadmin .doc-card-icon { background: rgba(59, 130, 246, 0.15); }
.doc-card.szep .doc-card-icon { background: rgba(16, 185, 129, 0.15); }
.doc-card.integration .doc-card-icon { background: rgba(245, 158, 11, 0.15); }
.doc-card.api .doc-card-icon { background: rgba(236, 72, 153, 0.15); }

.doc-card-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.doc-card-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.doc-card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex: 1;
    margin-bottom: 1rem;
}

.doc-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.doc-tag {
    background: var(--bg-card);
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.doc-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.doc-card-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
}

.doc-card-arrow {
    color: var(--accent);
    font-size: 1.25rem;
}

/* Quick Links */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}

.quick-link:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.quick-link-icon {
    font-size: 1.25rem;
}

.quick-link-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-logo {
    font-weight: 700;
    color: var(--text-primary);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-link:hover { color: var(--accent); }

/* Layout & Sidebar (from payadmin_segedlet.html) */
.layout { display: flex; min-height: 100vh; }

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    z-index: 40;
    transition: transform 0.3s ease, background-color 0.3s;
}

.sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    height: 24px;
    width: auto;
    margin-bottom: 0.5rem;
}

.sidebar-logo.logo-blue { display: block; }
.sidebar-logo.logo-white { display: none; }
body.dark-mode .sidebar-logo.logo-blue { display: none; }
body.dark-mode .sidebar-logo.logo-white { display: block; }

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.sidebar nav { padding: 0.75rem; }

.nav-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: none;
    background: transparent;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.nav-btn:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.nav-btn.active { background: var(--accent-light); color: var(--accent); }

.sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Main content (Docs) */
.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    background: var(--bg-primary);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.breadcrumb-separator { margin: 0 0.5rem; }
.breadcrumb-current { font-weight: 600; color: var(--accent); }

/* Content area */
.content-area { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.section-content { display: none; }
.section-content.active { display: block; }

.content-area h2 { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--text-primary); 
    margin-bottom: 0.75rem; 
}

.content-area h3 { 
    font-size: 1.25rem; 
    font-weight: 600; 
    color: var(--text-primary); 
    margin-top: 1.5rem; 
    margin-bottom: 0.5rem; 
}

.content-area h4 { 
    font-size: 1.1rem; 
    font-weight: 600; 
    color: var(--text-secondary); 
    margin-top: 1rem; 
    margin-bottom: 0.5rem; 
}

.content-area p { 
    color: var(--text-secondary); 
    margin-bottom: 0.75rem; 
    line-height: 1.7; 
}

.content-area ul, .content-area ol { 
    margin-left: 1.5rem; 
    margin-bottom: 0.75rem; 
    color: var(--text-secondary); 
}

.content-area li { margin-bottom: 0.25rem; line-height: 1.6; }
.content-area a { color: var(--accent); text-decoration: underline; }
.content-area a:hover { opacity: 0.8; }
.content-area hr { border: none; border-top: 2px solid var(--border-color); margin: 1.5rem 0; }
.content-area strong { font-weight: 600; color: var(--text-primary); }
.content-area em { font-style: italic; color: var(--text-muted); }

/* Info boxes */
.info-box, .warning-box, .danger-box, .success-box {
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.info-box { 
    background: #eff6ff; 
    border-left: 4px solid #3b82f6; 
}
body.dark-mode .info-box { background: #1e3a5f; }

.info-box-title { 
    font-weight: 700; 
    color: #1d4ed8; 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    margin-bottom: 0.5rem; 
}
body.dark-mode .info-box-title { color: #60a5fa; }

.info-box p { color: #1e40af; margin: 0 0 0.5rem 0; }
body.dark-mode .info-box p { color: #93c5fd; }
.info-box ul, .info-box ol { color: #1e40af; margin: 0.5rem 0 0 1.25rem; padding: 0; }
body.dark-mode .info-box ul, body.dark-mode .info-box ol { color: #93c5fd; }
.info-box li { color: inherit; margin-bottom: 0.25rem; padding-left: 0.25rem; }

.warning-box { 
    background: #fef3c7; 
    border-left: 4px solid #f59e0b; 
}
body.dark-mode .warning-box { background: #78350f; }

.warning-box-title { font-weight: 700; color: #b45309; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
body.dark-mode .warning-box-title { color: #fbbf24; }

.warning-box p { color: #92400e; margin: 0 0 0.5rem 0; }
body.dark-mode .warning-box p { color: #fde68a; }
.warning-box ul, .warning-box ol { color: #92400e; margin: 0.5rem 0 0 1.25rem; padding: 0; }
body.dark-mode .warning-box ul, body.dark-mode .warning-box ol { color: #fde68a; }
.warning-box li { color: inherit; margin-bottom: 0.25rem; padding-left: 0.25rem; }

.danger-box { 
    background: #fef2f2; 
    border-left: 4px solid #ef4444; 
}
body.dark-mode .danger-box { background: #7f1d1d; }

.danger-box-title { font-weight: 700; color: #dc2626; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
body.dark-mode .danger-box-title { color: #f87171; }

.danger-box p { color: #991b1b; margin: 0 0 0.5rem 0; }
body.dark-mode .danger-box p { color: #fecaca; }
.danger-box ul, .danger-box ol { color: #991b1b; margin: 0.5rem 0 0 1.25rem; padding: 0; }
body.dark-mode .danger-box ul, body.dark-mode .danger-box ol { color: #fecaca; }
.danger-box li { color: inherit; margin-bottom: 0.25rem; padding-left: 0.25rem; }

/* Quote block */
.quote-box {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--accent);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.quote-box cite {
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
    font-weight: 600;
    color: var(--text-muted);
}

/* Code block */
.code-block {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.code-block code { font-family: inherit; }

/* Collapsible sections */
.collapsible {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    margin: 1rem 0;
    overflow: hidden;
}

.collapsible-header {
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    user-select: none;
}

.collapsible-header:hover { background: var(--border-color); }

.collapsible-header::after {
    content: '▼';
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.collapsible.collapsed .collapsible-header::after { transform: rotate(-90deg); }

.collapsible-content {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.collapsible.collapsed .collapsible-content { display: none; }

/* Video embed */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Steps */
.steps { 
    background: var(--bg-secondary); 
    border: 1px solid var(--border-color); 
    border-radius: 0.5rem; 
    padding: 1rem; 
    margin: 1rem 0; 
}

.steps h4 { margin-top: 0; }
.steps ol { margin: 0.5rem 0 0 1.5rem; }

.steps.success { background: #dcfce7; border-color: #22c55e; }
body.dark-mode .steps.success { background: #14532d; }
.steps.success h4 { color: #166534; }
body.dark-mode .steps.success h4 { color: #86efac; }

/* Tables */
.data-table { 
    width: 100%; 
    border-collapse: collapse; 
    margin: 1rem 0; 
    font-size: 0.9rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.data-table thead {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
}

.data-table th { 
    color: white; 
    padding: 0.875rem 1rem; 
    text-align: left; 
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.data-table td { 
    padding: 0.75rem 1rem; 
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    background: var(--bg-secondary);
}

.data-table tbody tr { transition: background-color 0.15s ease; }
.data-table tbody tr:nth-child(even) td { background: var(--bg-tertiary); }
.data-table tbody tr:hover td { background: var(--accent-light); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* Images */
.content-area img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 0.5rem 0;
}

.content-area img.img-left { display: block; margin-left: 0; margin-right: auto; }
.content-area img.img-center { display: block; margin-left: auto; margin-right: auto; }
.content-area img.img-right { display: block; margin-left: auto; margin-right: 0; }

/* Responsive */
@media (max-width: 768px) {
    .header-content { flex-wrap: wrap; gap: 1rem; }
    .search-box { order: 3; max-width: 100%; flex-basis: 100%; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 1.75rem; }
    .footer-content { flex-direction: column; gap: 1rem; text-align: center; }
    
    .sidebar { transform: translateX(-100%); width: 80%; }
    .sidebar.open { transform: translateX(0); }
    .mobile-header { display: flex; }
    .main-content { margin-left: 0; margin-top: 60px; }
    .content-wrapper { padding: 1rem; }
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--accent);
    color: white;
    padding: 1rem;
    z-index: 50;
    justify-content: space-between;
    align-items: center;
}

.mobile-header button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 35;
    display: none;
}

.overlay.active { display: block; }

/* =========================================
   Collapsible Navigation Menu
   ========================================= */

/* Navigation group container */
.nav-group {
    margin: 0.25rem 0;
}

/* Navigation separator */
.nav-separator {
    height: 1px;
    background: var(--border-color);
    margin: 0.75rem 0;
}

/* Back button style */
.nav-btn.back-btn {
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--accent);
    font-weight: 600;
    text-decoration: none;
    justify-content: center;
    margin-bottom: 0.5rem;
}

/* Parent menu item with submenu */
.nav-group-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border: none;
    background: transparent;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.nav-group-header:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-group-header.active {
    background: var(--accent-light);
    color: var(--accent);
}

.nav-group-header .nav-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-group-header .nav-toggle {
    font-size: 0.65rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.nav-group.open > .nav-group-header .nav-toggle {
    transform: rotate(90deg);
}

/* Submenu container */
.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 1rem;
}

.nav-group.open > .nav-submenu {
    max-height: 500px;
}

/* Submenu items */
.nav-submenu .nav-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    border-left: 2px solid var(--border-color);
    border-radius: 0;
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    margin-left: 0.5rem;
}

.nav-submenu .nav-btn:hover {
    border-left-color: var(--accent);
}

.nav-submenu .nav-btn.active {
    border-left-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
}

/* Second level submenu (deeper nesting) */
.nav-submenu .nav-group {
    margin: 0;
}

.nav-submenu .nav-group-header {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    border-left: 2px solid var(--border-color);
    border-radius: 0;
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    margin-left: 0.5rem;
}

.nav-submenu .nav-group-header:hover {
    border-left-color: var(--accent);
}

/* Bank dot indicators */
.bank-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.bank-dot.kh { background: #00a0e1; }
.bank-dot.otp { background: #52ae30; }
.bank-dot.mbh { background: #e30613; }
