:root {
    --primary: #3498db;
    --secondary: #2ecc71;
    --warning: #e74c3c;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --text: #333;
    --border: #bdc3c7;
    --safe: #2ecc71;
    --caution: #f39c12;
    --hazardous: #e74c3c;
    --extreme: #8e44ad;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #f5f7fa;
    padding: 20px;
}

.app-container {
    max-width: 800px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: var(--dark);
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 400;
}

.status {
    font-style: italic;
    color: #7f8c8d;
    margin-top: 10px;
    font-weight: 400;
}

.meter-container {
    margin: 30px 0;
    position: relative;
}

.meter {
    height: 40px;
    width: 100%;
    background: #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.meter-bar {
    height: 100%;
    width: 0%;
    position: relative;
    transition: width 50ms ease-out, background-color 100ms ease;
    background-color: #2ecc71;
}

.meter-labels {
    position: absolute;
    bottom: -25px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.meter-labels span {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #7f8c8d;
}

.meter-labels span::before {
    content: '';
    position: absolute;
    top: -10px;
    width: 1px;
    height: 5px;
    background: #7f8c8d;
}

.meter-pointer {
    position: absolute;
    top: -15px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 15px solid var(--dark);
    transform: translateX(-50%);
    z-index: 10;
}

.data-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
    justify-content: center;
}

.card {
    flex: 1;
    min-width: 160px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.card-title {
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 10px;
    font-weight: 600;
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

.card-unit {
    font-size: 1rem;
    color: #7f8c8d;
    margin-top: 5px;
    font-weight: 400;
}

.card-example, .card-exposure {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}

.example-label, .exposure-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.example-value, .exposure-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
}

.average-card {
    border-top: 5px solid var(--secondary);
}

.safety-card {
    border-top: 5px solid var(--caution);
}

.live-card {
    border-top: 5px solid var(--primary);
}

.max-card {
    border-top: 5px solid var(--warning);
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 180px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-warning {
    background-color: var(--warning);
    color: white;
}

.btn-warning:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
}

.btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none !important;
}

.description {
    margin: 40px auto;
    max-width: 700px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.description p {
    margin: 0;
}

@media (max-width: 768px) {
    .data-cards {
        flex-direction: column;
    }
    
    .controls {
        flex-wrap: wrap;
    }
    
    .btn {
        width: 100%;
    }
    
    .card-value {
        font-size: 1.8rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .card {
        min-width: 100%;
    }
}