/* Modern Professional Styles for Elemental Machines Criticality Assessment Tool */

/* Global Font Standardization - Tech Arial Font */
body {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.6;
}

/* Ensure all elements inherit consistent Arial font and sizes */
* {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
}

/* Form and UI element font sizes - Arial Tech Font */
.form-control, .form-select, .btn, .table, .card-body, .nav-link, .dropdown-item, 
.form-label, .form-text, .input-group-text, .alert, .badge, .breadcrumb-item,
.page-link, .list-group-item, .accordion-button, .accordion-body {
    font-size: 18px !important;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
}

/* Bootstrap text size overrides */
.small, small, .text-sm {
    font-size: 16px !important;
}

.text-xs {
    font-size: 15px !important;
}

/* Heading font sizes - Arial Tech Font */
h1, h2, h3, h4, h5, h6 {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
}

h1 { font-size: 2rem !important; }
h2 { font-size: 1.75rem !important; }
h3 { font-size: 1.5rem !important; }
h4 { font-size: 1.25rem !important; }
h5 { font-size: 1.1rem !important; }
h6 { font-size: 1rem !important; }

/* Professional Design System Variables */
:root {
    /* Professional Color Palette - Muted and Sophisticated */
    --primary-color: #2c3e50;
    --secondary-color: #7f8c8d;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    --bg-color: #f4f6f8;
    --card-bg: #ffffff;
    --text-color: #212529;
    --text-muted: #6c757d;
    --border-color: rgba(0, 0, 0, 0.06);
    --header-bg: #ffffff;
    
    /* AI/Tech Dark Theme Variables */
    --ai-bg-primary: #1a1d23;
    --ai-bg-secondary: #252932;
    --ai-bg-card: #2d3139;
    --ai-text-primary: #ffffff;
    --ai-text-secondary: #a8b2d1;
    --ai-border: rgba(168, 178, 209, 0.1);
    --ai-gradient-bg: linear-gradient(135deg, #1a1d23 0%, #252932 50%, #2d3139 100%);
    --criticality-orange: #e67e22;
    
    /* Professional Shadow System */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    
    /* Professional Gradients */
    --gradient-primary: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --gradient-secondary: linear-gradient(135deg, #7f8c8d 0%, #95a5a6 100%);
    --gradient-success: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    --gradient-warning: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    --gradient-danger: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    --gradient-info: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    
    /* Professional Spacing and Borders */
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* AI Command Center Styling */
.ai-command-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 1rem;
}

/* Global AI Command Center for header area */
.ai-command-center-global {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 0;
    position: relative;
    z-index: 10;
}

.ai-button {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1.4rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 20px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-width: 240px;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
}

.ai-insights-btn {
    background: linear-gradient(135deg, 
        #3498db 0%, 
        #2980b9 25%, 
        #5dade2 50%, 
        #2471a3 75%, 
        #1b4f72 100%);
    color: white;
    box-shadow: 
        0 0 30px rgba(52, 152, 219, 0.4),
        0 8px 32px rgba(41, 128, 185, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-image: linear-gradient(135deg, rgba(255,255,255,0.3), transparent) 1;
}

.ai-chat-btn {
    background: linear-gradient(135deg, 
        #10b981 0%, 
        #059669 25%, 
        #047857 50%, 
        #065f46 75%, 
        #064e3b 100%);
    color: white;
    box-shadow: 
        0 0 30px rgba(16, 185, 129, 0.4),
        0 8px 32px rgba(5, 150, 105, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-image: linear-gradient(135deg, rgba(255,255,255,0.3), transparent) 1;
}

.ai-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.6s ease;
    z-index: 1;
}

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

.ai-button:hover {
    transform: translateY(-5px) scale(1.05);
    color: white;
    text-decoration: none;
    animation: aiPulse 2s infinite ease-in-out;
}

.ai-insights-btn:hover {
    background: linear-gradient(135deg, 
        #3498db 0%, 
        #2980b9 15%, 
        #5dade2 30%, 
        #2471a3 50%, 
        #1b4f72 70%, 
        #154360 85%, 
        #0e2c3e 100%);
    box-shadow: 
        0 0 50px rgba(52, 152, 219, 0.6),
        0 0 100px rgba(41, 128, 185, 0.4),
        0 12px 50px rgba(36, 113, 163, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(52, 152, 219, 0.8);
}

.ai-chat-btn:hover {
    background: linear-gradient(135deg, 
        #10b981 0%, 
        #059669 15%, 
        #047857 30%, 
        #065f46 50%, 
        #064e3b 70%, 
        #022c22 85%, 
        #14532d 100%);
    box-shadow: 
        0 0 50px rgba(16, 185, 129, 0.6),
        0 0 100px rgba(5, 150, 105, 0.4),
        0 12px 50px rgba(4, 120, 87, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(16, 185, 129, 0.8);
    animation: aiChatPulse 2s infinite ease-in-out;
}

.ai-button:active {
    transform: translateY(-1px);
}

.ai-icon {
    font-size: 1.3rem;
    margin-right: 0.75rem;
    position: relative;
    z-index: 2;
}

.ai-text {
    font-weight: 700;
    position: relative;
    z-index: 2;
}

/* Responsive AI buttons */
@media (max-width: 768px) {
    .ai-command-center {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .ai-button {
        min-width: 200px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .ai-icon {
        font-size: 1.2rem;
        margin-right: 0.5rem;
    }
}

/* Professional Button Styling */
.btn-success {
    background: var(--gradient-success);
    border: none;
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-success:hover {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-warning {
    background: var(--gradient-warning);
    border: none;
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: var(--gradient-danger);
    border: none;
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-info {
    background: var(--gradient-info);
    border: none;
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-info:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

/* Google Theme */
.theme-google {
    --primary-color: #4285F4;
    --secondary-color: #6c757d;
    --success-color: #34A853;
    --warning-color: #FBBC05;
    --danger-color: #EA4335;
    --info-color: #00BCD4;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --text-color: #333333;
    --border-color: rgba(0, 0, 0, 0.08);
    --header-bg: #f8f9fa;
}

/* AI Tech Dashboard Theme */
.ai-tech-dashboard {
    background: var(--ai-gradient-bg) !important;
    color: var(--ai-text-primary) !important;
    min-height: 100vh;
}

.ai-tech-dashboard .modern-feature-card {
    background: var(--ai-bg-card) !important;
    border: 1px solid var(--ai-border) !important;
    color: var(--ai-text-primary) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.ai-tech-dashboard .modern-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4) !important;
}

.ai-tech-dashboard .feature-title {
    color: var(--ai-text-primary) !important;
}

.ai-tech-dashboard .feature-description {
    color: var(--ai-text-secondary) !important;
}

.ai-tech-dashboard .card {
    background: var(--ai-bg-card) !important;
    border: 1px solid var(--ai-border) !important;
    color: var(--ai-text-primary) !important;
}

.ai-tech-dashboard .card-header {
    background: rgba(168, 178, 209, 0.05) !important;
    border-bottom: 1px solid var(--ai-border) !important;
    color: var(--ai-text-primary) !important;
}

.ai-tech-dashboard .list-group-item {
    background: var(--ai-bg-card) !important;
    border: 1px solid var(--ai-border) !important;
    color: var(--ai-text-primary) !important;
}

.ai-tech-dashboard .list-group-item:hover {
    background: rgba(168, 178, 209, 0.1) !important;
}

.ai-tech-dashboard .text-muted {
    color: var(--ai-text-secondary) !important;
}

.ai-tech-dashboard .badge {
    background-color: rgba(168, 178, 209, 0.2) !important;
    color: var(--ai-text-primary) !important;
    border: 1px solid var(--ai-border) !important;
}

/* Blue Theme */
.theme-blue {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #212529;
    --border-color: rgba(0, 0, 0, 0.03);
    --header-bg: #e9ecef;
}

/* Purple Theme */
.theme-light-blue {
    --primary-color: #3498db;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #212529;
    --border-color: rgba(111, 66, 193, 0.1);
    --header-bg: #e9ecef;
}

/* Dark Theme */
.theme-dark {
    --primary-color: #BB86FC;
    --secondary-color: #B0BEC5;
    --success-color: #00E676;
    --warning-color: #FFAB00;
    --danger-color: #FF5252;
    --info-color: #00B0FF;
    --bg-color: #121212;
    --card-bg: #1E1E1E;
    --text-color: #E0E0E0;
    --border-color: rgba(255, 255, 255, 0.05);
    --header-bg: #2D2D2D;
}

/* Green Theme */
.theme-green {
    --primary-color: #198754;
    --secondary-color: #6c757d;
    --success-color: #20c997;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #212529;
    --border-color: rgba(25, 135, 84, 0.1);
    --header-bg: #e9ecef;
}

/* Professional Card System with Depth */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0.8;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

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

.card-header {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--header-bg);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 18px !important;
    font-family: inherit !important;
}

.card-body {
    padding: 1.5rem;
    font-size: 18px !important;
    font-family: inherit !important;
}

/* Modern Button System */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
}

.btn-modern {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow-sm);
}

.btn-modern:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7, var(--primary-color));
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Modern Form Controls */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    background-color: var(--card-bg);
    padding: 0.75rem 1rem;
}

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

/* Modern Table System */
.table {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    font-size: 18px !important;
    font-family: inherit !important;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-color);
    padding: 1rem;
    font-size: 18px !important;
    font-family: inherit !important;
}

.table tbody td {
    font-size: 18px !important;
    font-family: inherit !important;
    padding: 1rem;
}

/* Dark Table Headers - Critical Fix */
.table thead.table-dark th {
    background-color: #343a40 !important;
    border-bottom: 2px solid #495057 !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 1rem;
}

.modern-table thead.table-dark th {
    background-color: #343a40 !important;
    border-bottom: 2px solid #495057 !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Modern Badge System */
.badge {
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
}

/* Ensure all badges have proper contrast */
.badge-primary {
    background-color: #0d6efd;
    color: white;
}

.badge-success {
    background-color: #198754;
    color: white;
}

.badge-warning {
    background-color: #fd7e14;
    color: white;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.badge-info {
    background-color: #0dcaf0;
    color: #212529;
}

.badge-secondary {
    background-color: #6c757d;
    color: white;
}

.badge-dark {
    background-color: #212529;
    color: white;
}

.badge-light {
    background-color: #f8f9fa;
    color: #212529;
    border: 1px solid #dee2e6;
}

/* Professional Navigation */
.navbar {
    box-shadow: var(--shadow-md);
    background-color: var(--header-bg) !important;
    border-bottom: 1px solid var(--border-color);
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--border-radius);
    margin: 0 0.25rem;
    padding: 0.5rem 1rem;
    color: var(--text-color);
}

.nav-link:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    color: var(--primary-color);
}

.nav-link.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.nav-link.active:hover {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
}

.dropdown-menu {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border-radius: 0;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

/* Modern Alert System */
.alert {
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    padding: 1rem 1.5rem;
}

/* Modern Container System */
.container, .container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--secondary-color);
}

/* Modern Spacing */
.mb-4 {
    margin-bottom: 2rem !important;
}

.p-4 {
    padding: 2rem !important;
}

/* Modern Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Modern List Group */
.list-group-item {
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    padding: 1rem 1.5rem;
    transition: var(--transition);
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

/* Modern Input Groups */
.input-group-text {
    background-color: var(--header-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    color: var(--secondary-color);
}

/* Modern Dashboard Specific */
.modern-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.modern-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.modern-nav-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.modern-nav-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.modern-section {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.modern-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modern-list-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.modern-list-item:hover {
    background-color: #f8f9fa;
    transform: translateX(4px);
}

.icon-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modern Asset Cards */
.asset-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.asset-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Professional Dashboard Summary Cards */
.summary-metric-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    background: var(--card-bg);
}

.summary-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0.9;
}

.summary-metric-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.summary-metric-card:hover::before {
    opacity: 1;
}

/* Professional gradient styling for each metric type */
.summary-metric-card.total-assets::before {
    background: var(--gradient-primary);
}

.summary-metric-card.asset-categories::before {
    background: var(--gradient-info);
}

.summary-metric-card.avg-criticality::before {
    background: var(--gradient-warning);
}

.summary-metric-card.avg-utilization::before {
    background: var(--gradient-success);
}

.summary-metric-card .card-body {
    padding: 1.5rem;
    background: white;
}

.metric-value {
    font-size: 2.8rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
    line-height: 1;
    font-family: inherit;
}

.metric-label {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
}

.metric-icon {
    font-size: 2rem;
    opacity: 0.4;
    color: #495057;
}

/* Professional Distribution Sections */
.distribution-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.distribution-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-secondary);
    opacity: 0.8;
}

.distribution-section:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.distribution-section:hover::before {
    opacity: 1;
}

.distribution-header {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    padding: 1rem 1.5rem;
    border-bottom: none;
}

.distribution-header.criticality-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.distribution-header.utilization-header {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.distribution-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: #212529;
    font-size: 1.1rem;
    font-weight: 600;
}

.distribution-item:last-child {
    border-bottom: none;
}

.distribution-count {
    font-size: 1.125rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    background: #6c757d;
    color: white !important;
    min-width: 50px;
    text-align: center;
}

.distribution-count.critical {
    background: #dc3545 !important;  /* Red (80-100) */
    color: white !important;
}

.distribution-count.high {
    background: #fd7e14 !important;  /* Orange (60-79) */
    color: white !important;
}

.distribution-count.medium {
    background: #ffc107 !important;  /* Yellow (30-59) */
    color: #212529 !important;
}

.distribution-count.low {
    background: #198754 !important;  /* Green (0-29) */
    color: white !important;
}

.distribution-count.very-low {
    background: #6c757d !important;  /* Gray for very low utilization */
    color: white !important;
}

/* Compact Distribution Cards */
.compact-distribution-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 160px; /* Fixed height for consistency */
}

.compact-distribution-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.compact-header {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.compact-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.25rem;
    text-align: center;
}

.compact-badge {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    min-width: 40px;
    text-align: center;
    margin-bottom: 0.25rem;
    color: white;
}

.compact-badge.critical {
    background: #dc3545;
}

.compact-badge.high {
    background: #fd7e14;
}

.compact-badge.medium {
    background: #ffc107;
    color: #212529;
}

.compact-badge.low {
    background: #198754;
}

.compact-badge.very-low {
    background: #6c757d;
}

.compact-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
}

/* Overview Cards Styling */
.overview-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100px; /* Fixed compact height */
}

.overview-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Modern Feature Cards */
.modern-feature-card {
    background: white;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modern-feature-card {
    position: relative;
}

.modern-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Tooltip Styling - Smart Positioning to Prevent Overlap */
.modern-feature-card::after {
    content: attr(data-tooltip);
    position: absolute;
    background: #2c3e50;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
    white-space: normal;
    width: 280px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1050;
    pointer-events: none;
}

.modern-feature-card::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1050;
}

/* First row tooltips - show above */
.modern-feature-card:nth-child(1)::after,
.modern-feature-card:nth-child(2)::after,
.modern-feature-card:nth-child(3)::after,
.modern-feature-card:nth-child(4)::after {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
}

.modern-feature-card:nth-child(1)::before,
.modern-feature-card:nth-child(2)::before,
.modern-feature-card:nth-child(3)::before,
.modern-feature-card:nth-child(4)::before {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #2c3e50;
}

/* Second row tooltips - show below */
.modern-feature-card:nth-child(5)::after,
.modern-feature-card:nth-child(6)::after,
.modern-feature-card:nth-child(7)::after,
.modern-feature-card:nth-child(8)::after {
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
}

.modern-feature-card:nth-child(5)::before,
.modern-feature-card:nth-child(6)::before,
.modern-feature-card:nth-child(7)::before,
.modern-feature-card:nth-child(8)::before {
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(2px);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #2c3e50;
}

/* Left side cards - offset tooltips to the right to prevent edge cutoff */
.modern-feature-card:nth-child(1)::after,
.modern-feature-card:nth-child(5)::after {
    left: 20%;
    transform: translateX(0) translateY(-10px);
}

.modern-feature-card:nth-child(1)::before,
.modern-feature-card:nth-child(5)::before {
    left: 20%;
    transform: translateX(0) translateY(-2px);
}

/* Right side cards - offset tooltips to the left to prevent edge cutoff */
.modern-feature-card:nth-child(4)::after,
.modern-feature-card:nth-child(8)::after {
    left: 80%;
    transform: translateX(-100%) translateY(-10px);
}

.modern-feature-card:nth-child(4)::before,
.modern-feature-card:nth-child(8)::before {
    left: 80%;
    transform: translateX(-100%) translateY(-2px);
}

/* Hover states */
.modern-feature-card:hover::after,
.modern-feature-card:hover::before {
    opacity: 1;
    visibility: visible;
}

/* First row hover adjustments */
.modern-feature-card:nth-child(1):hover::after,
.modern-feature-card:nth-child(2):hover::after,
.modern-feature-card:nth-child(3):hover::after,
.modern-feature-card:nth-child(4):hover::after {
    transform: translateX(-50%) translateY(0);
}

.modern-feature-card:nth-child(1):hover::before,
.modern-feature-card:nth-child(2):hover::before,
.modern-feature-card:nth-child(3):hover::before,
.modern-feature-card:nth-child(4):hover::before {
    transform: translateX(-50%) translateY(0);
}

/* Second row hover adjustments */
.modern-feature-card:nth-child(5):hover::after,
.modern-feature-card:nth-child(6):hover::after,
.modern-feature-card:nth-child(7):hover::after,
.modern-feature-card:nth-child(8):hover::after {
    transform: translateX(-50%) translateY(0);
}

.modern-feature-card:nth-child(5):hover::before,
.modern-feature-card:nth-child(6):hover::before,
.modern-feature-card:nth-child(7):hover::before,
.modern-feature-card:nth-child(8):hover::before {
    transform: translateX(-50%) translateY(0);
}

/* Left side hover adjustments */
.modern-feature-card:nth-child(1):hover::after,
.modern-feature-card:nth-child(5):hover::after {
    transform: translateX(0) translateY(0);
}

.modern-feature-card:nth-child(1):hover::before,
.modern-feature-card:nth-child(5):hover::before {
    transform: translateX(0) translateY(0);
}

/* Right side hover adjustments */
.modern-feature-card:nth-child(4):hover::after,
.modern-feature-card:nth-child(8):hover::after {
    transform: translateX(-100%) translateY(0);
}

.modern-feature-card:nth-child(4):hover::before,
.modern-feature-card:nth-child(8):hover::before {
    transform: translateX(-100%) translateY(0);
}

.feature-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    position: relative;
    overflow: hidden;
}

.feature-icon-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
    border-radius: 50%;
}

.feature-icon-large {
    font-size: 2.5rem;
    color: white;
    z-index: 1;
    position: relative;
    display: inline-block;
    line-height: 1;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-family: inherit;
}

.feature-description {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0;
    font-family: inherit;
    line-height: 1.4;
}

/* Custom background colors for feature icons */
.bg-light-blue {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
}

.bg-primary {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
}

.bg-success {
    background: linear-gradient(135deg, #28a745, #1e7e34) !important;
}

.bg-info {
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800) !important;
}

.bg-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
}

