/* ibc_2024_standards.css - IBC 2024 Standards Page */
/* INHERITS FROM cc_windows_doors.css - Uses main app styling */
/* Import main app styles first, then override specific IBC elements */

@import url('cc_windows_doors.css');

/* ==========================================================================
   BASE PAGE STYLING - INHERIT FROM MAIN APP
   ========================================================================== */

.ibc-2024-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--premium-charcoal);
    padding: 0;
    margin: 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==========================================================================
   PAGE HEADER - USE MAIN APP HEADER PATTERN
   ========================================================================== */

.page-header {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 2px solid rgba(24, 30, 87, 0.15);
    padding: var(--space-2xl) 0;
    text-align: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.15) 100%);
    pointer-events: none;
}

.page-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: var(--brand-primary);
    margin: 0 0 var(--space-md) 0;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(24, 30, 87, 0.15);
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: clamp(16px, 3vw, 20px);
    color: var(--premium-charcoal);
    font-weight: 500;
    margin: 0 0 var(--space-xl) 0;
    position: relative;
    z-index: 1;
}

.status-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.status-badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.status-badge.current {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.status-badge.effective {
    background: linear-gradient(135deg, #0018FF 0%, #181E57 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 24, 255, 0.4);
}

.status-badge.integration {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.status-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   QUICK NAVIGATION SECTION
   ========================================================================== */

.quick-nav-section {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 24px;
}

.quick-nav-section h3 {
    font-size: 24px;
    font-weight: 700;
    color: #181E57;
    text-align: center;
    margin-bottom: 24px;
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.nav-link {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(24, 30, 87, 0.15);
    border-radius: 16px;
    padding: 20px 24px;
    text-decoration: none;
    color: #181E57;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(24, 30, 87, 0.15), transparent);
    transition: left 0.6s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: linear-gradient(135deg, #181E57 0%, #0018FF 100%);
    color: white;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(24, 30, 87, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-link.ai-highlight {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    animation: aiPulse 3s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% { box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 12px 35px rgba(16, 185, 129, 0.6); }
}

.nav-link.ai-highlight:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-4px) scale(1.05);
}

/* ==========================================================================
   CONTENT SECTIONS - USE MAIN APP PANEL STYLING
   ========================================================================== */

.content-section {
    /* Use main app panel styling */
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl) var(--space-lg);
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--glass-border);
    max-width: 1200px;
    margin: 0 auto var(--space-2xl) auto;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.15) 100%);
    pointer-events: none;
    z-index: -1;
}

.content-section:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

.content-section h2 {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--brand-primary);
    margin: 0 0 var(--space-lg) 0;
    position: relative;
    z-index: 1;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(24, 30, 87, 0.15);
}

.content-section h3 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--brand-primary);
    margin: 0 0 var(--space-md) 0;
    position: relative;
    z-index: 1;
}

.content-section > * {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   RISK CATEGORIES GRID - USE MAIN APP SELECTION CARD STYLING
   ========================================================================== */

.risk-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.risk-category-card {
    /* Use main app cc-selection-card styling */
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border: 3px solid rgba(203, 213, 225, 0.6);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    min-height: clamp(120px, 15vh, 160px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-lg);
}

/* Use main app selection card animations */
.risk-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(24, 30, 87, 0.15), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.risk-category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 50%,
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: var(--radius-xl);
    z-index: 0;
}

.risk-category-card > * {
    position: relative;
    z-index: 2;
}

.risk-category-card:hover::before {
    left: 100%;
}

/* Use main app hover styling */
.risk-category-card:hover {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%) !important;
    color: var(--brand-white) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-8px) scale(1.05) !important;
    box-shadow: 
        var(--shadow-2xl),
        0 0 40px rgba(24, 30, 87, 0.4) !important;
}

