body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
    position: relative;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

.timer-display {
    font-size: 72px;
    font-weight: 300;
    color: #333;
    margin: 30px 0;
    font-variant-numeric: tabular-nums;
}

.status {
    font-size: 20px;
    color: #666;
    margin-bottom: 20px;
    height: 30px;
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

button {
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.start-btn {
    background-color: #4CAF50;
    color: white;
}

.start-btn:hover {
    background-color: #45a049;
}

.pause-btn {
    background-color: #ff9800;
    color: white;
}

.pause-btn:hover {
    background-color: #e68900;
}

.reset-btn {
    background-color: #f44336;
    color: white;
}

.reset-btn:hover {
    background-color: #da190b;
}

.session-info {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    font-size: 16px;
    color: #666;
}

.settings {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.setting-section {
    margin-bottom: 25px;
}

.setting-section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.loop-settings {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.loop-settings label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.loop-count-input {
    width: 60px;
    padding: 5px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    margin-left: 10px;
}

.task-list {
    margin: 20px 0;
}

.task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 10px;
}

.task-item.active {
    background: #e3f2fd;
    border: 2px solid #2196F3;
}

.task-name {
    flex: 1;
    text-align: left;
    padding: 0 10px;
}

.task-duration {
    display: flex;
    align-items: center;
    gap: 5px;
}

.task-duration input {
    width: 60px;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

.task-duration select {
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.delete-task-btn {
    padding: 5px 10px;
    font-size: 14px;
    background-color: #f44336;
    color: white;
    margin-left: 10px;
}

.delete-task-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.delete-task-btn:disabled:hover {
    background-color: #ccc;
}

input[type="radio"]:disabled + label,
input[type="number"]:disabled,
select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sound-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #666;
}

.sound-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.add-task-section {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
}

.add-task-section input {
    flex: 1;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.add-task-section .duration-input {
    width: 60px;
    flex: none;
}

.add-task-section select {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.save-section {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.add-task-btn {
    padding: 8px 16px;
    font-size: 14px;
    background-color: #2196F3;
    color: white;
}

.add-task-btn:hover {
    background-color: #1976D2;
}

.work-mode {
    background-color: #e8f5e9;
}

.break-mode {
    background-color: #fff3e0;
}