.bg-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
}

.bg-dark {
    background: linear-gradient(135deg, #343a40, #23272b) !important;
}

/* Staggered Fade-in Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-up[data-delay="0.1s"] { animation-delay: 0.1s; }
.fade-in-up[data-delay="0.2s"] { animation-delay: 0.2s; }
.fade-in-up[data-delay="0.3s"] { animation-delay: 0.3s; }
.fade-in-up[data-delay="0.4s"] { animation-delay: 0.4s; }
.fade-in-up[data-delay="0.5s"] { animation-delay: 0.5s; }
.fade-in-up[data-delay="0.6s"] { animation-delay: 0.6s; }
.fade-in-up[data-delay="0.7s"] { animation-delay: 0.7s; }
.fade-in-up[data-delay="0.8s"] { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AI Button Pulse Animation for Futuristic Effects */
@keyframes aiPulse {
    0% {
        box-shadow: 
            0 0 50px rgba(99, 102, 241, 0.6),
            0 0 100px rgba(103, 58, 183, 0.4),
            0 12px 50px rgba(67, 56, 202, 0.3);
    }
    50% {
        box-shadow: 
            0 0 70px rgba(99, 102, 241, 0.8),
            0 0 140px rgba(103, 58, 183, 0.6),
            0 15px 60px rgba(67, 56, 202, 0.5);
    }
    100% {
        box-shadow: 
            0 0 50px rgba(99, 102, 241, 0.6),
            0 0 100px rgba(103, 58, 183, 0.4),
            0 12px 50px rgba(67, 56, 202, 0.3);
    }
}

/* AI Chat Button Pulse Animation */
@keyframes aiChatPulse {
    0% {
        box-shadow: 
            0 0 50px rgba(16, 185, 129, 0.6),
            0 0 100px rgba(5, 150, 105, 0.4),
            0 12px 50px rgba(4, 120, 87, 0.3);
    }
    50% {
        box-shadow: 
            0 0 70px rgba(16, 185, 129, 0.8),
            0 0 140px rgba(5, 150, 105, 0.6),
            0 15px 60px rgba(4, 120, 87, 0.5);
    }
    100% {
        box-shadow: 
            0 0 50px rgba(16, 185, 129, 0.6),
            0 0 100px rgba(5, 150, 105, 0.4),
            0 12px 50px rgba(4, 120, 87, 0.3);
    }
}

/* True Horizontal Distribution styling */
.horizontal-distribution-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    font-family: inherit;
}

