/* ibc_2021_standards.css - IBC 2021 Legacy Standards Page */
/* Consistent with Wind Load Calculator webapp branding - Legacy Theme */
/* BRAND COLORS: #181E57 (dark blue), #0018FF (blue), #FFFFFF (white) */
/* LEGACY THEME: Orange/amber accents to indicate outdated status */

/* ==========================================================================
   BASE PAGE STYLING - LEGACY THEME
   ========================================================================== */

.ibc-2021-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: #1e293b;
    padding: 0;
    margin: 0;
}

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

/* ==========================================================================
   PAGE HEADER - LEGACY STATUS EMPHASIS
   ========================================================================== */

.page-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(245, 158, 11, 0.3);
    padding: 48px 0;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

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

.page-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: #181E57;
    margin: 0 0 16px 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: #374151;
    font-weight: 500;
    margin: 0 0 32px 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.legacy {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    animation: legacyPulse 3s ease-in-out infinite;
}

@keyframes legacyPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 6px 16px rgba(245, 158, 11, 0.6); }
}

.status-badge.effective {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.4);
}

.status-badge.integration {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.status-badge.warning {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.status-badge:hover {
    transform: translateY(-2px) scale(1.05);
}

/* ==========================================================================
   MIGRATION ALERT - PROMINENT WARNING
   ========================================================================== */

.migration-alert {
    max-width: 1200px;
    margin: 32px auto;
    padding: 32px 24px;
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border: 3px solid #f59e0b;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
}

.migration-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.2), transparent);
    animation: alertSweep 3s ease-in-out infinite;
}

@keyframes alertSweep {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: -100%; }
}

.migration-alert h3 {
    color: #92400e;
    font-weight: 800;
    font-size: 24px;
    margin: 0 0 16px 0;
    position: relative;
    z-index: 1;
}

.migration-alert p {
    color: #b45309;
    font-weight: 600;
    margin: 0 0 24px 0;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

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

.upgrade-button {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    animation: upgradeGlow 2s ease-in-out infinite alternate;
}

@keyframes upgradeGlow {
    0% { box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4); }
    100% { box-shadow: 0 8px 20px rgba(16, 185, 129, 0.6); }
}

.upgrade-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.6);
}

.compare-button {
    background: linear-gradient(135deg, #0018FF 0%, #181E57 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(0, 24, 255, 0.4);
}

.compare-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 24, 255, 0.6);
}

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

.migration-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.6);
}

/* ==========================================================================
   QUICK NAVIGATION - CONSISTENT WITH IBC 2024
   ========================================================================== */

.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);
    text-decoration: none;
}

.nav-link.ai-highlight {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

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

/* ==========================================================================
   CONTENT SECTIONS - LEGACY THEME
   ========================================================================== */

.content-section {
    max-width: 1200px;
    margin: 0 auto 48px auto;
    padding: 40px 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

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

.content-section h2 {
    font-size: 32px;
    font-weight: 800;
    color: #181E57;
    margin: 0 0 24px 0;
    position: relative;
    z-index: 1;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(24, 30, 87, 0.15);
}

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

/* ==========================================================================
   LEGACY INFO CARDS - WARNING THEME
   ========================================================================== */

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

.legacy-info-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border: 2px solid #f59e0b;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
    position: relative;
    overflow: hidden;
}

.legacy-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #f59e0b;
    transition: width 0.3s ease;
}

.legacy-info-card:hover::before {
    width: 8px;
}

.legacy-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.3);
}

.legacy-info-card h4 {
    color: #92400e;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 18px;
}

.legacy-info-card p {
    color: #b45309;
    margin-bottom: 16px;
    line-height: 1.6;
}

.legacy-info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legacy-info-card li {
    color: #92400e;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-weight: 500;
}

.legacy-info-card li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    font-size: 14px;
}

.legacy-warning-card {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
    position: relative;
}

.legacy-warning-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #ef4444;
    transition: width 0.3s ease;
}

.legacy-warning-card:hover::before {
    width: 8px;
}

.legacy-warning-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.3);
}

.legacy-warning-card h4 {
    color: #991b1b;
    font-weight: 700;
    margin-bottom: 12px;
}

