:root {
    --primary: #6366f1;
    --background: #f8fafc;
    --text: #1e293b;
    --glass: rgba(255, 255, 255, 0.7);
    --border: rgba(255, 255, 255, 0.3);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #e0e7ff 0%, #f1f5f9 100%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text);
}

.subtitle {
    color: #64748b;
    font-size: 1.1rem;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.input-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #475569;
}

select,
input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

select:focus,
input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.toggle-group {
    display: flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 12px;
}

.toggle-group input[type="radio"] {
    display: none;
}

.toggle-group label {
    flex: 1;
    text-align: center;
    padding: 10px;
    margin-bottom: 0;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.toggle-group input[type="radio"]:checked+label {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.results-header {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

.result-main {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.result-main .label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    opacity: 0.9;
}

.result-main .value {
    font-size: 3rem;
    font-weight: 800;
}

.result-main .value small {
    font-size: 1.2rem;
    font-weight: 400;
}

.results-header .breakdown {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: white;
}

.results-header .tip-card {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-left: 4px solid #fbbf24;
    color: white;
    text-align: left;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.input-group.full-width {
    grid-column: span 2;
}

.tip-card.outside {
    margin-top: -10px;
    margin-bottom: 25px;
    padding: 15px;
    background: #fef9c3;
    border-left: 4px solid #facc15;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #854d0e;
    line-height: 1.4;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.calendar-section {
    margin-top: 10px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    background: rgba(0, 0, 0, 0.02);
    padding: 15px;
    border-radius: 16px;
}

.day-header {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    padding-bottom: 8px;
}

.day-header.accent {
    color: #ef4444;
}

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #f1f5f9;
}

.day:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.day.holiday {
    background: #fee2e2;
    color: #ef4444;
    font-weight: 600;
    border-color: #fca5a5;
    cursor: not-allowed;
    opacity: 0.7;
}

.day.manual-off {
    background: #dcfce7;
    color: #16a34a;
    font-weight: 700;
    border-color: #86efac;
    box-shadow: inset 0 0 0 2px #22c55e;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.input-group.full-width {
    grid-column: span 2;
}

.stats-summary.bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    border: 1px solid #f1f5f9;
}

.stat-item strong {
    color: #1e293b;
    font-size: 1.1rem;
}

.breakdown-bottom {
    margin-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    font-style: italic;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: #94a3b8;
    font-size: 0.8rem;
}