.distribution-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
    font-family: inherit;
}

.horizontal-item {
    text-align: center;
    padding: 12px 5px;
    font-family: inherit;
}

.horizontal-label {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
    font-family: inherit;
}

.horizontal-count {
    font-size: 28px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 20px;
    color: white;
    display: inline-block;
    min-width: 60px;
    font-family: inherit;
}

.horizontal-count.critical {
    background: #dc3545;
}

.horizontal-count.high {
    background: #fd7e14;
}

.horizontal-count.medium {
    background: #ffc107;
    color: #333;
}

.horizontal-count.low {
    background: #28a745;
}

.horizontal-count.very-low {
    background: #6c757d;
}

/* Legacy Horizontal Distribution Items (keep for compatibility) */
.distribution-item-horizontal {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    margin: 0.25rem;
    text-align: center;
    min-width: 120px;
    font-family: inherit;
}

.distribution-item-horizontal span:first-child {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #6c757d;
    font-family: inherit;
}

/* Modern Statistics Cards */
.stats-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.stats-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.stats-card .card-header {
    background: var(--gradient-primary);
    color: white;
    border-bottom: none;
}

/* Modern Form Styling */
.form-section {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.form-section h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Modern Category Section for Interview */
.category-section {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    max-width: 600px;
}

.category-section h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.score-select-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.score-select-container label {
    font-weight: 600;
    color: var(--text-color);
}

.score-display {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Modern Clean Header Styling - Ultra Professional */
.modern-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.modern-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(66, 133, 244, 0.02) 50%, transparent 100%),
        linear-gradient(45deg, transparent 0%, rgba(13, 202, 240, 0.01) 100%);
    pointer-events: none;
}

