* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    min-height: 100vh;
    color: #333;
}

header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

header h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0.5rem 0;
}

header h1 a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    margin-right: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

header h1 a:hover {
    opacity: 1;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.calculator-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.calculator-card h2 {
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 500;
}

.time-entries {
    margin-bottom: 2rem;
}

.time-entry {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.time-entry:hover {
    border-color: #74b9ff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(116, 185, 255, 0.1);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.day-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.remove-day {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.remove-day:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.time-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.9rem;
}

.input-group input {
    padding: 0.8rem;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #74b9ff;
    box-shadow: 0 0 0 3px rgba(116, 185, 255, 0.1);
}

.day-total {
    text-align: center;
    padding: 0.8rem;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
}

.controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(116, 185, 255, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #74b9ff;
    border: 2px solid #74b9ff;
}

.btn-outline:hover {
    background: #74b9ff;
    color: white;
}

.results {
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.results.hidden {
    display: none;
}

.results h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.result-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.result-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 1.3rem;
    font-weight: 700;
}

.presets {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.presets h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

.preset-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.preset-btn {
    background: white;
    color: #333;
    border: 2px solid #e0e6ed;
    padding: 0.8rem 1.2rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.preset-btn:hover {
    border-color: #74b9ff;
    color: #74b9ff;
    transform: translateY(-2px);
}

.export-section {
    margin-top: 2rem;
    text-align: center;
}

.export-section h3 {
    margin-bottom: 1rem;
    color: #333;
}

.export-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

footer {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.time-entry {
    animation: slideIn 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        margin: 1rem auto;
        padding: 0 1rem;
    }
    
    .calculator-card {
        padding: 1.5rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .time-inputs {
        grid-template-columns: 1fr;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .preset-buttons {
        flex-direction: column;
    }
    
    .export-buttons {
        flex-direction: column;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .calculator-card {
        padding: 1rem;
    }
    
    .day-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
