* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007BFF;
    --secondary-color: #0056b3;
    --accent-color: #5BC0DE;
    --success-color: #28a745;
    --background: #f8f9fa;
    --card-bg: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #5F6368;
    --border-color: #dee2e6;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%);
    min-height: 100vh;
    padding: 2rem;
    color: var(--text-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
}

.logo-container {
    margin-bottom: 1.5rem;
}

.logo {
    max-width: 250px;
    height: auto;
    filter: brightness(0) invert(1);
}

header h1 {
    font-size: 2.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

header h1 sup {
    font-size: 1.25rem;
    font-weight: 300;
}

.subtitle {
    font-size: 1.15rem;
    opacity: 0.95;
    font-weight: 300;
}

.dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.15);
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

/* Input Section */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.2s ease;
    background: white;
    color: var(--text-primary);
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    background: white;
}

/* Remove spinner arrows on number inputs */
.input-group input[type="number"]::-webkit-outer-spin-button,
.input-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Results Section */
.metric {
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: var(--background);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.metric.highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-left: 4px solid white;
}

.metric-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
}

.highlight .metric-label,
.highlight .metric-value {
    color: white;
}


/* Mobile Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    header h1 {
        font-size: 2rem;
    }

    .logo {
        max-width: 200px;
    }

    .card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .card h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .input-group label {
        font-size: 0.875rem;
    }

    .input-group input {
        padding: 1rem;
        font-size: 1rem;
    }

    .metric {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }

    .metric-label {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.75rem;
    }

    header h1 {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .logo {
        max-width: 150px;
    }

    .card {
        padding: 1rem;
        border-radius: 8px;
    }

    .card h2 {
        font-size: 1.125rem;
    }

    .input-group input {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .metric-value {
        font-size: 1.25rem;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: slideIn 0.4s ease-out;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

