:root {
    --bg-color: #ba4949;
    --card-bg: rgba(255, 255, 255, 0.1);
    --text-color: #ffffff;
    --btn-text: #ba4949;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'ArialRoundedMTBold', "Arial Rounded MT Bold", Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 10px;
    transition: background-color 0.5s ease;
}

.app-container {
    width: 100%;
    max-width: 480px;
}

.timer-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px 20px 30px 20px;
    text-align: center;
    margin-bottom: 20px;
}

.modes {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.mode-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.mode-btn.active {
    background: rgba(0, 0, 0, 0.15);
    font-weight: bold;
}

.time-display {
    font-size: 120px;
    font-weight: bold;
    margin: 10px 0 20px;
}

.controls {
    display: flex;
    justify-content: center;
}

#startBtn {
    background-color: white;
    color: var(--btn-text);
    font-size: 24px;
    font-weight: bold;
    border: none;
    padding: 16px 40px;
    border-radius: 4px;
    cursor: pointer;
    min-width: 200px;
    box-shadow: 0 6px 0 #ebebeb;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    text-transform: uppercase;
}

#startBtn.running {
    transform: translateY(6px);
    box-shadow: none;
}

.task-info {
    text-align: center;
    margin: 25px 0 20px 0;
}

.task-number {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.task-current {
    font-size: 18px;
}

.task-section {
    width: 100%;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    padding-bottom: 15px;
}

.task-header h2 {
    font-size: 20px;
}

.options-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.task-item {
    background: white;
    color: #555;
    border-radius: 6px;
    padding: 15px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.task-item.active-task::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background-color: #222;
}

.task-check {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #dfdfdf;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.task-item.active-task .task-check {
    background: var(--bg-color);
}

.check-icon {
    width: 14px;
    height: 14px;
}

.task-title {
    flex: 1;
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.task-pomodoros {
    font-weight: bold;
    color: #bbb;
    font-size: 16px;
}

.task-options-item {
    background: white;
    border: 1px solid #dfdfdf;
    color: #888;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-task-btn {
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 15px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.add-task-btn:hover {
    background: rgba(0, 0, 0, 0.2);
}

.add-task-btn .icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
}