.risk-category-card:hover h4,
.risk-category-card:hover p,
.risk-category-card:hover ul,
.risk-category-card:hover li {
    color: var(--brand-white) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Use main app selected state styling */
.risk-category-card.selected {
    background: linear-gradient(135deg, var(--premium-emerald) 0%, #059669 100%) !important;
    color: var(--brand-white) !important;
    border: 4px solid var(--brand-white) !important;
    box-shadow: 
        0 25px 50px rgba(16, 185, 129, 0.6),
        0 0 50px rgba(16, 185, 129, 0.8),
        inset 0 2px 0 rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-6px) scale(1.08) !important;
    animation: selectedPulse 3s ease-in-out infinite;
}

.risk-category-card.selected h4,
.risk-category-card.selected p,
.risk-category-card.selected ul,
.risk-category-card.selected li {
    color: var(--brand-white) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
    font-weight: 600;
}

.risk-category-card h4 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--premium-charcoal) !important;
    margin-bottom: var(--space-md);
}

.risk-category-card p {
    color: var(--slate-600) !important;
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.risk-category-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.risk-category-card li {
    color: var(--premium-charcoal) !important;
    margin-bottom: var(--space-sm);
    padding-left: var(--space-lg);
    position: relative;
    font-weight: 500;
}

.risk-category-card li::before {
    content: '•';
    color: var(--brand-secondary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.risk-category-card:hover li::before,
.risk-category-card.selected li::before {
    color: var(--brand-white);
}

/* ==========================================================================
   MAP BUTTONS - BRANDED STYLING
   ========================================================================== */

.map-button {
    background: linear-gradient(135deg, #0018FF 0%, #181E57 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
    box-shadow: 0 4px 12px rgba(0, 24, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.map-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.map-button:hover::before {
    left: 100%;
}

.map-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 24, 255, 0.6);
    background: linear-gradient(135deg, #181E57 0%, #0018FF 100%);
}

/* ==========================================================================
   EXPOSURE CARDS - USE MAIN APP CARD STYLING
   ========================================================================== */

.exposure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.exposure-card {
    /* Use main app selection card pattern */
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border: 2px solid rgba(203, 213, 225, 0.6);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.exposure-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 50%,
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: var(--radius-xl);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.exposure-card:hover::before {
    opacity: 1;
}

.exposure-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--brand-secondary);
}

.exposure-card h4 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: var(--space-md);
}

.exposure-description {
    color: var(--premium-charcoal);
    margin-bottom: var(--space-sm);
    font-weight: 500;
    line-height: 1.6;
}

.terrain-info {
    color: var(--slate-600);
    font-size: var(--text-sm);
    margin-bottom: var(--space-sm);
    font-style: italic;
}

.height-info {
    color: var(--slate-600);
    font-size: var(--text-sm);
    margin-bottom: var(--space-lg);
}

.exposure-button {
    background: linear-gradient(135deg, var(--premium-emerald) 0%, #059669 100%);
    color: var(--brand-white);
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-sm) var(--space-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-success);
}

.exposure-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.6);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* ==========================================================================
   FONT AWESOME ICONS - PROPER INTEGRATION
   ========================================================================== */

/* Ensure Font Awesome icons display properly */
.fa, .fas, .far, .fal, .fab {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro", "Font Awesome 5 Brands";
    font-weight: 900;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* Page icons with main app styling */
h1 i, h2 i, h3 i {
    color: var(--brand-secondary) !important;
    margin-right: var(--space-md);
    text-shadow: 0 2px 8px rgba(0, 24, 255, 0.3);
    animation: iconGlow 3s ease-in-out infinite alternate;
}

@keyframes iconGlow {
    0% { text-shadow: 0 2px 8px rgba(0, 24, 255, 0.3); }
    100% { text-shadow: 0 4px 16px rgba(0, 24, 255, 0.6); }
}

/* Button icons */
button i {
    margin-right: var(--space-sm) !important;
    color: inherit !important;
}

/* Link icons */
.nav-link i,
.resource-link i {
    margin-right: var(--space-sm);
    color: inherit;
}

/* ==========================================================================
   DATA TABLE STYLING - USE MAIN APP TABLE PATTERN
   ========================================================================== */

.dash-table-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: var(--space-xl) 0;
}

.dash-table-container .dash-spreadsheet-container {
    border-radius: var(--radius-xl);
}

.dash-table-container table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.dash-table-container th {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: var(--brand-white);
    font-weight: 600;
    padding: var(--space-md);
    text-align: left;
    border: none;
}

.dash-table-container td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--slate-200);
    background: var(--brand-white);
}