/* Removed complex pattern animation */

.modern-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 30%, rgba(66, 133, 244, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(13, 202, 240, 0.12) 0%, transparent 40%),
                radial-gradient(circle at 40% 80%, rgba(111, 66, 193, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 60% 20%, rgba(255, 193, 7, 0.08) 0%, transparent 30%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
    33% { transform: translateX(-20px) translateY(-10px) rotate(1deg); }
    66% { transform: translateX(20px) translateY(10px) rotate(-1deg); }
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 50px;
    padding: 0.75rem 2.5rem;
    position: relative;
    z-index: 3;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.1);
    transform: scale(1.2);
}

.brand-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(66, 133, 244, 0.3), rgba(13, 202, 240, 0.3), rgba(111, 66, 193, 0.3));
    border-radius: 50px;
    z-index: -1;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.brand-logo {
    height: 28px;
    width: auto;
    border-radius: 4px;
}

.brand-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: 0.5px;
}

.main-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 1rem;
    position: relative;
    z-index: 3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-title::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -20px;
    right: -20px;
    bottom: -10px;
    background: url('data:image/svg+xml,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><g fill="none" stroke="%234285f4" stroke-width="0.3" opacity="0.1"><path d="M5,5 Q20,15 35,5 Q20,25 5,35 Q20,25 35,35 Q20,15 5,5"/></g></svg>') repeat;
    z-index: -1;
    opacity: 0.6;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.02); }
}

