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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

h1 {
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.settings-btn, .help-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.settings-btn:hover, .help-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.help-btn {
    background: rgba(76, 175, 80, 0.2);
}

.help-btn:hover {
    background: rgba(76, 175, 80, 0.3);
}

.settings-panel {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.settings-panel.hidden {
    display: none;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.setting-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.setting-group input:focus {
    outline: none;
    border-color: #ff6b6b;
}

.setting-group small {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 0.85rem;
}

main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.timer-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.timer-display {
    margin-bottom: 30px;
}

.time {
    font-size: 4rem;
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

.session-type {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    border-radius: 4px;
    transition: width 1s ease;
    width: 0%;
}

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

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: 2px solid #e0e0e0;
    padding: 13px 28px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover:not(:disabled) {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-complete {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    margin: 0 5px;
}

.btn-complete:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-skip {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    margin: 0 5px;
}

.btn-skip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.timer-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.report-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Canvas confetti handles animations, keeping only celebration message styles */

@keyframes celebrationPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    20% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    40% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0;
    }
}

.session-info {
    display: flex;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.session-info div {
    text-align: center;
}

.session-info span:first-child {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.session-info span:last-child {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.tasks-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.tasks-section h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 1.8rem;
}

.task-input {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.task-input input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.task-input input:focus {
    outline: none;
    border-color: #ff6b6b;
}

.tasks-list {
    max-height: 300px;
    overflow-y: auto;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.task-item:hover {
    background: #e9ecef;
}

.task-item.selected {
    background: linear-gradient(135deg, #ff6b6b15, #4ecdc415);
    border: 2px solid #ff6b6b;
}

.task-item.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

.task-radio {
    margin-right: 10px;
}

.task-text {
    flex: 1;
    font-size: 1rem;
}

.task-actions {
    display: flex;
    gap: 8px;
}

.task-btn {
    background: none;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.complete-btn {
    color: #4caf50;
}

.complete-btn:hover {
    background: #4caf5015;
}

.delete-btn {
    color: #f44336;
}

.delete-btn:hover {
    background: #f4433615;
}

.stats-section {
    grid-column: 1 / -1;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.stats-section h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 1.8rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.activity-log {
    grid-column: 1 / -1;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.activity-log h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5rem;
}

.collapsible-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.collapsible-header:hover {
    color: #ff6b6b;
}

.toggle-icon {
    transition: transform 0.3s ease;
    display: inline-block;
    font-size: 0.8em;
}

.toggle-icon.expanded {
    transform: rotate(90deg);
}

.activity-list {
    max-height: 200px;
    overflow-y: auto;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.activity-list.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.activity-item {
    padding: 12px;
    border-left: 4px solid #ff6b6b;
    background: #f8f9fa;
    margin-bottom: 10px;
    border-radius: 0 8px 8px 0;
}

.activity-time {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.activity-text {
    font-size: 0.95rem;
    color: #333;
}

@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 15px;
    }

    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    h1 {
        font-size: 2rem;
    }
    .header-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    .settings-btn, .help-btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .time {
        font-size: 3rem;
    }

    .timer-controls {
        flex-direction: column;
        align-items: center;
    }

    .timer-actions {
        flex-direction: column;
        align-items: center;
    }

    .session-info {
        flex-direction: column;
        gap: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .report-actions {
        flex-direction: column;
        align-items: center;
    }
}

.hidden {
    display: none;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    max-height: 90vh;
    width: 90%;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 30px;
}

.setup-steps h3 {
    color: #333;
    margin: 25px 0 15px 0;
    font-size: 1.3rem;
    border-left: 4px solid #ff6b6b;
    padding-left: 15px;
}

.setup-steps h3:first-child {
    margin-top: 0;
}

.setup-steps p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.copy-btn {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    margin: 10px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.copy-btn:active {
    transform: translateY(0);
}

.success-message {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 10px;
    margin-top: 25px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 20px;
    }
}

/* Sync Status Indicator */
.sync-status {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sync-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.sync-indicator.stats-sync {
    margin-top: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

#syncStatusIcon {
    font-size: 1rem;
    animation: none;
}

.sync-indicator.syncing #syncStatusIcon {
    animation: spin 1s linear infinite;
}

.sync-indicator.synced #syncStatusIcon {
    color: #4caf50;
}

.sync-indicator.error #syncStatusIcon {
    color: #f44336;
}

.sync-time {
    font-size: 0.8rem;
    color: #888;
    margin-left: auto;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Bulk Selection Styles */
.bulk-select-toggle {
    width: auto;
    padding: 6px 12px;
    margin-top: 10px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
    transition: all 0.2s;
    color: #666;
}

.bulk-select-toggle:hover {
    background: #f5f5f5;
    border-color: #999;
}

.bulk-select-toggle.active {
    background: #f0f0f0;
    border-color: #999;
    color: #333;
}

/* Bulk Actions Bar */
.bulk-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bulk-actions-bar.hidden {
    display: none;
}

.bulk-actions-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bulk-actions-right {
    display: flex;
    gap: 8px;
}

.task-checkbox-main {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

#selectedCount {
    font-weight: 600;
    color: #555;
}

.bulk-action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.bulk-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bulk-action-btn.delete-btn {
    background: #ff6b6b;
    color: white;
}

.bulk-action-btn.delete-btn:hover:not(:disabled) {
    background: #ff5252;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

.bulk-action-btn.archive-btn {
    background: #4ecdc4;
    color: white;
}

.bulk-action-btn.archive-btn:hover:not(:disabled) {
    background: #45b7d1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(78, 205, 196, 0.3);
}

.bulk-action-btn.cancel-btn {
    background: #95a5a6;
    color: white;
}

.bulk-action-btn.cancel-btn:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(149, 165, 166, 0.3);
}

/* Task Checkboxes */
.task-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Task items in selection mode */
.task-item.selection-mode {
    padding-left: 5px;
}

.task-item.selection-mode .task-radio {
    display: none;
}

.task-item.selection-mode .task-checkbox {
    display: inline-block;
}

/* Highlight selected tasks */
.task-item.selected {
    background: linear-gradient(to right, #e3f2fd 0%, #ffffff 100%);
    border-left: 4px solid #2196f3;
}

.task-item.selected:hover {
    background: linear-gradient(to right, #bbdefb 0%, #f5f5f5 100%);
}

/* ========================================
   Settings Panel Sections
   ======================================== */
.settings-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.section-heading {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b6b;
}

/* ========================================
   Sound Settings Styles
   ======================================== */
.sound-setting-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.sound-setting-item:hover {
    border-color: #ff6b6b;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.1);
}

.sound-label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
    font-size: 1rem;
}

.sound-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.file-input {
    display: none;
}

.file-label {
    background: linear-gradient(135deg, #4ecdc4, #45b7d1);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.file-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.file-name {
    flex: 1;
    padding: 8px 12px;
    background: #f0f0f0;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #666;
}

.sound-controls-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 10px;
    margin-top: 10px;
    align-items: end;
}

.control-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.control-item label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
}

.volume-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    outline: none;
    background: linear-gradient(90deg, #e0e0e0 0%, #ff6b6b 100%);
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff6b6b;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 6px rgba(255, 107, 107, 0.4);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff6b6b;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 6px rgba(255, 107, 107, 0.4);
}

.volume-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ff6b6b;
    text-align: center;
}

.duration-input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.duration-input:focus {
    outline: none;
    border-color: #ff6b6b;
}

.test-sound-btn,
.reset-sound-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.test-sound-btn {
    background: linear-gradient(135deg, #4ecdc4, #45b7d1);
    color: white;
}

.test-sound-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.reset-sound-btn {
    background: #f0f0f0;
    color: #666;
}

.reset-sound-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* ========================================
   Pomodoro Cycle Progress Indicator
   ======================================== */
.pomodoro-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0 10px 0;
}

.pomodoro-step {
    position: relative;
    display: flex;
    align-items: center;
}

.pomodoro-step:not(:last-child)::after {
    content: '';
    width: 30px;
    height: 3px;
    background: #e0e0e0;
    position: absolute;
    right: -35px;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.3s ease;
}

.pomodoro-step.completed:not(:last-child)::after {
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    border: 3px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.pomodoro-step.completed .step-circle {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    border-color: #ff6b6b;
    color: white;
}

.pomodoro-step.completed .step-circle::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 1.2rem;
}

.pomodoro-step.active .step-circle {
    background: linear-gradient(135deg, #feca57, #ff9800);
    border-color: #feca57;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(254, 202, 87, 0.7);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(254, 202, 87, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(254, 202, 87, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(254, 202, 87, 0);
    }
}

.pomodoro-text {
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 15px;
}

/* ========================================
   Toast Notification System
   ======================================== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: toastSlideIn 0.3s ease-out;
    border-left: 4px solid #333;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.toast-fade-out {
    animation: toastSlideOut 0.3s ease-out forwards;
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-message {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: #f0f0f0;
    color: #333;
}

.toast.success {
    border-left-color: #4caf50;
}

.toast.success .toast-icon {
    color: #4caf50;
}

.toast.error {
    border-left-color: #f44336;
}

.toast.error .toast-icon {
    color: #f44336;
}

.toast.warning {
    border-left-color: #ff9800;
}

.toast.warning .toast-icon {
    color: #ff9800;
}

.toast.info {
    border-left-color: #2196f3;
}

.toast.info .toast-icon {
    color: #2196f3;
}

/* ========================================
   Responsive Design Updates
   ======================================== */
@media (max-width: 768px) {
    .sound-controls-row {
        grid-template-columns: 1fr;
    }

    .pomodoro-progress {
        gap: 5px;
    }

    .pomodoro-step:not(:last-child)::after {
        width: 15px;
        right: -17px;
    }

    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .toast-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }

    .toast {
        min-width: 0;
    }

    .settings-section {
        padding: 15px;
    }

    .section-heading {
        font-size: 1.1rem;
    }
}