/* Codes & Policies Page Styles */

/* Hide original header elements if any */
.hero-section, .ultra-minimal-header {
    display: none !important;
}

/* Hide original breadcrumb if it exists elsewhere */
.breadcrumb-container {
    display: none !important;
}

/* Page base styles */
.codes-policies-page {
    background-color: var(--white);
    font-family: var(--font-family-base);
    color: var(--text-primary);
    line-height: 1.6;
}



/* Section headings with professional blue */
h2#codes-heading, h2#policies-heading {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px;
    position: relative;
}

h2#codes-heading:after, h2#policies-heading:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 80px;
    height: 2px;
    background-color: var(--primary);
}

/* Table & Document Styles with professional colors */
.table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.table thead th {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 500;
    border-color: rgba(255,255,255,0.1);
}

.table tbody tr:hover {
    background-color: rgba(26, 54, 93, 0.05);
}

.table th {
    background-color: var(--bg-secondary);
}

/* Button styles - Using compact button system */
.btn-group-compact .btn-compact {
    border-radius: 4px;
}

.btn-group-compact .btn-compact:not(:last-child) {
    margin-right: 5px;
}

.btn-compact:focus {
    box-shadow: 0 0 0 0.25rem rgba(26, 54, 93, 0.25);
}

/* Language switcher */
.btn-group-compact[role="group"] {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Document icons */
.document-icon.pdf-icon {
    color: var(--accent);
    margin-left: 0.5rem;
}

/* Loading State */
.table-loading {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid var(--neutral-200);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert styles */
.alert-info {
    background-color: rgba(26, 54, 93, 0.1);
    border-color: var(--primary-light);
    color: var(--primary-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Compact buttons are already responsive, but we can adjust if needed */
    .btn-group-compact[role="group"] .btn-compact {
        font-size: 0.75rem;
    }
    
    h2#codes-heading, h2#policies-heading {
        font-size: 1.5rem;
    }
}

/* Print styles */
@media print {
    .btn-group-compact {
        display: none;
    }
    
    .table thead th {
        background-color: var(--primary) !important;
        color: var(--white) !important;
    }
} 