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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 900px;
    width: 100%;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-size: 28px;
}

.controls {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 20px;
    margin-bottom: 30px;
}

.details-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.control-group {
    display: flex;
    flex-direction: column;
}

.field-spacing-sm {
    margin-bottom: 20px;
}

.field-spacing-lg {
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

select,
input[type="number"].hours-preset,
input[type="text"].hours-preset {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: border-color 0.3s;
}

select {
    cursor: pointer;
}

select:focus,
input[type="number"].hours-preset:focus,
input[type="text"].hours-preset:focus {
    outline: none;
    border-color: #667eea;
}

.prefill-button {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.3s;
}

.prefill-button:hover {
    background: #5a67d8;
}

.week-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.week {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.week-header {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.week-total {
    color: #667eea;
    font-size: 14px;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.day-input {
    display: flex;
    flex-direction: column;
}

.day-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    text-align: center;
}

.day-label.weekend {
    color: #999;
}

.day-label.holiday {
    color: #c53030;
    font-weight: 600;
}

.holiday-name {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    color: #c53030;
}

input[type="number"] {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    transition: all 0.3s;
    width: 100%;
}

input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input[type="number"].weekend {
    background: #f5f5f5;
    border-color: #e5e5e5;
}

input[type="number"].holiday {
    border-color: #e53e3e;
    box-shadow: inset 0 0 0 1px rgba(229, 62, 62, 0.15);
}

.summary {
    background: #f8f9fa;
    color: #333;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
    border: 2px solid #667eea;
}

.summary h2 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.total-hours {
    font-size: 48px;
    font-weight: bold;
    color: #667eea;
}

.button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
        max-width: 100%;
    }

    .controls {
        grid-template-columns: 1fr;
    }

    .details-row {
        grid-template-columns: 1fr;
    }

    .days-grid {
        gap: 4px;
    }

    input[type="number"] {
        padding: 4px;
        font-size: 12px;
    }

    .day-label {
        font-size: 10px;
    }

    .holiday-name {
        font-size: 9px;
    }

    .week {
        padding: 15px;
    }

    h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .days-grid {
        gap: 2px;
    }

    .container {
        padding: 15px;
    }

    .week {
        padding: 10px;
    }
}
