/* Sidebar Container */
.sidebar-content {
    width: var(--sidebar-width);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    background: white;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

/* Sidebar Header */
.sidebar-header {
    padding: 1.5rem;
    background: var(--texas-blue);
    color: white;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Search Container */
.search-container {
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.search-container input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.search-container input:focus {
    outline: none;
    border-color: var(--texas-blue);
}

/* Search Results */
.search-results {
    position: absolute;
    top: calc(100% - 1rem);
    left: 1rem;
    right: 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

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

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

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

.result-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.result-title strong {
    background-color: rgba(0, 40, 104, 0.1);
    padding: 0.125rem 0.25rem;
    border-radius: 2px;
}

.result-preview {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Navigation Container */
.nav-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.nav-section {
    margin-bottom: 1rem;
}

.nav-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    margin: 0;
}

/* Navigation Links */
.nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 4px;
    margin: 0.25rem 1rem;
}

.nav-link:hover {
    background: var(--background-light);
    color: var(--texas-blue);
}

.nav-link.active {
    background: var(--texas-blue);
    color: white;
}

/* Progress Indicator */
.progress-indicator {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background: white;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.progress-value {
    height: 100%;
    background: var(--texas-blue);
    width: 0%;
    transition: width 0.3s ease;
}

/* Scrollbar Styling */
.sidebar-content ::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content ::-webkit-scrollbar-track {
    background: var(--background-light);
}

.sidebar-content ::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.sidebar-content ::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sidebar-content {
        transform: translateX(-100%);
        width: 100%;
        transition: transform 0.3s ease;
    }

    .sidebar-content.active {
        transform: translateX(0);
    }
}