/* Layout Variables */
:root {
    --sidebar-width: 250px;
    --navbar-height: 56px;
    --primary-color: #0d6efd;
    --sidebar-bg: #212529;

/* Base Layout */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;

body {
    display: flex;
    min-height: 100vh;
    background-color: #f8f9fa;

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    z-index: 1040;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: var(--primary-color);
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-width: 0; /* Prevents flex item from overflowing */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* Top Navigation */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    height: var(--navbar-height);
    z-index: 1030;
    padding-left: 1rem;
    padding-right: 1rem;

.navbar-toggler-sidebar {
    display: none;
}

/* Content Wrapper */
.content-wrapper {
    flex: 1;
    padding: calc(var(--navbar-height) + 1rem) 1rem 1rem 1rem;
    width: 100%;
}

/* Cards and Other Content */
.card {
    margin-bottom: 1rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.breadcrumb {
    background-color: transparent;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Response Area */
#response {
    max-height: 500px;
    overflow-y: auto;
}

/* Responsive Design */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .navbar {
        left: 0;
    }

    .navbar-toggler-sidebar {
        display: block;
    }

    .content-wrapper {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

/* Utility Classes */
.overflow-auto {
    overflow: auto !important;

.pre-scrollable {
    max-height: 340px;
    overflow-y: auto;
}

/* Spinner */
.spinner-container {
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* Status Messages */
.status-message {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 0.25rem;
}

/* Documentation Sections */
.endpoint-section {
    margin-bottom: 2rem;
}

.endpoint-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;

/* Code Blocks */
pre code {
    display: block;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
    overflow-x: auto;
}

/* Table Enhancements */
.table-params {
    font-size: 0.875rem;
}

.table-params th {
    background-color: #f8f9fa;
    border-bottom-width: 1px;
}

/* Response Sections */
.response-section {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.response-section .header {
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.response-section .content {
    padding: 0.75rem;
}

/* Method Badges */
.method-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;

.method-get {
    background-color: #28a745;
    color: white;
}

/* Mobile Optimizations */
@media (max-width: 576px) {
    .card-body {
        padding: 1rem;
    }

    .table-responsive {
        margin-bottom: 1rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }

/* Dropdown Menu Enhancements */
.dropdown-menu {
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item:active {
    background-color: var(--primary-color);
}

.value-right {
    text-align: right;
}
.important-info {
    font-weight: bold;
    color: #007bff;
}
.icon {
    margin-right: 5px;
}
.carousel-indicators {
    bottom: -30px;
}
.revision-year-index {
    cursor: pointer;
}
.revision-year-index .year {
    padding: 10px;
    font-weight: bold;
    display: block;
}
.revision-year-index .year-fail {
    background-color: #ffcccc;
}
.revision-year-index .year-pass {
    background-color: #ccffcc;
}
.label-value-pair {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.label-value-pair strong {
    text-align: left;
}
.label-value-pair span {
    text-align: right;
}

/* ==================== Enhanced Nav Pills Styling ==================== */
/* Enhanced active tab styling with visual feedback */
.nav-pills .nav-link {
    border-radius: 0.375rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    padding-left: 0.75rem;
    margin-bottom: 0.25rem;
    position: relative;
}

.nav-pills .nav-link:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    border-left-color: rgba(var(--bs-primary-rgb), 0.3);
}

.nav-pills .nav-link.active {
    background-color: rgba(var(--bs-primary-rgb), 0.15);
    border-left-color: var(--bs-primary);
    font-weight: 600;
    color: var(--bs-primary);
}

.nav-pills .nav-link:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

[data-bs-theme="dark"] .nav-pills .nav-link.active {
    background-color: rgba(var(--bs-primary-rgb), 0.25);
    color: var(--bs-primary);
}

/* ==================== Button States ==================== */
/* Loading button state */
.btn-loading {
    position: relative;
    pointer-events: none;
}

/* ==================== Utility Classes ==================== */
/* Sticky sidebar with max height */
.sticky-top {
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

/* Fade in animation for dynamic content */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}