.legacy-warning-card p {
    color: #b91c1c;
    margin-bottom: 16px;
    line-height: 1.6;
}

.legacy-warning-card li {
    color: #991b1b;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.legacy-warning-card li::before {
    content: '🚨';
    position: absolute;
    left: 0;
    font-size: 14px;
}

/* ==========================================================================
   VERSION COMPARISON SECTION
   ========================================================================== */

.comparison-controls {
    margin: 24px 0;
    padding: 20px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.comparison-controls label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

.comparison-dropdown {
    width: 100%;
    max-width: 400px;
}

.comparison-display {
    margin: 32px 0;
    padding: 24px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    min-height: 200px;
}

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

.comparison-column {
    padding: 20px;
    border-radius: 12px;
    border: 2px solid;
    position: relative;
}

.comparison-column.legacy {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border-color: #f59e0b;
}

.comparison-column.current {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #10b981;
}

.comparison-column.impact {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
}

.comparison-column h4 {
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 16px;
}

.comparison-column.legacy h4 {
    color: #92400e;
}

.comparison-column.current h4 {
    color: #065f46;
}

.comparison-column.impact h4 {
    color: #1e40af;
}

.comparison-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-column li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-weight: 500;
    line-height: 1.4;
}

.comparison-column.legacy li {
    color: #b45309;
}

.comparison-column.current li {
    color: #047857;
}

.comparison-column.impact li {
    color: #1d4ed8;
}

.comparison-column.legacy li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    font-size: 12px;
}

.comparison-column.current li::before {
    content: '✅';
    position: absolute;
    left: 0;
    font-size: 12px;
}

.comparison-column.impact li::before {
    content: '📊';
    position: absolute;
    left: 0;
    font-size: 12px;
}

.improvements-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.improvements-box h4 {
    color: #166534;
    font-weight: 700;
    margin-bottom: 12px;
}

.improvements-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.improvements-box li {
    color: #15803d;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.improvements-box li::before {
    content: '🔧';
    position: absolute;
    left: 0;
    font-size: 14px;
}

/* ==========================================================================
   MIGRATION SECTION - AI ASSISTANT
   ========================================================================== */

.migration-section {
    background: linear-gradient(135deg, #0018FF 0%, #181E57 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.migration-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%);
}

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

.migration-assistant-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 32px 0;
}

@media (max-width: 768px) {
    .migration-assistant-grid {
        grid-template-columns: 1fr;
    }
}

.migration-input-section,
.migration-response-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
}

.migration-input-section h4,
.migration-response-section h4 {
    color: white;
    margin-bottom: 16px;
    font-weight: 600;
}

.migration-button-group {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.claude-button {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    flex: 1;
    min-width: 120px;
}

.claude-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.6);
}

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

.speed-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.6);
}

.clear-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.migration-response-box {
    background: rgba(255, 255, 255, 0.95);
    color: #374151;
    border-radius: 12px;
    padding: 20px;
    min-height: 120px;
    font-size: 14px;
    line-height: 1.6;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.quick-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.quick-tool-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.quick-tool-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   LEGACY TOOLS SECTION
   ========================================================================== */

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

.legacy-tool-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border: 2px solid #f59e0b;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
    position: relative;
    overflow: hidden;
}

.legacy-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.2), transparent);
    transition: left 0.6s ease;
}

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

.legacy-tool-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.3);
}

.legacy-tool-card h4 {
    color: #92400e;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.legacy-tool-card p {
    color: #b45309;
    margin-bottom: 20px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.legacy-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);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.legacy-tool-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.6);
}

.upgrade-tool-button {
    background: linear-gradient(135deg, #10B981 0%, #059669 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(16, 185, 129, 0.4);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    animation: upgradeGlow 2s ease-in-out infinite alternate;
}

.upgrade-tool-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.6);
}

.warning-text {
    color: #dc2626;
    font-weight: 600;
    font-style: italic;
    font-size: 12px;
}

.info-text {
    color: #6b7280;
    font-weight: 500;
    font-style: italic;
    font-size: 12px;
}

.recommended-text {
    color: #059669;
    font-weight: 600;
    font-style: italic;
    font-size: 12px;
}

/* ==========================================================================
   HISTORICAL CONTEXT SECTION
   ========================================================================== */

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

