* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: background-color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    color: white;
}

body.pomodoro {
    background-color: rgb(186, 73, 73);
}

body.shortBreak {
    background-color: rgb(56, 133, 138);
}

body.longBreak {
    background-color: rgb(57, 112, 151);
}

.container {
    width: 100%;
    max-width: 480px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.timer-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.tab {
    background: none;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.tab:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.tab.active {
    background-color: rgba(0, 0, 0, 0.15);
    opacity: 1;
}

.timer-display {
    text-align: center;
    margin-bottom: 30px;
}

.time {
    font-size: 120px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -4px;
    margin-bottom: 20px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.control-btn {
    background-color: white;
    border: none;
    padding: 16px 48px;
    border-radius: 4px;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
}

.control-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.control-btn.start {
    color: rgb(186, 73, 73);
}

.control-btn.pause {
    color: rgb(186, 73, 73);
}

.control-btn.reset {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 14px 24px;
    font-size: 18px;
    box-shadow: none;
}

.control-btn.reset:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: none;
    box-shadow: none;
}

.stats {
    margin-top: 40px;
    text-align: center;
    font-size: 14px;
    opacity: 0.9;
}

.settings-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.settings-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    color: #333;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #666;
}

.setting-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.save-settings {
    background-color: #333;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    transition: all 0.2s ease;
}

.save-settings:hover {
    background-color: #222;
    transform: translateY(-1px);
}

.task-section {
    margin-top: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.task-title {
    font-size: 18px;
    font-weight: 500;
}

.add-task-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px dashed rgba(255, 255, 255, 0.5);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.add-task-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: white;
}

.task-input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    display: none;
}

.task-list {
    list-style: none;
}

.task-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.task-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.task-text {
    flex: 1;
}

.task-item.completed .task-text {
    text-decoration: line-through;
    opacity: 0.6;
}

.delete-task {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.6;
    font-size: 18px;
}

.delete-task:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .time {
        font-size: 80px;
    }
    
    .control-btn {
        padding: 12px 32px;
        font-size: 18px;
    }
}