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

:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --success-color: #51CF66;
    --warning-color: #FFD93D;
    --danger-color: #FF6B9D;
    --text-color: #2D3436;
    --bg-color: #F8F9FA;
    --card-bg: #FFFFFF;
    --border-color: #E9ECEF;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.icon {
    font-size: 1.2em;
    animation: sunrise 3s ease-in-out infinite;
}

@keyframes sunrise {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

.language-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.lang-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.timer-section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    text-align: center;
}

.current-time {
    font-size: 3em;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-variant-numeric: tabular-nums;
}

.target-time-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.target-time-wrapper label {
    font-weight: 500;
}

#targetTime {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#targetTime:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #45B7AA;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.countdown {
    display: none;
    font-size: 1.2em;
    color: var(--warning-color);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.checklist-section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.checklist-section h2 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.progress-bar {
    height: 20px;
    background: var(--border-color);
    border-radius: 10px;
    margin-bottom: 25px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--success-color));
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.checklist-container {
    margin-bottom: 20px;
}

.checklist-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: var(--bg-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checklist-item:hover {
    transform: translateX(5px);
}

.checklist-item.checked {
    opacity: 0.6;
}

.checklist-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    cursor: pointer;
}

.checklist-item label {
    flex: 1;
    cursor: pointer;
    font-size: 16px;
}

.checklist-item.checked label {
    text-decoration: line-through;
    color: #868E96;
}

.delete-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 18px;
}

.checklist-item:hover .delete-btn {
    opacity: 1;
}

.delete-btn:hover {
    transform: scale(1.1);
}

.add-item-section {
    display: flex;
    gap: 10px;
}

#newItemInput {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#newItemInput:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.btn-secondary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-secondary:hover {
    background: #FF5252;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-reset {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-reset:hover {
    background: #FF5983;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

.notification.info {
    background: var(--secondary-color);
}

.notification.success {
    background: var(--success-color);
}

.notification.alarm {
    background: var(--warning-color);
    color: var(--text-color);
}

.alarm-active {
    animation: alarmShake 0.5s ease-in-out infinite;
}

@keyframes alarmShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

footer {
    text-align: center;
    padding: 20px;
    color: #868E96;
    font-size: 14px;
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .current-time {
        font-size: 2.5em;
    }
    
    .language-selector {
        flex-wrap: wrap;
    }
    
    .target-time-wrapper {
        flex-direction: column;
    }
    
    .checklist-section {
        padding: 20px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}