.historical-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #cbd5e1;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.historical-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: #94a3b8;
}

.historical-card h4 {
    color: #475569;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.historical-card li {
    color: #64748b;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.historical-card li::before {
    content: '📅';
    position: absolute;
    left: 0;
    font-size: 14px;
}

/* ==========================================================================
   MIGRATION TABLE STYLING
   ========================================================================== */

.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 table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.dash-table-container th {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: black;
    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: #fef3c7;
}

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

/* ==========================================================================
   RESOURCES GRID - LEGACY THEME
   ========================================================================== */

.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.upgrade {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #065f46;
}

.resource-link.upgrade:hover {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    text-decoration: none;
}

.resource-link.legacy {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    color: #92400e;
}

.resource-link.legacy:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
    text-decoration: none;
}

.resource-link.service {
    border-color: #0018FF;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

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

.resource-link.support {
    border-color: #6b7280;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    color: #374151;
}

.resource-link.support:hover {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(107, 114, 128, 0.4);
    text-decoration: none;
}

/* ==========================================================================
   AI RESPONSE CONTENT STYLING - MIGRATION SPECIFIC
   ========================================================================== */

.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,
.ai-main-response ol {
    margin: 12px 0;
    padding-left: 20px;
}

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

.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;
    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;
}

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

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

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

.timeframe {
    font-size: 12px;
    font-style: italic;
    color: #6b7280;
}

/* Speed Analysis Table */
.speed-analysis-section {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.interactive-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.interactive-table th {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}

.interactive-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
}

.interactive-table tr:hover {
    background: #fef3c7;
}

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

.status-high-priority {
    background: #fee2e2;
    color: #991b1b;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.status-medium-priority {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.status-standard {
    background: #f0fdf4;
    color: #166534;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

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

@media (max-width: 768px) {
    .ibc-2021-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;
    }
    
    .migration-alert {
        margin: 16px;
        padding: 24px 16px;
    }
    
    .migration-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .upgrade-button,
    .compare-button,
    .migration-button {
        width: 100%;
    }
    
    .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;
    }
    
    .legacy-info-grid,
    .comparison-grid,
    .legacy-tools-grid,
    .historical-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .migration-assistant-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .migration-input-section,
    .migration-response-section {
        padding: 20px 16px;
    }
    
    .migration-button-group {
        flex-direction: column;
    }
    
    .quick-tools-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .comparison-controls {
        padding: 16px;
    }
    
    .interactive-table {
        font-size: 12px;
    }
    
    .interactive-table th,
    .interactive-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 24px 12px;
    }
    
    .content-section {
        margin: 0 12px 24px 12px;
        padding: 20px 12px;
    }
    
    .migration-alert {
        margin: 12px;
        padding: 20px 12px;
    }
    
    .legacy-info-card,
    .legacy-warning-card,
    .legacy-tool-card {
        padding: 16px 12px;
    }
    
    .legacy-tool-button,
    .upgrade-tool-button {
        width: 100%;
        margin-top: 12px;
    }
}

/* ==========================================================================
   ACCESSIBILITY AND PERFORMANCE
   ========================================================================== */

@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 #f59e0b !important;
    outline-offset: 3px !important;
    border-radius: 4px !important;
}

.ibc-2021-page,
.page-header,
.content-section,
.legacy-info-card,
.legacy-tool-card {
    transform: translateZ(0);
    backface-visibility: hidden;
}

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

@media print {
    .ibc-2021-page {
        background: white !important;
    }
    
    .page-header,
    .content-section {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    .migration-alert {
        background: #fff9c4 !important;
        border: 2px solid #000 !important;
    }
    
    .legacy-info-card,
    .legacy-tool-card {
        background: #f9f9f9 !important;
        box-shadow: none !important;
        border: 1px solid #666 !important;
    }
    
    .upgrade-button,
    .compare-button,
    .migration-button,
    .claude-button,
    .speed-button,
    .legacy-tool-button,
    .upgrade-tool-button {
        background: white !important;
        color: #000 !important;
        border: 1px solid #000 !important;
    }
}

/* ==========================================================================
   END OF IBC 2021 LEGACY STANDARDS CSS
   ========================================================================== */