/* Enhanced CES Calculator - Premium Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a9eff;
    --primary-dark: #0066cc;
    --success-color: #4ade80;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.4);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
.site-header {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo-link:hover {
    transform: scale(1.05);
}

.site-logo {
    height: 40px;
    width: 40px;
    border-radius: 8px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.site-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-left: 1rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.export-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.export-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 4rem 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(74, 158, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

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

.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

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

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Calculator Section */
.calculator-section {
    margin-bottom: 4rem;
}

.calculator-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.calculator-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color), var(--warning-color));
}

.calculator-header {
    text-align: center;
    margin-bottom: 3rem;
}

.calculator-header h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.formula-display {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.formula-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.formula-text {
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-weight: 500;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Input Section */
.input-section h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-group {
    margin-bottom: 2rem;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.label-required {
    color: var(--error-color);
    font-weight: 600;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    font-weight: 500;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.input-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.input-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.calculate-btn, .clear-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.calculate-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

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

.clear-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.clear-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Results Section */
.results-section h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ces-score-display {
    text-align: center;
    margin-bottom: 3rem;
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.score-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: rotate 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.score-circle:hover::before {
    opacity: 1;
}

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

.score-circle.excellent {
    background: linear-gradient(135deg, var(--success-color), #22c55e);
}

.score-circle.good {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.score-circle.average {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
}

.score-circle.poor {
    background: linear-gradient(135deg, var(--error-color), #dc2626);
}

.score-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    z-index: 1;
}

.score-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    z-index: 1;
}

.score-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.4;
}

.metrics-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.metric-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.metric-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.metric-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.metric-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.performance-indicator {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.indicator-label {
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: center;
}

.indicator-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.indicator-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 1s ease-out;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
}

.indicator-fill.excellent {
    background: linear-gradient(90deg, var(--success-color), #22c55e);
}

.indicator-fill.good {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.indicator-fill.average {
    background: linear-gradient(90deg, var(--warning-color), #d97706);
}

.indicator-fill.poor {
    background: linear-gradient(90deg, var(--error-color), #dc2626);
}

.indicator-text {
    text-align: center;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Benchmarks Section */
.benchmarks-section {
    margin-bottom: 4rem;
}

.benchmarks-section h3 {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.benchmark-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benchmark-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.benchmark-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.benchmark-card:hover::before {
    transform: scaleX(1);
}

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

.benchmark-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.benchmark-icon {
    font-size: 1.5rem;
}

.benchmark-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.benchmark-score {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benchmark-range {
    margin-bottom: 1rem;
}

.range-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.range-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.range-fill.gaming { width: 60%; background: linear-gradient(90deg, var(--primary-color), var(--success-color)); }
.range-fill.lifestyle { width: 45%; background: linear-gradient(90deg, var(--warning-color), var(--primary-color)); }
.range-fill.business { width: 70%; background: linear-gradient(90deg, var(--success-color), var(--primary-color)); }
.range-fill.entertainment { width: 50%; background: linear-gradient(90deg, var(--primary-color), var(--warning-color)); }

.benchmark-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Recommendations Section */
.recommendations-section {
    margin-bottom: 4rem;
}

.recommendations-section h3 {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.recommendation-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.recommendation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.recommendation-card:hover::before {
    transform: scaleX(1);
}

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

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.priority-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority-badge.high {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.priority-badge.medium {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.priority-badge.low {
    background: rgba(74, 158, 255, 0.2);
    color: var(--primary-color);
    border: 1px solid rgba(74, 158, 255, 0.3);
}

.recommendation-icon {
    font-size: 1.5rem;
}

.recommendation-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.recommendation-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.recommendation-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.action-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Notifications */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: var(--success-color);
}

.notification.warning {
    background: var(--warning-color);
}

.notification.error {
    background: var(--error-color);
}

.notification.info {
    background: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header-content {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .site-header h1 {
        margin-left: 0;
        font-size: 1.3rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .calculator-container {
        padding: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .benchmark-categories {
        grid-template-columns: 1fr;
    }
    
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    .input-actions {
        flex-direction: column;
    }
    
    .notification {
        right: 1rem;
        left: 1rem;
        transform: translateY(-100%);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .calculator-container {
        padding: 1.5rem;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
    }
    
    .score-number {
        font-size: 2rem;
    }
    
    .formula-display {
        flex-direction: column;
        text-align: center;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

/* Focus styles for keyboard navigation */
button:focus,
input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Professional Text Colors - Replace White with Grey */
.hero-subtitle,
.section-subtitle,
.stat-label,
.benchmark-card p,
.recommendation-card p,
.score-description,
.indicator-text,
.metric-label,
.input-group small {
    color: #B0B0B0 !important; /* Light grey instead of white */
}

/* Main headings stay white for contrast */
.hero h2,
.calculator-header h3,
.benchmarks-section h3,
.recommendations-section h3,
.input-section h4,
.results-section h4,
.benchmark-card h4,
.recommendation-card h4 {
    color: #FFFFFF !important; /* Keep white for main headings */
}

/* Secondary text in grey */
.label-text,
.formula-label,
.indicator-label {
    color: #808080 !important; /* Medium grey */
}

/* Muted text in darker grey */
.formula-text,
.benchmark-score {
    color: #666666 !important; /* Darker grey */
}

/* Professional Color Override - Black, Grey, White, Green Only */
:root {
    --primary-color: #00C851;        /* Professional Green */
    --primary-dark: #00A041;         /* Darker Green */
    --primary-light: #4CD964;        /* Light Green */
    --text-primary: #FFFFFF;         /* Pure White */
    --text-secondary: #B0B0B0;       /* Light Grey */
    --text-muted: #808080;           /* Medium Grey */
    --text-dark: #333333;            /* Dark Grey */
    --bg-primary: #000000;           /* Pure Black */
    --bg-secondary: #1A1A1A;         /* Dark Grey */
    --bg-tertiary: #2A2A2A;          /* Medium Dark Grey */
    --bg-card: #1E1E1E;              /* Card Background */
    --border-color: #404040;         /* Border Grey */
    --border-light: #2A2A2A;         /* Light Border */
}

/* Override all colorful elements */
.score-circle.excellent,
.indicator-fill.excellent,
.range-fill.business,
.range-fill.gaming {
    background: var(--primary-color) !important;
    color: var(--bg-primary) !important;
}

.score-circle.good,
.indicator-fill.good {
    background: var(--primary-light) !important;
    color: var(--bg-primary) !important;
}

.score-circle.average,
.indicator-fill.average,
.range-fill.entertainment {
    background: var(--text-secondary) !important;
    color: var(--bg-primary) !important;
}

.score-circle.poor,
.indicator-fill.poor,
.range-fill.lifestyle {
    background: var(--text-muted) !important;
    color: var(--bg-primary) !important;
}

/* Remove all blue, orange, red, purple colors */
.calculate-btn,
.export-btn,
.action-btn {
    background: var(--primary-color) !important;
    color: var(--bg-primary) !important;
    border: none !important;
}

.calculate-btn:hover,
.export-btn:hover,
.action-btn:hover {
    background: var(--primary-dark) !important;
}

.clear-btn {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

.clear-btn:hover {
    background: var(--border-color) !important;
}

/* Remove all gradients and use solid colors */
* {
    background-image: none !important;
}

/* Override any remaining colorful elements */
.priority-badge.high {
    background: var(--primary-color) !important;
    color: var(--bg-primary) !important;
}

.priority-badge.medium {
    background: var(--text-secondary) !important;
    color: var(--bg-primary) !important;
}

.priority-badge.low {
    background: var(--text-muted) !important;
    color: var(--bg-primary) !important;
}

/* Ensure all backgrounds are black/grey */
body {
    background: var(--bg-primary) !important;
}

.site-header,
.calculator-section,
.benchmarks-section,
.recommendations-section {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

.input-section,
.results-section,
.stat-card,
.benchmark-card,
.recommendation-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
}

.ces-score-display,
.performance-indicator,
.metric-item {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
}

/* Remove Grey Backgrounds - Make Content Areas Black */
.calculator-section,
.benchmarks-section,
.recommendations-section {
    background: #000000 !important; /* Pure black */
    border: none !important;
}

.calculator-container {
    background: #000000 !important; /* Pure black */
    border: none !important;
}

.input-section,
.results-section {
    background: #000000 !important; /* Pure black */
    border: 1px solid #404040 !important; /* Keep subtle grey border */
}

.stat-card,
.benchmark-card,
.recommendation-card {
    background: #000000 !important; /* Pure black */
    border: 1px solid #404040 !important; /* Keep subtle grey border */
}

.ces-score-display,
.performance-indicator,
.metric-item {
    background: #000000 !important; /* Pure black */
    border: 1px solid #404040 !important; /* Keep subtle grey border */
}

/* Keep only the header with grey background */
.site-header {
    background: #1A1A1A !important; /* Keep header grey */
    border-bottom: 1px solid #404040 !important;
}

/* Fix Stat Card Display */
.stat-number {
    display: block !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin-bottom: 0.5rem !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.stat-label {
    display: block !important;
    color: #B0B0B0 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.stat-icon {
    display: none !important; /* Hide empty icon divs */
}

.stat-card {
    text-align: center !important;
    padding: 2rem !important;
    min-height: 120px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Fix Button Colors - Remove Orange and Other Colors */
.clear-btn {
    background: #404040 !important; /* Grey instead of orange */
    color: #FFFFFF !important;
    border: 1px solid #404040 !important;
}

.clear-btn:hover {
    background: #666666 !important; /* Lighter grey on hover */
}

/* Ensure all buttons use only black, grey, white, green */
button:not(.calculate-btn):not(.export-btn):not(.action-btn) {
    background: #404040 !important; /* Grey for secondary buttons */
    color: #FFFFFF !important;
    border: 1px solid #404040 !important;
}

button:not(.calculate-btn):not(.export-btn):not(.action-btn):hover {
    background: #666666 !important; /* Lighter grey on hover */
}

/* Override any remaining colorful buttons */
.priority-badge.medium {
    background: #666666 !important; /* Grey instead of orange */
    color: #FFFFFF !important;
}

/* Remove any orange/red colors from score states */
.score-circle.average,
.indicator-fill.average {
    background: #666666 !important; /* Grey instead of orange */
    color: #FFFFFF !important;
}

/* Ensure all interactive elements use only the approved colors */
input:focus,
textarea:focus,
select:focus {
    border-color: #00C851 !important; /* Green focus */
    box-shadow: 0 0 0 2px rgba(0, 200, 81, 0.1) !important;
}
/* Beautiful, Optimized Design - Professional & Modern */

/* Enhanced Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* Beautiful Hero Section */
.hero {
    padding: 6rem 0 8rem;
    text-align: center;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #B0B0B0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 4rem;
    color: #808080;
    line-height: 1.7;
    font-weight: 400;
}

/* Beautiful Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00C851 0%, #4CD964 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 200, 81, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #808080;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Beautiful Calculator Section */
.calculator-section {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    margin: 4rem 0;
    padding: 4rem;
    backdrop-filter: blur(20px);
}

.calculator-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calculator-header h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
}

.formula-display {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: inline-block;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

.formula-label {
    color: #808080;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.75rem;
}

.formula-text {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 500;
}

/* Beautiful Calculator Grid */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Beautiful Input Section */
.input-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 3rem;
}

.input-section h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 2.5rem;
    text-align: center;
}

.input-group {
    margin-bottom: 2.5rem;
}

.input-group:last-child {
    margin-bottom: 0;
}

.label-text {
    color: #FFFFFF;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: block;
}

.label-required {
    color: #00C851;
    margin-left: 0.25rem;
}

.input-wrapper {
    position: relative;
    margin-bottom: 0.75rem;
}

.input-prefix {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #808080;
    font-weight: 500;
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 1.25rem 1.25rem 1.25rem 2.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #00C851;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 200, 81, 0.1);
    transform: translateY(-2px);
}

.input-group small {
    color: #666666;
    font-size: 0.75rem;
    line-height: 1.4;
    display: block;
}

/* Beautiful Buttons */
.input-actions {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

.calculate-btn {
    flex: 1;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #00C851 0%, #00A041 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 200, 81, 0.3);
}

.calculate-btn:hover::before {
    left: 100%;
}

.clear-btn {
    flex: 1;
    padding: 1.25rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Beautiful Results Section */
.results-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 3rem;
    position: sticky;
    top: 120px;
}

.results-section h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 2.5rem;
    text-align: center;
}

.ces-score-display {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.ces-score-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00C851 0%, #4CD964 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.score-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #00C851 0%, #4CD964 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.score-circle.excellent::before,
.score-circle.good::before {
    opacity: 1;
}

.score-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.score-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.score-description {
    color: #808080;
    font-size: 0.875rem;
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto;
}

/* Beautiful Metrics */
.metrics-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.metric-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.metric-item:hover {
    border-color: rgba(0, 200, 81, 0.3);
    transform: translateY(-2px);
}

.metric-icon {
    font-size: 1.5rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 200, 81, 0.1);
    border-radius: 8px;
    color: #00C851;
}

.metric-content {
    flex: 1;
}

.metric-label {
    color: #808080;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: block;
}

.metric-value {
    color: #FFFFFF;
    font-size: 1.125rem;
    font-weight: 600;
    display: block;
}

/* Beautiful Performance Indicator */
.performance-indicator {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
}

.indicator-label {
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.indicator-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.indicator-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-out;
    background: linear-gradient(90deg, #00C851 0%, #4CD964 100%);
}

.indicator-text {
    color: #808080;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Mobile Optimizations */
@media (max-width: 1024px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .results-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 6rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .calculator-section {
        padding: 2rem;
    }
    
    .input-section,
    .results-section {
        padding: 2rem;
    }
    
    .metrics-breakdown {
        grid-template-columns: 1fr;
    }
    
    .input-actions {
        flex-direction: column;
    }
}

/* Fix Header Spacing and Stat Card Numbers */
.hero {
    padding: 3rem 0 4rem !important; /* Reduce excessive padding */
}

.hero h2 {
    font-size: 2.5rem !important; /* Smaller title */
    margin-bottom: 1rem !important;
}

.hero-subtitle {
    font-size: 1.125rem !important; /* Smaller subtitle */
    margin-bottom: 2rem !important; /* Less space below */
}

.stats-grid {
    margin: 2rem 0 !important; /* Reduce margin */
}

.stat-card {
    padding: 2rem 1.5rem !important; /* Reduce card padding */
    min-height: 100px !important; /* Smaller cards */
}

.stat-number {
    font-size: 2.5rem !important; /* Ensure numbers are visible */
    font-weight: 800 !important;
    color: #FFFFFF !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1 !important;
}

.stat-label {
    font-size: 0.875rem !important;
    color: #808080 !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Reduce overall section spacing */
.calculator-section {
    margin: 2rem 0 !important;
    padding: 3rem !important;
}

.calculator-header {
    margin-bottom: 2rem !important;
    padding-bottom: 1.5rem !important;
}

.calculator-header h3 {
    font-size: 2rem !important;
    margin-bottom: 1rem !important;
}

/* Force Compact Header and Fix Stat Numbers */
.hero {
    padding: 2rem 0 2.5rem !important;
    min-height: auto !important;
}

.hero h2 {
    font-size: 2rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.2 !important;
}

.hero-subtitle {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
    max-width: 600px !important;
}

.stats-grid {
    margin: 1.5rem 0 !important;
    gap: 1rem !important;
}

.stat-card {
    padding: 1.5rem 1rem !important;
    min-height: 80px !important;
    max-height: 80px !important;
}

/* Force stat numbers to be visible */
.stat-card .stat-number {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin-bottom: 0.25rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1 !important;
    text-align: center !important;
}

.stat-card .stat-label {
    font-size: 0.75rem !important;
    color: #808080 !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-align: center !important;
    margin: 0 !important;
}

/* Remove any conflicting styles */
.stat-card * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Make calculator section more compact */
.calculator-section {
    margin: 1.5rem 0 !important;
    padding: 2rem !important;
}

.calculator-header {
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem !important;
}

.calculator-header h3 {
    font-size: 1.75rem !important;
    margin-bottom: 0.75rem !important;
}

/* Fix Alignment and Make Stat Boxes Much Smaller */
.stats-grid {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important;
    margin: 1rem 0 !important;
    flex-wrap: wrap !important;
}

.stat-card {
    flex: 0 0 auto !important;
    width: 200px !important;
    height: 80px !important;
    padding: 1rem 0.75rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    margin: 0 !important;
}

.stat-card .stat-number {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin: 0 0 0.25rem 0 !important;
    line-height: 1 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.stat-card .stat-label {
    font-size: 0.7rem !important;
    color: #808080 !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.stat-icon {
    display: none !important;
}

/* Ensure proper alignment of all elements */
.hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.hero h2 {
    text-align: center !important;
    margin: 0 auto 0.75rem auto !important;
}

.hero-subtitle {
    text-align: center !important;
    margin: 0 auto 1rem auto !important;
    max-width: 600px !important;
}

/* Make the progress bar section more compact */
.calculator-header {
    text-align: center !important;
    margin: 1rem 0 !important;
    padding: 1rem 0 !important;
}

.calculator-header h3 {
    text-align: center !important;
    margin: 0 auto 0.75rem auto !important;
}

.formula-display {
    text-align: center !important;
    margin: 0 auto !important;
    display: inline-block !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .stats-grid {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .stat-card {
        width: 180px !important;
        height: 70px !important;
    }
    
    .stat-card .stat-number {
        font-size: 1.25rem !important;
    }
    
    .stat-card .stat-label {
        font-size: 0.65rem !important;
    }
}

/* Make Header Even More Compact - CES Calculator More Visible on Load */
.hero {
    padding: 1.5rem 0 1rem !important; /* Much smaller padding */
    min-height: auto !important;
}

.hero h2 {
    font-size: 1.75rem !important; /* Smaller title */
    margin-bottom: 0.5rem !important;
    line-height: 1.2 !important;
}

.hero-subtitle {
    font-size: 0.9rem !important; /* Smaller subtitle */
    margin-bottom: 0.75rem !important;
    max-width: 500px !important;
    line-height: 1.4 !important;
}

.stats-grid {
    margin: 0.75rem 0 !important; /* Minimal margin */
    gap: 0.75rem !important;
}

.stat-card {
    width: 180px !important; /* Slightly smaller */
    height: 70px !important; /* Slightly shorter */
    padding: 0.75rem 0.5rem !important; /* Less padding */
}

.stat-card .stat-number {
    font-size: 1.25rem !important; /* Smaller numbers */
    margin: 0 0 0.2rem 0 !important;
}

.stat-card .stat-label {
    font-size: 0.65rem !important; /* Smaller labels */
}

/* Make calculator section start higher */
.calculator-section {
    margin: 1rem 0 !important; /* Minimal margin */
    padding: 2rem !important;
}

.calculator-header {
    margin-bottom: 1rem !important; /* Less space */
    padding-bottom: 0.75rem !important;
}

.calculator-header h3 {
    font-size: 1.5rem !important; /* Smaller calculator title */
    margin-bottom: 0.5rem !important;
}

.formula-display {
    padding: 1rem 1.5rem !important; /* Smaller formula box */
    font-size: 0.9rem !important;
}

/* Reduce overall page spacing */
.container {
    padding: 0 1rem !important;
}

/* Make everything more compact */
.site-header {
    padding: 1rem 0 !important;
}

.header-content h1 {
    font-size: 1.5rem !important;
}

/* Mobile optimizations for even more compact view */
@media (max-width: 768px) {
    .hero {
        padding: 1rem 0 0.75rem !important;
    }
    
    .hero h2 {
        font-size: 1.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .stats-grid {
        margin: 0.5rem 0 !important;
        gap: 0.5rem !important;
    }
    
    .stat-card {
        width: 160px !important;
        height: 60px !important;
        padding: 0.5rem 0.25rem !important;
    }
    
    .stat-card .stat-number {
        font-size: 1.1rem !important;
    }
    
    .stat-card .stat-label {
        font-size: 0.6rem !important;
    }
    
    .calculator-section {
        margin: 0.75rem 0 !important;
        padding: 1.5rem !important;
    }
}

/* Force Stat Numbers to be Visible - Override All Conflicting Styles */
.stat-card .stat-number {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin: 0 0 0.2rem 0 !important;
    line-height: 1 !important;
    text-align: center !important;
    position: relative !important;
    z-index: 10 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
}

.stat-card .stat-label {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 0.65rem !important;
    color: #808080 !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Remove any gradient or background effects that might be hiding text */
.stat-card * {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
}

/* Ensure the stat card content is visible */
.stat-card {
    position: relative !important;
    overflow: visible !important;
}

/* Debug: Add a temporary background to see if cards are there */
.stat-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Fix Shaking Boxes - Remove Problematic Animations */
.stat-card {
    transition: none !important;
    transform: none !important;
    animation: none !important;
}

.stat-card:hover {
    transform: none !important;
    transition: none !important;
}

.input-wrapper input {
    transition: none !important;
    transform: none !important;
}

.input-wrapper input:focus {
    transform: none !important;
    transition: none !important;
}

.calculate-btn,
.clear-btn {
    transition: none !important;
    transform: none !important;
}

.calculate-btn:hover,
.clear-btn:hover {
    transform: none !important;
    transition: none !important;
}

/* Remove all shaking animations */
* {
    animation: none !important;
}

/* Keep only essential transitions for smooth updates */
.score-circle,
.metric-item,
.indicator-fill {
    transition: all 0.3s ease !important;
}

/* Disable JavaScript animations that might cause shaking */
.animateValue {
    animation: none !important;
}

/* Ensure smooth number updates without shaking */
.stat-number,
.metric-value,
.score-number {
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

/* Fix any input field shaking */
input[type="number"] {
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

input[type="number"]:focus {
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

/* COMPLETELY DISABLE ALL ANIMATIONS AND TRANSITIONS */
* {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

/* Override any existing animation rules */
.stat-card,
.stat-number,
.stat-label,
.input-wrapper,
.input-wrapper input,
.calculate-btn,
.clear-btn,
.export-btn,
.metric-item,
.score-circle,
.indicator-fill,
.benchmark-card,
.recommendation-card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

/* Remove hover effects that might cause shaking */
.stat-card:hover,
.input-wrapper input:hover,
.input-wrapper input:focus,
.calculate-btn:hover,
.clear-btn:hover,
.export-btn:hover,
.metric-item:hover,
.benchmark-card:hover,
.recommendation-card:hover {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

/* Disable any CSS animations */
@keyframes fadeInUp {
    animation: none !important;
}

.fade-in-up {
    animation: none !important;
}

/* Force static positioning */
.stat-card {
    position: static !important;
}

/* Remove any backdrop filters that might cause issues */
.stat-card,
.input-section,
.results-section,
.calculator-section {
    backdrop-filter: none !important;
}

/* Fix Metric Box Numbers - Make Them Smaller and Better Spaced */
.metric-item {
    padding: 1rem 0.75rem !important; /* Reduce padding */
    min-height: auto !important;
    height: auto !important;
}

.metric-icon {
    width: 2rem !important; /* Smaller icon area */
    height: 2rem !important;
    font-size: 1.25rem !important;
}

.metric-label {
    font-size: 0.7rem !important; /* Smaller label */
    margin-bottom: 0.2rem !important;
    line-height: 1.2 !important;
}

.metric-value {
    font-size: 0.95rem !important; /* Much smaller numbers */
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

/* Make the metrics grid more compact */
.metrics-breakdown {
    gap: 0.75rem !important; /* Smaller gaps */
    margin-bottom: 1.5rem !important;
}

/* Adjust the overall results section spacing */
.results-section {
    padding: 2rem 1.5rem !important; /* Less padding */
}

.ces-score-display {
    padding: 2rem 1.5rem !important; /* Less padding */
    margin-bottom: 1.5rem !important;
}

/* Make the score circle smaller */
.score-circle {
    width: 120px !important;
    height: 120px !important;
    margin: 0 auto 1rem auto !important;
}

.score-number {
    font-size: 2rem !important; /* Smaller score number */
    line-height: 1 !important;
}

.score-label {
    font-size: 0.8rem !important; /* Smaller label */
    margin-top: 0.25rem !important;
}

/* Make performance indicator more compact */
.performance-indicator {
    padding: 1.25rem !important; /* Less padding */
}

.indicator-label {
    font-size: 0.8rem !important; /* Smaller label */
    margin-bottom: 0.75rem !important;
}

.indicator-text {
    font-size: 0.8rem !important; /* Smaller text */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .metric-item {
        padding: 0.75rem 0.5rem !important;
    }
    
    .metric-value {
        font-size: 0.85rem !important;
    }
    
    .metric-label {
        font-size: 0.65rem !important;
    }
    
    .score-circle {
        width: 100px !important;
        height: 100px !important;
    }
    
    .score-number {
        font-size: 1.75rem !important;
    }
}

/* Fix Metric Box Numbers - Make Them Smaller and Better Spaced */
.metric-item {
    padding: 1rem 0.75rem !important; /* Reduce padding */
    min-height: auto !important;
    height: auto !important;
}

.metric-icon {
    width: 2rem !important; /* Smaller icon area */
    height: 2rem !important;
    font-size: 1.25rem !important;
}

.metric-content {
    flex: 1 !important;
}

.metric-label {
    font-size: 0.7rem !important; /* Smaller labels */
    color: #808080 !important;
    margin-bottom: 0.2rem !important;
    line-height: 1.2 !important;
}

.metric-value {
    font-size: 0.9rem !important; /* Much smaller numbers */
    font-weight: 600 !important;
    color: #FFFFFF !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

/* Make the metrics grid more compact */
.metrics-breakdown {
    gap: 0.75rem !important; /* Smaller gaps */
    margin-bottom: 1.5rem !important;
}

/* Ensure proper alignment */
.metric-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important; /* Smaller gap between icon and content */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .metric-item {
        padding: 0.75rem 0.5rem !important;
    }
    
    .metric-icon {
        width: 1.75rem !important;
        height: 1.75rem !important;
        font-size: 1rem !important;
    }
    
    .metric-label {
        font-size: 0.65rem !important;
    }
    
    .metric-value {
        font-size: 0.8rem !important;
    }
}
