:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    border: 1px solid var(--border);
}

h2 {
    margin-top: 0;
    font-size: 1.25rem;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 12px;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
}

input[type="number"],
input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

input[type="range"] {
    width: 100%;
    margin-top: 10px;
}

.results {
    background: #1e293b;
    color: white;
    border: none;
}

.results h2 {
    border-color: #334155;
    color: #e2e8f0;
}

.rate-display {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.rate-display .currency {
    font-size: 2rem;
    color: #94a3b8;
    vertical-align: top;
}

.rate-display #hourly-rate {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    color: #4ade80;
    /* Green */
}

.rate-display .unit {
    font-size: 1.2rem;
    color: #94a3b8;
}

.breakdown .item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #334155;
}

.breakdown .item:last-child {
    border-bottom: none;
}


small {
    display: block;
    margin-top: 8px;
    opacity: 0.7;
    font-size: 0.75rem;
}