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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.4;
    color: #333;
    background: linear-gradient(135deg, #0d1f0d 0%, #1a3d1a 25%, #2d5a2d 60%, #4a7c4a 100%);
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px;
}

header {
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1rem;
    opacity: 0.9;
}

.date-selector {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.date-selector label {
    font-weight: 600;
    color: #555;
}

.date-selector select,
.date-selector input {
    padding: 6px 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.date-selector button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.date-selector button:hover {
    background: #45a049;
}

.weekday-info {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    text-align: center;
}

.weekday-info p {
    margin: 3px 0;
    font-size: 1rem;
}

.calculator {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.calculator h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ecf0f1;
    font-size: 1.3rem;
}

.shifts-section {
    margin-bottom: 20px;
}

.shift-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
}

.shift-row:last-child {
    border-bottom: none;
}

.shift-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.shift-label {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.shift-units {
    color: #95a5a6;
    font-size: 0.8rem;
    font-style: italic;
}

.counter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.counter-btn {
    background: #3498db;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background 0.3s;
}

.counter-btn:hover {
    background: #2980b9;
}

.shift-input {
    width: 70px;
    padding: 6px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.additional-units,
.fte-section,
.units-needed {
    margin-bottom: 20px;
}

.additional-units h2,
.fte-section h2,
.units-needed h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.additional-units p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-weight: 600;
    color: #34495e;
    font-size: 0.9rem;
}

.input-group input,
.input-group select {
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    max-width: 180px;
}

.input-group small {
    color: #7f8c8d;
    font-size: 0.8rem;
}

.meeting-checkbox {
    margin-top: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #34495e;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label:hover {
    color: #2c3e50;
}

.results {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
}

.results h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.result-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.result-label {
    display: block;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.result-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
}

#balance {
    color: #e74c3c;
}

#balance.positive {
    color: #27ae60;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .date-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .shift-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .counter {
        justify-content: center;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
}