.dash-table-container tr:hover td {
    background: var(--slate-50);
}

.dash-table-container tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   CHANGES GRID - INFORMATIONAL CARDS
   ========================================================================== */

.changes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.change-item {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid rgba(34, 197, 94, 0.2);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.change-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    transition: width 0.3s ease;
}

.change-item:hover::before {
    width: 8px;
}

.change-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
}

.change-item h4 {
    color: #047857;
    font-weight: 700;
    margin-bottom: 12px;
}

.change-item p {
    color: #065f46;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   AI ASSISTANT SECTION - USE MAIN APP AI SECTION STYLING
   ========================================================================== */

.ai-section {
    /* Use main app AI section pattern */
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
    color: var(--brand-white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.ai-section::before {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.15) 100%);
}

.ai-section h2 {
    color: var(--brand-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Use main app grid patterns */
.ai-assistant-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin: var(--space-xl) 0;
}

.ai-input-section,
.ai-response-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--glass-blur);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
}

.ai-response-box {
    background: var(--glass-bg);
    color: var(--premium-charcoal);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    min-height: 120px;
    font-size: var(--text-sm);
    line-height: 1.6;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Navigation - use main app nav link styling */
.nav-link {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 2px solid rgba(24, 30, 87, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-lg) var(--space-lg);
    text-decoration: none;
    color: var(--brand-primary);
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(24, 30, 87, 0.15), transparent);
    transition: left 0.6s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: var(--brand-white);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(24, 30, 87, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.nav-link.ai-highlight {
    background: linear-gradient(135deg, var(--premium-emerald) 0%, #059669 100%);
    color: var(--brand-white);
    border-color: rgba(255, 255, 255, 0.3);
    animation: aiPulse 3s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% { box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 12px 35px rgba(16, 185, 129, 0.6); }
}

.nav-link.ai-highlight:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-4px) scale(1.05);
}

/* ==========================================================================
   TOOLS GRID AND CARDS
   ========================================================================== */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.tool-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border: 2px solid rgba(203, 213, 225, 0.6);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(24, 30, 87, 0.1), transparent);
    transition: left 0.6s ease;
}

.tool-card:hover::before {
    left: 100%;
}

.tool-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #0018FF;
}

.tool-card h4 {
    color: #181E57;
    font-weight: 700;
    margin-bottom: 12px;
}

.tool-card p {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
}

.tool-button {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.tool-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.6);
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

/* ==========================================================================
   RESOURCES GRID
   ========================================================================== */

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.resource-link {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(24, 30, 87, 0.15);
    border-radius: 12px;
    padding: 16px 20px;
    text-decoration: none;
    color: #181E57;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    display: block;
}

