/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0b1221; 
}
::-webkit-scrollbar-thumb {
    background: #1c2942; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #374151; 
}

/* Sidebar State Classes */
.sidebar-expanded {
    width: 16rem; /* w-64 */
}
.sidebar-collapsed {
    width: 5rem; /* w-20 */
}

/* Hide text in collapsed state (Desktop only) */
@media (min-width: 1024px) {
    .sidebar-collapsed .nav-text {
        display: none;
    }
    .sidebar-collapsed .nav-item {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }
    .sidebar-collapsed .badge-new {
        position: absolute;
        bottom: 2px;
        right: 2px;
        font-size: 8px;
        padding: 1px 3px;
        margin-left: 0;
    }
    .sidebar-transition {
        transition: width 0.3s ease-in-out;
    }
}

/* Mobile Sidebar Transitions */
@media (max-width: 1023px) {
    .sidebar-transition {
        transition: transform 0.3s ease-in-out;
    }
    /* Force width on mobile to always be full */
    #sidebar {
        width: 100% !important;
    }
}

/* Specific header button style */
.header-toggle-btn {
    box-shadow: 0 0 10px rgba(0, 163, 255, 0.1);
}
.header-toggle-btn:hover {
    box-shadow: 0 0 15px rgba(0, 163, 255, 0.3);
}

/* SEO Content Block Styles - Applied automatically via selectors */
section article {
    max-width: none;
    color: #374151;
}

section article h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0b1221;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    section article h2 {
        font-size: 1.5rem;
    }
}

section article p {
    margin-bottom: 1rem;
}

section article h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0b1221;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    section article h3 {
        font-size: 1.25rem;
    }
}

section article ul {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

section article ul li {
    margin-bottom: 0.5rem;
}

section article ul li::marker {
    color: #e93830;
}

section article table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
    background-color: white;
}

section article thead tr {
    background-color: #0b1221;
    color: white;
}

section article th {
    padding: 0.75rem;
    border-bottom: 1px solid #d1d5db;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    section article th {
        padding: 1rem;
    }
}

section article tbody {
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    section article tbody {
        font-size: 1rem;
    }
}

section article tbody tr {
    transition: background-color 0.2s;
}

section article tbody tr:hover {
    background-color: #eff6ff;
}

section article tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

section article tbody tr:nth-child(even):hover {
    background-color: #eff6ff;
}

section article td {
    padding: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

@media (min-width: 768px) {
    section article td {
        padding: 1rem;
    }
}

section article td:first-child {
    font-weight: 700;
    color: #0b1221;
}

section article td:last-child {
    color: #4b5563;
}

section article tbody tr:last-child td {
    border-bottom: none;
}

section article > div {
    overflow-x: auto;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

section article > div table {
    margin: 0;
}

section article > div:last-of-type {
    background-color: #eff6ff;
    border-left: 4px solid #00a3ff;
    padding: 1rem;
    margin-top: 2rem;
    border-radius: 0 0.5rem 0.5rem 0;
    overflow-x: visible;
    box-shadow: none;
    border-right: none;
    border-top: none;
    border-bottom: none;
}

section article > div:last-of-type p {
    font-size: 0.875rem;
    font-style: italic;
    margin: 0;
    color: #4b5563;
}

/* Section wrapper styles - Only for SEO sections with article */
section article {
    background-color: #f9fafb;
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    margin-top: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    section article {
        padding: 2rem;
    }
}

/* Hero section - no margins or padding */
#mainScroll > section:first-child {
    margin: 0 !important;
    padding: 0 !important;
}