.highlight-text {
    color: var(--primary-color);
    position: relative;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), rgba(13, 110, 253, 0.3));
    border-radius: 2px;
}

.subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

/* Enhanced Neural Network Animation */
.modern-header .neural-network {
    position: absolute;
    top: 15%;
    left: 5%;
    width: 90%;
    height: 70%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

.neural-network::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="300" height="150" viewBox="0 0 300 150" xmlns="http://www.w3.org/2000/svg"><defs><filter id="glow"><feGaussianBlur stdDeviation="2" result="coloredBlur"/><feMerge><feMergeNode in="coloredBlur"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><g fill="none" stroke="%234285f4" stroke-width="1.5" opacity="0.6" filter="url(%23glow)"><circle cx="30" cy="30" r="5" fill="%234285f4" opacity="0.7"><animate attributeName="r" values="5;8;5" dur="2s" repeatCount="indefinite"/></circle><circle cx="120" cy="45" r="4" fill="%230dcaf0" opacity="0.6"><animate attributeName="r" values="4;7;4" dur="2.5s" repeatCount="indefinite"/></circle><circle cx="180" cy="30" r="5" fill="%236f42c1" opacity="0.7"><animate attributeName="r" values="5;8;5" dur="3s" repeatCount="indefinite"/></circle><circle cx="270" cy="40" r="4" fill="%234285f4" opacity="0.6"><animate attributeName="r" values="4;7;4" dur="2.2s" repeatCount="indefinite"/></circle><circle cx="75" cy="105" r="4" fill="%230dcaf0" opacity="0.6"><animate attributeName="r" values="4;7;4" dur="2.8s" repeatCount="indefinite"/></circle><circle cx="225" cy="120" r="5" fill="%236f42c1" opacity="0.7"><animate attributeName="r" values="5;8;5" dur="2.3s" repeatCount="indefinite"/></circle><line x1="30" y1="30" x2="120" y2="45" stroke-dasharray="3,3" opacity="0.4"><animate attributeName="stroke-opacity" values="0.2;0.8;0.2" dur="3s" repeatCount="indefinite"/></line><line x1="120" y1="45" x2="180" y2="30" stroke-dasharray="3,3" opacity="0.4"><animate attributeName="stroke-opacity" values="0.2;0.8;0.2" dur="3s" begin="0.5s" repeatCount="indefinite"/></line><line x1="180" y1="30" x2="270" y2="40" stroke-dasharray="3,3" opacity="0.4"><animate attributeName="stroke-opacity" values="0.2;0.8;0.2" dur="3s" begin="1s" repeatCount="indefinite"/></line><line x1="30" y1="30" x2="75" y2="105" stroke-dasharray="3,3" opacity="0.4"><animate attributeName="stroke-opacity" values="0.2;0.8;0.2" dur="3s" begin="1.5s" repeatCount="indefinite"/></line><line x1="120" y1="45" x2="225" y2="120" stroke-dasharray="3,3" opacity="0.4"><animate attributeName="stroke-opacity" values="0.2;0.8;0.2" dur="3s" begin="2s" repeatCount="indefinite"/></line><line x1="180" y1="30" x2="225" y2="120" stroke-dasharray="3,3" opacity="0.4"><animate attributeName="stroke-opacity" values="0.2;0.8;0.2" dur="3s" begin="2.5s" repeatCount="indefinite"/></line></g></svg>') no-repeat center;
    background-size: contain;
    animation: neuralFlow 10s ease-in-out infinite;
}

@keyframes neuralFlow {
    0%, 100% { opacity: 0.4; transform: translateX(0) scale(1); }
    50% { opacity: 0.7; transform: translateX(15px) scale(1.05); }
}

/* Additional AI Elements */
.modern-header .ai-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.modern-header .ai-particles::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 8px;
    height: 8px;
    background: #4285f4;
    border-radius: 50%;
    box-shadow: 
        200px 50px 0 #0dcaf0,
        400px 80px 0 #3498db,
        600px 30px 0 #4285f4,
        150px 120px 0 #0dcaf0,
        350px 140px 0 #3498db,
        550px 110px 0 #4285f4;
    animation: sparkle 8s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .brand-badge {
        padding: 0.6rem 1.5rem;
        transform: scale(1.1);
    }
    
    .brand-text {
        font-size: 0.9rem;
    }
}



/* Custom criticality color classes */
.bg-criticality-orange {
    background-color: var(--criticality-orange) !important;
    color: white !important;
}

