/* ============================================
   Navigation Menu Styles
   ============================================ */

.nav-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* Brand Section */
.nav-brand {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--ias-sidebar-border);
}

.brand-logo {
    width: 42px;
    height: 42px;
    background: #ffffff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Legacy icon style fallback */
.brand-logo i {
    font-size: 1.25rem;
    color: var(--ias-primary);
}

.brand-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ias-sidebar-text-hover);
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-version {
    font-size: 0.7rem;
    color: var(--ias-sidebar-text-muted);
    font-weight: 500;
}

/* Navigation Menu */
.nav-menu {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 0.5rem;
}

.nav-section-header {
    padding: 0.75rem 1.25rem 0.5rem;
    font-size: 0.6875rem;
    text-transform: uppercase;
    color: var(--ias-sidebar-text-muted);
    font-weight: 600;
    letter-spacing: 0.08em;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    margin: 0.125rem 0.75rem;
    color: var(--ias-sidebar-text);
    text-decoration: none;
    border-radius: var(--ias-radius);
    transition: all var(--ias-transition);
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--ias-sidebar-text-hover);
}

.nav-item.active {
    background: var(--ias-sidebar-active-bg);
    color: var(--ias-sidebar-text-hover);
}

.nav-item.active .nav-icon {
    color: var(--ias-sidebar-active-icon);
}

.nav-icon {
    font-size: 1.125rem;
    width: 1.25rem;
    text-align: center;
    opacity: 0.85;
}

.nav-text {
    flex: 1;
}

.nav-badge {
    background: linear-gradient(135deg, var(--ias-danger) 0%, #f97316 100%);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.2em 0.6em;
    border-radius: var(--ias-radius-full);
    min-width: 1.25rem;
    text-align: center;
}

/* Navigation Footer Section */
.nav-footer {
    padding: 1rem 1rem 1.25rem;
    border-top: 1px solid var(--ias-sidebar-border);
}

.help-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.help-icon {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-bottom: 0.5rem;
}

.help-text {
    display: block;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.help-link {
    font-size: 0.75rem;
    color: var(--ias-primary);
    text-decoration: none;
    font-weight: 500;
}

.help-link:hover {
    color: var(--ias-primary-hover);
    text-decoration: underline;
}

/* Dark mode specific nav styles */
[data-theme="dark"] .help-link {
    color: var(--ias-primary);
}

[data-theme="dark"] .help-link:hover {
    color: var(--ias-primary-hover);
}

/* ============================================
   Help Navigation (Help Page)
   ============================================ */

.help-nav {
    top: 1rem;
    background: var(--ias-bg-white);
    border: 1px solid var(--help-border);
    border-radius: var(--ias-radius-lg);
    overflow: hidden;
}

.help-nav-header {
    padding: 0.75rem 1rem;
    background: var(--ias-bg-light);
    border-bottom: 1px solid var(--help-border);
    font-weight: 600;
    color: var(--help-text);
}

.help-nav-links {
    display: flex;
    flex-direction: column;
}

.help-nav-links a {
    padding: 0.625rem 1rem;
    color: var(--help-text);
    text-decoration: none;
    border-bottom: 1px solid var(--help-border);
    transition: background-color var(--ias-transition-fast);
}

.help-nav-links a:last-child {
    border-bottom: none;
}

.help-nav-links a:hover {
    background: var(--help-accent-light);
    color: var(--help-accent);
}

/* ============================================
   Breadcrumb Navigation
   ============================================ */

.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
}

.breadcrumb-item a {
    color: var(--ias-primary);
    text-decoration: none;
    transition: color var(--ias-transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--ias-primary-hover);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--ias-text-muted);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--ias-text-muted);
}

/* Admin Breadcrumb */
.admin-page .breadcrumb {
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
}

.admin-page .breadcrumb-item a {
    color: var(--ias-primary);
    text-decoration: none;
}

.admin-page .breadcrumb-item a:hover {
    text-decoration: underline;
}

/* ============================================
   Language Selector
   ============================================ */

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: var(--ias-radius);
    background: var(--ias-bg-surface);
    color: var(--ias-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-toggle:hover {
    background: var(--ias-border);
    color: var(--ias-text-primary);
}

.language-toggle .language-code {
    font-size: 0.75rem;
    font-weight: 600;
}

.language-toggle i {
    font-size: 1rem;
}