.resource-link:hover {
    background: linear-gradient(135deg, #181E57 0%, #0018FF 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(24, 30, 87, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

/* ==========================================================================
   DATA TABLE STYLING - MATCHING BRAND
   ========================================================================== */

.dash-table-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin: 32px 0;
}

.dash-table-container .dash-spreadsheet-container {
    border-radius: 16px;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner {
    border-radius: 16px;
}

.dash-table-container table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.dash-table-container th {
    background: linear-gradient(135deg, #181E57 0%, #0018FF 100%);
    color: white;
    font-weight: 600;
    padding: 16px;
    text-align: left;
    border: none;
}

.dash-table-container td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    background: white;
}

.dash-table-container tr:hover td {
    background: #f8fafc;
}

.dash-table-container tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN - MOBILE OPTIMIZATION
   ========================================================================== */

@media (max-width: 768px) {
    .ibc-2024-page {
        padding: 0;
    }
    
    .page-header {
        padding: 32px 16px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .status-badges {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .quick-nav-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .content-section {
        margin: 0 16px 32px 16px;
        padding: 24px 16px;
    }
    
    .content-section h2 {
        font-size: 24px;
    }
    
    .risk-categories-grid,
    .exposure-grid,
    .changes-grid,
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .risk-category-card,
    .exposure-card,
    .tool-card {
        padding: 20px 16px;
    }
    
    .ai-assistant-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .ai-input-section,
    .ai-response-section {
        padding: 20px 16px;
    }
    
    .ai-button-group {
        flex-direction: column;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 24px 12px;
    }
    
    .content-section {
        margin: 0 12px 24px 12px;
        padding: 20px 12px;
    }
    
    .risk-category-card,
    .exposure-card,
    .tool-card {
        padding: 16px 12px;
    }
    
    .map-button,
    .exposure-button,
    .tool-button,
    .claude-button,
    .clear-button {
        width: 100%;
        margin-top: 12px;
    }
}

/* ==========================================================================
   AI RESPONSE CONTENT STYLING
   ========================================================================== */

.ai-main-response {
    margin-bottom: 20px;
}

.ai-main-response h4 {
    color: #181E57;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 18px;
}

.ai-main-response p {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 12px;
}

.ai-main-response ul {
    margin: 12px 0;
    padding-left: 20px;
}

.ai-main-response li {
    color: #374151;
    margin-bottom: 8px;
    line-height: 1.5;
}

.ai-code-refs {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.ai-code-refs h5 {
    color: #181E57;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.ai-code-refs ul {
    margin: 0;
    padding-left: 16px;
}

.ai-code-refs li {
    color: #374151;
    font-size: 13px;
    margin-bottom: 4px;
}

.ai-calculators {
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
}

.ai-calculators h5 {
    color: #181E57;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 14px;
}

.calculator-suggestion {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.calculator-suggestion strong {
    color: #166534;
    display: block;
    margin-bottom: 4px;
}

.calculator-suggestion p {
    color: #15803d;
    font-size: 12px;
    margin: 0 0 8px 0;
}

.calculator-link {
    color: #059669;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
}

.calculator-link:hover {
    color: #047857;
    text-decoration: underline;
}

.ai-safety-notes {
    background: #fef3c7;
    border: 2px solid #fcd34d;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.ai-safety-notes h5 {
    color: #92400e;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.ai-safety-notes ul {
    margin: 0;
    padding-left: 16px;
}

.ai-safety-notes li {
    color: #b45309;
    font-size: 13px;
    margin-bottom: 4px;
}

.ai-actions {
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
}

.ai-actions h5 {
    color: #181E57;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 14px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    margin-bottom: 8px;
}

.priority-high {
    background: #dc2626;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.action-item strong {
    color: #991b1b;
    flex: 1;
}

.timeframe {
    color: #7f1d1d;
    font-size: 12px;
    font-style: italic;
}

/* ==========================================================================
   PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

.ibc-2024-page,
.page-header,
.content-section,
.risk-category-card,
.exposure-card,
.tool-card {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.risk-category-card:hover,
.exposure-card:hover,
.tool-card:hover,
.nav-link:hover {
    will-change: transform, box-shadow, background;
}

/* ==========================================================================
   ACCESSIBILITY ENHANCEMENTS
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

*:focus-visible {
    outline: 4px solid #0018FF !important;
    outline-offset: 3px !important;
    border-radius: 4px !important;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .ibc-2024-page {
        background: white !important;
    }
    
    .page-header,
    .content-section {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    .risk-category-card,
    .exposure-card,
    .tool-card {
        background: #f9f9f9 !important;
        box-shadow: none !important;
        border: 1px solid #666 !important;
    }
    
    .nav-link,
    .resource-link,
    .claude-button,
    .map-button,
    .exposure-button,
    .tool-button {
        background: white !important;
        color: #000 !important;
        border: 1px solid #000 !important;
    }
}

/* ==========================================================================
   END OF IBC 2024 STANDARDS CSS
   ========================================================================== */