/* Header Styles for SSSAHAM Emiten Pages */

#app.container,
.container,
.chat-wrapper {
    max-width: 1440px;
    margin: 0 auto;
}

body {
    font-size: 1rem;
}

/* Navbar Branding */
.navbar {
    background-color: var(--navbar-bg) !important;
    transition: transform 0.3s ease-in-out;
    position: sticky;
    top: 0;
    z-index: 1030;
    color: var(--navbar-text);
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar i.fa-chevron-left {
    font-size: 1rem;
    color: var(--navbar-text);
}

.nav-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--navbar-highlight);
    transition: opacity 0.3s ease;
    opacity: 1;
    font-size: 0.9rem;
    font-weight: 700;
    /* Bold */
}

.nav-title.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Unified Tab Styling */
.nav-tabs {
    /*border-bottom: 2px solid var(--border);*/
    border-bottom: 0px;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    font-size: 0.9rem
}

.nav-tabs .nav-link:hover {
    color: var(--navbar-highlight);
    border: none;
    background: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--navbar-highlight);
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--navbar-highlight);
    margin-bottom: -2px;
}

/* Page Title Standardization */
.page-title {
    font-weight: 600;
    font-size: 1rem;
}

/* Navbar Icon Sizing */
.navbar i {
    font-size: 0.9rem;
    color: var(--navbar-text);
    cursor: pointer;
}

#theme-toggle-icon {
    transition: color 0.2s ease;
}

#theme-toggle-icon:hover,
#theme-toggle-icon:focus {
    color: var(--navbar-highlight);
    outline: none;
}

/* Search Panel */
#search-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--search-panel-bg);
    z-index: 2000;
    transition: right 0.3s ease-in-out;
    padding: 20px;
    color: var(--search-panel-text);
}

#search-panel.open {
    right: 0;
}

@media (min-width: 768px) {
    #search-panel {
        width: 350px;
        right: -350px;
    }
}

.search-input {
    width: 100%;
    background: var(--search-input-bg);
    border: 1px solid var(--search-input-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--search-input-text);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

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

.search-input:focus {
    background: var(--search-input-bg);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--focus-ring);
}

.search-history-item {
    background: var(--search-history-bg);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease, color 0.2s ease;
    color: var(--search-panel-text);
}

.search-history-item:hover {
    background: var(--search-history-hover);
}