.text-criticality-orange {
    color: var(--criticality-orange) !important;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background: linear-gradient(135deg, #f4f6f8 0%, #e9ecf0 30%, #f8f9fa 70%, #f1f3f4 100%);
    min-height: 100vh;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="professionalGrid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="%23e9ecf0" stroke-width="0.5" opacity="0.4"/></pattern></defs><rect width="100" height="100" fill="url(%23professionalGrid)" /></svg>') repeat;
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}

.card {
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 500;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 1.25rem;
    transition: background-color 0.3s ease;
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background-color: var(--card-bg);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.theme-switcher:hover {
    transform: scale(1.1);
}

.theme-switcher i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.theme-dropdown {
    position: absolute;
    right: 60px;
    bottom: 0;
    width: 200px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    display: none;
}

.theme-dropdown.show {
    display: block;
}

.theme-option {
    padding: 8px 10px;
    margin-bottom: 8px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

.theme-option:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.theme-option.active {
    background-color: var(--primary-color);
    color: white;
}

/* Removed color-preview styles and replaced with logo images */
.color-preview {
    display: none; /* Hide any remaining color preview elements */
}

.btn {
    border-radius: 5px;
    padding: 0.5rem 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(66, 133, 244, 0.1);
}

.btn-primary:hover {
    background-color: #3367d6;
    border-color: #3367d6;
    box-shadow: 0 4px 8px rgba(66, 133, 244, 0.2);
}

.text-primary {
    color: var(--primary-color) !important;
}

.form-control {
    border-radius: 5px;
    padding: 0.6rem 0.75rem;
    border: 1px solid #dee2e6;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.form-control:focus {
    border-color: #a4c2f5;
    box-shadow: 0 0 0 0.2rem rgba(66, 133, 244, 0.15);
}

.table th {
    font-weight: 600;
    color: #444;
}

.nav-tabs .nav-link {
    border-radius: 5px 5px 0 0;
    padding: 0.75rem 1.25rem;
}

.nav-tabs .nav-link.active,
.nav-tabs-modern .nav-link.active {
    font-weight: 500;
    border-bottom: 3px solid var(--primary-color);
    background-color: var(--primary-color);
    color: white !important;
}

.nav-tabs .nav-link,
.nav-tabs-modern .nav-link {
    border-radius: 5px 5px 0 0;
    padding: 0.75rem 1.25rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover,
.nav-tabs-modern .nav-link:hover {
    color: white;
    background-color: rgba(66, 133, 244, 0.1);
}

/* Charts styling */
.chart-container {
    height: 400px;
    position: relative;
    margin-bottom: 2rem;
}

/* Criticality score colors */
.score-low, .criticality-low {
    color: #198754;  /* Green - Low Criticality (0-29) */
}

.score-medium, .criticality-medium {
    color: #ffc107;  /* Yellow - Medium Criticality (30-59) */
}

.score-high, .criticality-high {
    color: #fd7e14;  /* Orange - High Criticality (60-79) */
}

/* Critical level for scores 80-100 */
.score-critical, .criticality-critical {
    color: #dc3545;  /* Red - Critical (80-100) */
    font-weight: bold;
}

/* Dashboard cards */
.dashboard-card {
    min-height: 130px;
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-card .card-body {
    padding: 1.5rem;
}

.dashboard-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Badges for criticality */
.badge-criticality {
    padding: 0.5rem 0.75rem;
    border-radius: 15px;
    font-weight: 500;
}

/* Form elements styling */
.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-text {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Modern Navigation Styling with Enhanced Button Design */
.navbar {
    padding: 0.75rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.navbar .nav-item {
    position: relative;
    transition: all 0.2s ease;
    display: inline-block;
}

/* Ensure all nav items display horizontally */
.navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

.navbar .nav-link {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 0.25rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(66, 133, 244, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.navbar .nav-link i {
    font-size: 1.2rem;
    color: #4285f4;
}

.navbar .nav-link:hover {
    color: #4285f4;
    background: rgba(66, 133, 244, 0.08);
    border-color: rgba(66, 133, 244, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(66, 133, 244, 0.15);
}

.navbar .nav-link.active {
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #4285f4, #1a73e8);
    border-color: #4285f4;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.25);
}

.navbar .nav-link.active::after {
    display: none;
}

.navbar .nav-link.active i {
    color: white;
}

.navbar .dropdown-toggle::after {
    margin-left: 0.2em;
    vertical-align: middle;
    font-size: 0.7em;
}

.navbar-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Clean dropdown styling */
.navbar .dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 0.5rem 0;
    min-width: 200px;
}

.navbar .dropdown-item {
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    transition: all 0.15s ease;
}

.navbar .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #1a73e8;
}

.navbar .dropdown-item:active {
    background-color: #e8f0fe;
    color: #1a73e8;
}

.navbar .dropdown-item i {
    font-size: 0.9rem;
    color: #1a73e8;
}

/* User account dropdown styling */
.navbar .user-badge {
    background-color: #1a73e8;
    color: white;
    border-radius: 15px;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Compact Principles Cards */
.compact-principles-card {
    border: 1px solid rgba(66, 133, 244, 0.1);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    max-width: 400px;
    margin: 0 auto;
}

.compact-principles-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(66, 133, 244, 0.15);
    border-color: rgba(66, 133, 244, 0.2);
}

.compact-principles-card .card-body {
    padding: 1.5rem !important;
}

.compact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.compact-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
}

.compact-item i {
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Equipment Criticality Summary Dashboard */
.summary-metric-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 120px;
}

.summary-metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.summary-metric-card.total-assets {
    background: linear-gradient(135deg, #4285f4, #1a73e8);
    color: white;
}

.summary-metric-card.asset-categories {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    color: white;
}

.summary-metric-card.avg-criticality {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.summary-metric-card.avg-utilization {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
}

.metric-icon {
    font-size: 1.8rem;
    opacity: 0.8;
}

.distribution-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.distribution-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.distribution-header.utilization {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.distribution-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
    font-weight: 600;
}

.distribution-count {
    font-size: 1.5rem;
    font-weight: 700;
}

.distribution-count.high { color: #dc3545; }
.distribution-count.medium { color: #ffc107; }
.distribution-count.low { color: #28a745; }

/* Ensure menu items are horizontally centered */
.navbar-collapse {
    justify-content: center;
}

/* Compact principles cards */
.compact-item.larger-text {
    font-size: 16px;
    font-weight: 500;
}

/* AI Insights Button with Heartbeat Animation */
.ai-insights-button {
    background: linear-gradient(135deg, #17a2b8, #138496);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.ai-insights-button:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.heartbeat-icon {
    animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.1); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
    60% { transform: scale(1); }
    100% { transform: scale(1); }
}

/* Insight Cards */
.insight-card {
    border-left: 4px solid #17a2b8;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.insight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .navbar .nav-link {
        padding: 0.75rem 1rem;
        width: 100%;
    }
    
    .navbar .nav-link.active::after {
        display: none;
    }
}

/* Enhanced styling for assessment sections */
.category-section {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    padding: 2rem 1.5rem;
    background-color: rgba(248, 249, 250, 0.5);
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.category-section h4 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #0d6efd;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.75rem;
}

/* Score selection and display styling */
.score-select-container {
    margin-bottom: 2rem;
    text-align: center;
    width: 100%;
}

.score-select {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 0.8rem;
    font-size: 1rem;
    background-color: #fff !important;
    cursor: pointer;
    height: auto !important; /* Always show all options */
    min-height: 180px; /* Ensure enough height for all options */
    overflow-y: auto; /* Add scroll if needed */
}

/* Override any default select styling that might show blue */
.score-select:focus {
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25) !important;
    outline: none !important;
}

/* Make the dropdown options visible and readable */
.score-select option {
    padding: 8px 12px;
    font-size: 0.95rem;
    white-space: normal;
    line-height: 1.4;
    border-bottom: 1px solid #f3f3f3;
    display: block;
    background-color: #fff !important;
    color: #333 !important;
}

.score-select option:hover {
    background-color: #f8f9fa !important;
    color: #333 !important;
}

.score-select option:checked,
.score-select option:selected,
.score-select option[selected] {
    background-color: #fff3cd !important;  /* Light yellow background for selected options */
    background: #fff3cd !important;
    font-weight: 600;
    color: #333 !important;
}

/* Force override any browser default blue highlighting */
.score-select:focus option:checked,
.score-select option:focus,
.score-select option:active {
    background-color: #fff3cd !important;
    background: #fff3cd !important;
    color: #333 !important;
}

/* Additional overrides for any remaining blue styles */
select.score-select option {
    background: #fff !important;
    color: #333 !important;
}

select.score-select option:checked,
select.score-select option[selected="selected"] {
    background-color: #fff3cd !important;
    background: #fff3cd !important;
    color: #333 !important;
}

/* Target WebKit browsers specifically */
select.score-select option:checked {
    background: linear-gradient(#fff3cd, #fff3cd) !important;
    color: #333 !important;
}

/* Aggressive browser-specific overrides to eliminate blue highlighting */
select.score-select option::-moz-selection {
    background: #fff3cd !important;
    color: #333 !important;
}

select.score-select option::selection {
    background: #fff3cd !important;
    color: #333 !important;
}

/* Firefox specific */
@-moz-document url-prefix() {
    select.score-select option:checked {
        background-color: #fff3cd !important;
        color: #333 !important;
    }
}

/* Chrome/Safari specific */
@supports (-webkit-appearance: none) {
    select.score-select option:checked {
        background: #fff3cd !important;
        color: #333 !important;
    }
}

/* Edge specific */
@supports (-ms-ime-align: auto) {
    select.score-select option:checked {
        background-color: #fff3cd !important;
        color: #333 !important;
    }
}

/* Universal override for any blue highlights */
select.score-select,
select.score-select:focus,
select.score-select:active {
    outline: none !important;
    border: 2px solid #ffc107 !important;
}

select.score-select option {
    background: #fff !important;
    color: #333 !important;
}

select.score-select option:hover {
    background: #f8f9fa !important;
    color: #333 !important;
}

select.score-select option:checked,
select.score-select option:selected {
    background: #fff3cd !important;
    color: #333 !important;
    font-weight: bold !important;
}

/* Most aggressive override - target all possible selection states */
.score-select option {
    background: #fff !important;
    color: #333 !important;
}

.score-select option:hover,
.score-select option:focus,
.score-select option:active,
.score-select option:target {
    background: #f8f9fa !important;
    color: #333 !important;
}

.score-select option:checked,
.score-select option:selected,
.score-select option[selected],
.score-select option[selected="selected"],
.score-select option[selected="true"] {
    background: #fff3cd !important;
    background-color: #fff3cd !important;
    color: #333 !important;
    font-weight: bold !important;
}

/* Override any blue highlighting that might come from Bootstrap or browser defaults */
.score-select:focus {
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25) !important;
}

/* Final override - use CSS custom properties to force yellow everywhere */
.score-select {
    --bs-focus-ring-color: rgba(255, 193, 7, 0.25) !important;
    --bs-border-color: #ffc107 !important;
}

/* Simple override for score selection styling */
select.score-select:focus {
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25) !important;
}

/* Browser-specific nuclear options */
.score-select option::-webkit-selection {
    background: #fff3cd !important;
}

.score-select option::-moz-selection {
    background: #fff3cd !important;
}

/* Markdown content styling for user guide */
.user-guide-markdown {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
    font-size: 16px;
    color: #333;
}

.user-guide-markdown h1 {
    font-size: 28px;
    color: #0056b3;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.user-guide-markdown h2 {
    font-size: 24px;
    color: #0d6efd;
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f3f3;
}

.user-guide-markdown h3 {
    font-size: 20px;
    color: #fd7e14;
    margin-top: 20px;
    margin-bottom: 12px;
}

.user-guide-markdown h4 {
    font-size: 18px;
    color: #ffc107;
    margin-top: 15px;
    margin-bottom: 10px;
}

.user-guide-markdown p {
    margin-bottom: 16px;
}

.user-guide-markdown ul, 
.user-guide-markdown ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.user-guide-markdown li {
    margin-bottom: 8px;
}

.user-guide-markdown code {
    background-color: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 90%;
    color: #e83e8c;
}

.user-guide-markdown blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 15px;
    margin-left: 0;
    color: #6c757d;
}

.user-guide-markdown table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.user-guide-markdown table th,
.user-guide-markdown table td {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
}

.user-guide-markdown table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.user-guide-markdown a {
    color: #0d6efd;
    text-decoration: none;
}

.user-guide-markdown a:hover {
    text-decoration: underline;
}

.user-guide-markdown hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

.score-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 0.5rem;
    font-size: 0.9rem;
    border-radius: 0.25rem;
    background-color: #6c757d; /* Default background */
    color: white;
}

/* Form questions styling */
.question-container {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.question-container label {
    font-weight: 500;
    display: block;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    color: #212529;
}

.question-container textarea {
    border-radius: 5px;
    padding: 0.8rem;
    min-height: 100px;
    width: 100%;
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chart-container {
        height: 300px;
    }
}

/* Custom background colors */
.bg-orange {
    background-color: #fd7e14 !important;
    color: white !important;
}

/* Process steps and workflow graphics */
.process-step {
    position: relative;
    padding: 1rem;
    transition: all 0.3s ease;
}

.process-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover .process-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(13, 110, 253, 0.25);
}

.arrow-right {
    position: absolute;
    top: 40px;
    right: -15px;
    width: 24px;
    height: 24px;
    border-top: 2px solid #e9ecef;
    border-right: 2px solid #e9ecef;
    transform: rotate(45deg);
    z-index: 1;
}

/* Light theme cards styling */
.border-left-primary {
    border-left: 4px solid var(--primary-color) !important;
}

.border-left-success {
    border-left: 4px solid var(--success-color) !important;
}

.border-left-warning {
    border-left: 4px solid var(--warning-color) !important;
}

.border-left-danger {
    border-left: 4px solid var(--danger-color) !important;
}

.text-primary-light {
    color: rgba(13, 110, 253, 0.7) !important;
}

.text-success-light {
    color: rgba(25, 135, 84, 0.7) !important;
}

.text-warning-light {
    color: rgba(255, 193, 7, 0.7) !important;
}

.text-danger-light {
    color: rgba(220, 53, 69, 0.7) !important;
}

/* Assessment Form Consistent Box Sizing */
.assessment-form-field {
    min-height: 90px;
    display: flex;
    flex-direction: column;
}

.assessment-form-field .form-control,
.assessment-form-field .form-select {
    flex-grow: 1;
    height: 60px !important; /* Enforce consistent height */
}

/* Target the specific assessment input fields to ensure they're consistent */
#equipment_id, #category_id, #interviewer_name, #interviewee_name {
    height: 60px !important;
    text-align: center;
}

#equipment_id option, #category_id option {
    text-align: center;
}

/* Make boxes in the interview form the same height */
.interview-form-row {
    display: flex;
    flex-wrap: wrap;
}

.interview-form-row .form-group {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.interview-form-row .form-group label {
    margin-bottom: 0.5rem;
}

.interview-form-row .form-group .form-control,
.interview-form-row .form-group .form-select {
    flex-grow: 1;
}

/* Center content in the critcality assessment page */
.category-section {
    max-width: 90%;
    margin: 0 auto 2rem auto;
}

.category-section h4 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--bs-primary);
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.score-select-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.score-select-container .form-select {
    max-width: 60%;
    margin: 0 auto;
    text-align: center;
}

/* Center the text in dropdown options */
.score-select-container .form-select option {
    text-align: center;
}

.question-container {
    margin-bottom: 1.5rem;
    text-align: center;
}

.question-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-align: center;
}

.question-container .form-control {
    width: 80%;
    margin: 0 auto;
}

/* Center the form buttons */
.interview-form-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}/* Additional CSS for gradient headers */
.bg-gradient-primary {
    background: linear-gradient(45deg, var(--primary-color), #0b5ed7) !important;
    color: white !important;
}

.bg-gradient-success {
    background: linear-gradient(45deg, var(--success-color), #146c43) !important;
    color: white !important;
}

.bg-gradient-info {
    background: linear-gradient(45deg, var(--info-color), #0aa2c0) !important;
    color: white !important;
}

.bg-gradient-warning {
    background: linear-gradient(45deg, var(--warning-color), #e0a800) !important;
    color: white !important;
}

.bg-gradient-danger {
    background: linear-gradient(45deg, var(--danger-color), #b02a37) !important;
    color: white !important;
}

/* Navigation improvements */
.navbar-nav .nav-link {
    font-size: 16px !important;
    font-family: inherit !important;
}

/* List items and badges */
.list-group-item, .badge {
    font-size: 16px !important;
    font-family: inherit !important;
}

/* Form labels and help text */
.form-label, .form-text {
    font-size: 16px !important;
    font-family: inherit !important;
}

/* Button text standardization */
.btn {
    font-size: 16px !important;
    font-family: inherit !important;
}

/* Alert text standardization */
.alert {
    font-size: 16px !important;
    font-family: inherit !important;
}

/* Breadcrumb standardization */
.breadcrumb-item {
    font-size: 16px !important;
    font-family: inherit !important;
}

/* Final font standardization overrides */
h1 { font-size: 2.2rem !important; }
h2 { font-size: 1.9rem !important; }
h3 { font-size: 1.6rem !important; }
h4 { font-size: 1.4rem !important; }
h5 { font-size: 1.2rem !important; }
h6 { font-size: 1.1rem !important; }

/* Override navigation improvements with larger sizes */
.navbar-nav .nav-link {
    font-size: 18px !important;
    font-family: inherit !important;
}

/* Override list items and badges with larger sizes */
.list-group-item, .badge {
    font-size: 18px !important;
    font-family: inherit !important;
}

/* Override form labels and help text with larger sizes */
.form-label, .form-text {
    font-size: 18px !important;
    font-family: inherit !important;
}

/* Override button text standardization with larger sizes */
.btn {
    font-size: 18px !important;
    font-family: inherit !important;
}

/* Override alert text standardization with larger sizes */
.alert {
    font-size: 18px !important;
    font-family: inherit !important;
}

/* Override breadcrumb standardization with larger sizes */
.breadcrumb-item {
    font-size: 18px !important;
    font-family: inherit !important;
}

/* Enhanced Icon Styling for Navigation and UI */
.nav-link i {
    font-size: 1.1rem !important;
    margin-right: 6px !important;
    color: var(--primary-color) !important;
}

.dropdown-item i {
    font-size: 1rem !important;
    margin-right: 8px !important;
    color: var(--primary-color) !important;
    width: 16px !important;
    text-align: center !important;
}

.btn i {
    font-size: 1rem !important;
    margin-right: 6px !important;
}

/* Metric icons styling */
.metric-icon {
    font-size: 2rem !important;
    color: var(--primary-color) !important;
    opacity: 0.7 !important;
}

/* AI Tips button icon enhancement */
.ai-insights-button i {
    font-size: 1.2rem !important;
    color: white !important;
}

/* Ensure all FontAwesome icons are properly sized */
.fas, .far, .fab {
    font-size: inherit !important;
}

/* Navigation dropdown headers with icons */
.dropdown-header i {
    color: var(--primary-color) !important;
    font-size: 0.9rem !important;
}
