/**
 * Modal System Styles
 * Consistent with the main Pomodoro Timer design
 */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accordion Styles */
.accordion-section {
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-section:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.accordion-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--on-surface);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.accordion-icon {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    font-weight: bold;
    font-family: monospace;
}

.accordion-content {
    padding: 0 1.25rem 1rem;
    max-height: 1000px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

/* Accordion icons are handled via text content change, no transforms needed */

/* Number Input Controls */
.number-input-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.number-input-control:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

.number-input-control:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

.number-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--on-surface);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
    user-select: none;
}

.number-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary);
}

.number-btn:active:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
}

.number-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.number-input-control input[type="number"] {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--on-surface);
    padding: 8px 12px;
    text-align: center;
    font-size: 14px;
    min-width: 60px;
}

.number-input-control input[type="number"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
}

.number-input-control input[type="number"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Hide number input spinners */
.number-input-control input[type="number"]::-webkit-outer-spin-button,
.number-input-control input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.number-input-control input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.modal-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 10000 !important;
    display: block !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.17, 0.84, 0.44, 1);
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.modal-container.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10000 !important;
}

.modal-content {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(20, 25, 35, 0.95) !important;
    border-radius: 0 !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    transform: none !important;
    transition: all 0.3s cubic-bezier(0.17, 0.84, 0.44, 1);
    overflow: hidden !important;
    z-index: 10001 !important;
}

.modal-container.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 2rem 3rem 1.5rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    flex-shrink: 0 !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    width: 100% !important;
    box-sizing: border-box !important;
}

.modal-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--on-surface);
    margin: 0;
    letter-spacing: 0.02em;
}

.modal-close {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--on-surface);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--speed-fast) ease;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Better touch target for mobile */
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}

.modal-close:hover {
    background: rgba(255, 80, 80, 0.2);
    color: rgba(255, 80, 80, 1);
    transform: scale(1.1);
}

.modal-close:focus {
    outline: 2px solid rgba(var(--primary), 0.6);
    outline-offset: 2px;
}

/* Smooth focus transitions for better accessibility */
.modal-content *:focus {
    outline: 2px solid rgba(var(--primary), 0.6);
    outline-offset: 2px;
    transition: outline 0.2s ease;
}

.modal-body {
    padding: 2rem 3rem 3rem !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex: 1 !important;
    scroll-behavior: smooth;
    width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(15, 20, 30, 0.3) !important;
}

/* Force all modals to be fullscreen */
.modal-container,
.modal-container *,
.modal-content,
.modal-overlay,
.modal-header,
.modal-body {
    box-sizing: border-box !important;
}

/* Settings Form Styles - Optimized for fullscreen */
.settings-form {
    max-width: none !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    padding: 0 !important;
}

/* Presets Section */
.presets-section {
    margin-bottom: 1rem;
    position: relative;
}

.presets-section h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.02em;
    padding: 0.8rem 1.2rem;
    background: rgba(var(--primary), 0.1);
    border-radius: 12px;
    border: 1px solid rgba(var(--primary), 0.3);
    box-shadow: 0 2px 8px rgba(var(--primary), 0.2);
}

.presets-section {
    text-align: center;
}

.presets-grid {
    display: inline-grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 0 auto 1rem auto;
    justify-items: center;
    max-width: 800px;
}

/* Desktop optimization for presets */
@media (min-width: 1200px) {
    .presets-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        max-width: 900px;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .presets-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        max-width: 700px;
    }
}

.preset-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.2rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    cursor: pointer;
    transition: all var(--speed-fast) ease;
    font-family: 'Outfit', sans-serif;
    text-align: center;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

.preset-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--primary), 0.1),
        transparent
    );
    transition: left 0.6s ease;
}

.preset-btn:hover::before {
    left: 100%;
}

.preset-btn:hover {
    border-color: rgba(var(--primary), 0.4);
    background: rgba(var(--primary), 0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--primary), 0.2);
}

.preset-btn.active {
    border-color: rgba(var(--session), 0.6);
    background: rgba(var(--session), 0.15);
    box-shadow: 0 5px 20px rgba(var(--session), 0.3);
}

.preset-btn.active .preset-icon {
    color: rgba(var(--session), 1);
    text-shadow: 0 0 10px rgba(var(--session), 0.4);
}

.preset-btn.active .preset-label {
    color: rgba(var(--session), 1);
}

.preset-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    transition: all var(--speed-fast) ease;
}

.preset-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 0.3rem;
    letter-spacing: 0.02em;
    transition: color var(--speed-fast) ease;
}

.preset-desc {
    font-size: 0.75rem;
    color: var(--on-surface-dim);
    font-weight: 500;
    line-height: 1.3;
}

/* Add decorative separator after presets */
.presets-section::after {
    content: '';
    position: absolute;
    bottom: -1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, 
        rgba(var(--primary), 0.2), 
        rgba(var(--primary), 0.6), 
        rgba(var(--primary), 0.2));
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(var(--primary), 0.3);
}

.settings-section {
    margin-bottom: 1rem;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Add visual separator between sections */
.settings-section:not(:last-of-type)::after {
    content: '';
    position: absolute;
    bottom: -1.25rem;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 75%, 
        transparent 100%);
}

.settings-section h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--on-surface);
    margin: -2rem -2rem 2rem -2rem;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, rgba(var(--primary), 0.1), rgba(var(--primary), 0.05));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all var(--speed-fast) ease;
}

.settings-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.settings-row.checkbox-row {
    justify-content: flex-start;
}

.settings-row label {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: var(--on-surface);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-row input[type="number"],
.settings-row input[type="text"] {
    padding: 0.8rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(20, 25, 35, 0.8);
    color: var(--on-surface);
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    width: 120px;
    transition: all var(--speed-fast) ease;
}

.settings-row input[type="text"] {
    width: 180px;
}

.settings-row input[type="number"]:focus,
.settings-row input[type="text"]:focus {
    outline: none;
    border-color: rgba(var(--primary), 0.6);
    background: rgba(var(--primary), 0.1);
    box-shadow: 0 0 15px rgba(var(--primary), 0.3);
}

.settings-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: rgba(var(--primary), 1);
    cursor: pointer;
}

.settings-row input[type="range"] {
    flex: 1;
    margin-right: 1rem;
    accent-color: rgba(var(--primary), 1);
}

#volume-display {
    font-weight: 600;
    color: rgba(var(--primary), 1);
    min-width: 50px;
    text-align: right;
}

/* Program Preview Styles */
.program-preview {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(var(--primary), 0.1), rgba(var(--primary), 0.05));
    border-radius: 20px;
    border: 2px solid rgba(var(--primary), 0.3);
    box-shadow: 0 8px 32px rgba(var(--primary), 0.2);
    position: relative;
    backdrop-filter: blur(10px);
}

/* Add decorative separator after program preview */
.program-preview::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, 
        rgba(var(--primary), 0.3), 
        rgba(var(--primary), 0.8), 
        rgba(var(--primary), 0.3));
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(var(--primary), 0.4);
}

.program-preview h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: 0.02em;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-label {
    font-size: 0.9rem;
    color: var(--on-surface-dim);
    font-weight: 500;
}

.preview-value {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(var(--primary), 1);
    text-shadow: 0 0 8px rgba(var(--primary), 0.3);
}

.settings-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn {
    padding: 0.8rem 2rem;
    border: 2px solid transparent;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--speed-fast) ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-primary {
    background: rgba(var(--session), 0.2);
    border-color: rgba(var(--session), 0.6);
    color: rgba(var(--session), 1);
}

.btn-primary:hover {
    background: rgba(var(--session), 0.3);
    border-color: rgba(var(--session), 0.8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--session), 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--on-surface);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Modal Button Styles (for Stopwatch mode) */
.modal-btn {
    padding: 0.8rem 2rem;
    border: 2px solid transparent;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--speed-fast) ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--on-surface);
}

.modal-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Schedule Modal Styles */
.schedule-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Program Overview Section */
.schedule-overview {
    margin-bottom: 2rem;
}

.schedule-overview h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 0.02em;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.overview-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: rgba(20, 25, 35, 0.7);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all var(--speed-fast) ease;
}

.overview-item:hover {
    border-color: rgba(var(--primary), 0.3);
    background: rgba(var(--primary), 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.overview-icon {
    font-size: 2.5rem;
    margin-right: 1.2rem;
    opacity: 0.9;
}

.overview-info {
    display: flex;
    flex-direction: column;
}

.overview-label {
    font-size: 0.9rem;
    color: var(--on-surface-dim);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.overview-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--on-surface);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.schedule-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(var(--primary), 0.08), rgba(var(--primary), 0.03));
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.summary-label {
    font-size: 0.9rem;
    color: var(--on-surface-dim);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.summary-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--on-surface);
}

.summary-value.current-status {
    color: rgba(var(--primary), 1);
    text-shadow: 0 0 10px rgba(var(--primary), 0.4);
}

.schedule-list {
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.schedule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--speed-fast) ease;
    position: relative;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-item:hover {
    background: linear-gradient(135deg, rgba(var(--primary), 0.05), rgba(var(--primary), 0.02));
    transform: translateX(4px);
}

.schedule-item.current-item {
    background: linear-gradient(135deg, rgba(var(--primary), 0.2), rgba(var(--primary), 0.1));
    border-color: rgba(var(--primary), 0.4);
    box-shadow: 0 0 20px rgba(var(--primary), 0.3);
    transform: translateX(6px);
}

.schedule-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--on-surface);
    min-width: 120px;
}

.time-separator {
    color: var(--on-surface-dim);
}

.schedule-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: center;
}

.schedule-info .schedule-label {
    text-align: center;
    width: 100%;
}

.schedule-icon {
    font-size: 1.5rem;
}

.schedule-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--on-surface);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.schedule-actions {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 2rem auto 0 !important;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    gap: 1.5rem;
    flex-wrap: wrap;
    width: fit-content !important;
    max-width: 100%;
    text-align: center;
}

/* Schedule actions wrapper for centering */
.schedule-actions-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Chart Styles for Statistics Modal */
.chart-content {
    position: relative;
}

.chart-panel {
    display: none;
}

.chart-panel.active {
    display: block;
}

.chart-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.chart-header h3 {
    color: var(--on-surface);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.chart-header p {
    color: var(--on-surface-dim);
    font-size: 0.9rem;
}

.chart-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.pie-chart-wrapper {
    max-width: 400px;
    margin: 0 auto;
}

.chart-wrapper canvas {
    max-width: 100%;
    height: auto !important;
}

/* Chart tabs */
.chart-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.chart-tab {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: var(--on-surface);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.chart-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(var(--primary), 0.3);
    transform: translateY(-2px);
}

.chart-tab.active {
    background: linear-gradient(135deg, rgba(var(--primary), 0.2), rgba(var(--primary), 0.1));
    border-color: rgba(var(--primary), 0.5);
    color: rgba(var(--primary), 1);
    box-shadow: 0 0 15px rgba(var(--primary), 0.3);
}

/* Summary Stats Cards */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.summary-card:hover {
    background: linear-gradient(135deg, rgba(var(--primary), 0.1), rgba(var(--primary), 0.05));
    border-color: rgba(var(--primary), 0.3);
    transform: translateY(-2px);
}

.summary-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--primary), 0.2), rgba(var(--primary), 0.1));
    border-radius: 50%;
}

.summary-info {
    flex: 1;
}

.summary-label {
    font-size: 0.9rem;
    color: var(--on-surface-dim);
    margin-bottom: 0.25rem;
}

.summary-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--on-surface);
}

/* Time range selector */
.time-range-selector {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.time-range-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: var(--on-surface);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.time-range-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(var(--primary), 0.3);
    transform: translateY(-2px);
}

.time-range-btn.active {
    background: linear-gradient(135deg, rgba(var(--primary), 0.2), rgba(var(--primary), 0.1));
    border-color: rgba(var(--primary), 0.5);
    color: rgba(var(--primary), 1);
    box-shadow: 0 0 15px rgba(var(--primary), 0.3);
}

/* Calendar grid styles */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    max-width: 400px;
    margin: 0 auto;
}

.calendar-day {
    aspect-ratio: 1;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--on-surface);
    transition: all 0.2s ease;
}

.calendar-day:hover {
    transform: scale(1.1);
}

/* Heatmap grid styles */
.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 2px;
    max-width: 800px;
    margin: 0 auto;
}

.heatmap-hour {
    aspect-ratio: 1;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--on-surface);
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.heatmap-hour:hover {
    transform: scale(1.1);
    border-color: rgba(var(--primary), 0.5);
}

/* Loading and error states */
.stats-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid rgba(var(--primary), 1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.stats-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.stats-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    color: var(--on-surface-dim);
}

/* Body scroll lock when modal is open */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    /* Prevent overscroll on iOS Safari */
    overscroll-behavior: none;
    /* Prevent rubber band effect */
    -webkit-overflow-scrolling: touch;
}

/* Desktop fullscreen optimizations */
@media (min-width: 1200px) {
    .settings-form {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        max-width: 1000px;
        margin: 0 auto;
    }
    
    .mode-selector-section {
        width: 100%;
    }
    
    .program-preview {
        width: 100%;
    }
    
    .presets-section {
        width: 100%;
        text-align: center;
    }
    
    .settings-actions {
        width: 100%;
        justify-content: center;
    }
    
    /* Settings in vertical layout */
    .accordion-section {
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .settings-form {
        max-width: 900px;
        margin: 0 auto;
        padding: 0 2rem;
    }
    
    .modal-body {
        padding: 2rem 3rem;
    }
    
    /* Program modal optimizations for tablet */
    .schedule-content {
        max-width: 900px;
    }
    
    .schedule-summary {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.25rem;
        padding: 1.75rem;
    }
    
    .schedule-item {
        padding: 1rem 1.5rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-container {
        padding: 0;
        align-items: center;
    }
    
    .modal-content {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        height: calc(var(--vh, 1vh) * 100);
        border-radius: 0; /* No border radius for fullscreen */
    }

    .schedule-content {
        min-width: auto; /* Mobile'da minimum genişlik kısıtlamasını kaldır */
        max-width: 100%;
        gap: 1.5rem;
    }
    
    .schedule-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .schedule-list {
        border-radius: 16px;
    }
    
    .schedule-item {
        padding: 1rem 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .schedule-item:hover,
    .schedule-item.current-item {
        transform: none; /* Remove slide effect on mobile */
    }
    
    .schedule-time {
        align-self: stretch;
        justify-content: center;
        font-weight: 600;
        color: rgba(var(--primary), 0.9);
    }
    
    .schedule-info {
        align-self: stretch;
        text-align: center;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.6rem;
    }
    
    .modal-body {
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .settings-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .settings-row.checkbox-row {
        flex-direction: row;
        align-items: center;
    }
    
    .settings-row input[type="number"],
    .settings-row input[type="text"] {
        width: 100%;
        max-width: 200px;
    }
    
    .preview-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .preview-item {
        padding: 0.7rem 0.8rem;
    }
    
    .program-preview h4 {
        font-size: 1.1rem;
    }
    
    .presets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .preset-btn {
        padding: 1rem 0.6rem;
        min-height: 100px;
    }
    
    .preset-icon {
        font-size: 1.6rem;
        margin-bottom: 0.4rem;
    }
    
    .preset-label {
        font-size: 0.8rem;
    }
    
    .preset-desc {
        font-size: 0.7rem;
    }
    
    .settings-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .btn {
        width: 100%;
        padding: 1rem 2rem;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .overview-item {
        padding: 1.2rem;
    }
    
    .overview-icon {
        font-size: 2rem;
        margin-right: 1rem;
    }
    
    .overview-value {
        font-size: 1.2rem;
    }
    
    .schedule-overview h3 {
        font-size: 1.4rem;
    }

    .schedule-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        padding: 1rem;
    }
    
    .schedule-info {
        justify-content: flex-start;
        width: 100%;
    }
    

    /* Program modalı kopyalama butonları için responsive kurallar */
    .schedule-actions-wrapper {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .schedule-actions {
        flex-wrap: wrap !important;
        gap: 0.8rem;
        justify-content: center !important;
        padding: 1rem 1.5rem;
        margin: 1.5rem auto 0 !important;
        width: fit-content !important;
        max-width: 100%;
        text-align: center;
    }

    .schedule-actions .btn,
    .schedule-actions .modal-btn {
        flex: 1;
        min-width: 120px;
        max-width: 180px;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Mobile chart optimizations */
    .chart-wrapper {
        padding: 1rem;
        min-height: 250px;
    }
    
    .chart-tabs {
        gap: 0.3rem;
    }
    
    .chart-tab {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .summary-card {
        padding: 1.2rem;
    }
    
    .time-range-selector {
        gap: 0.3rem;
    }
    
    .time-range-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .modal-container {
        padding: 0;
        align-items: center;
    }
    
    .modal-content {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        height: calc(var(--vh, 1vh) * 100);
        border-radius: 0; /* No border radius for fullscreen */
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    }
    
    .modal-header h2 {
        font-size: 1.6rem;
    }
    
    .modal-body {
        padding: 1rem 1.5rem 2rem;
    }
    
    /* Mobile optimized settings form */
    .settings-form {
        gap: 1.5rem;
    }
    
    .settings-section {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .settings-section h3 {
        margin: -1.5rem -1.5rem 1.5rem -1.5rem;
        padding: 1rem 1.5rem;
        font-size: 1.2rem;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }
    
    .mode-selector-section {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .presets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        max-width: 400px;
    }
    
    .settings-actions {
        margin-top: 1.5rem;
        padding: 1.5rem;
        border-radius: 12px;
        gap: 1rem;
    }
    
    .settings-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .settings-section {
        margin-bottom: 2rem;
    }
    
    .schedule-time {
        font-size: 1rem;
        min-width: auto;
    }
    
    .schedule-label {
        font-size: 0.9rem;
    }

    /* Program modalı butonları için responsive kurallar */
    .schedule-actions-wrapper {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .schedule-actions {
        flex-direction: column !important;
        gap: 0.6rem;
        align-items: stretch;
        padding: 0.75rem 1rem;
        margin: 1rem auto 0 !important;
        width: 100% !important;
        max-width: 300px;
        text-align: center;
    }

    .schedule-actions .btn,
    .schedule-actions .modal-btn {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }
}

/* Custom scrollbar for modal content - Always visible */
.modal-body {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(var(--primary), 0.6) rgba(255, 255, 255, 0.1); /* Firefox */
}

.modal-body::-webkit-scrollbar {
    width: 8px;
    -webkit-appearance: none;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    /* Always show track */
    -webkit-box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.1);
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(var(--primary), 0.6);
    border-radius: 4px;
    /* Ensure thumb is always visible */
    min-height: 20px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary), 0.8);
}

/* Force scrollbar to always be visible */
.modal-body {
    overflow-y: scroll !important; /* Force scrollbar to always show */
}

/* Smooth modal transitions */
.modal-container {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: all 0.3s cubic-bezier(0.17, 0.84, 0.44, 1);
}

.modal-container.active {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Transition Modal Styles */
.transition-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.17, 0.84, 0.44, 1);
}

.transition-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.transition-modal-content {
    position: relative;
    background: var(--surface);
    border-radius: 20px;
    max-width: 450px;
    width: 90vw;
    max-height: calc(100vh - 4rem);
    max-height: calc(100dvh - 4rem); /* Ensure transition modals also stay above browser bars */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.17, 0.84, 0.44, 1);
    overflow-y: auto; /* Allow scrolling if content is too long */
}

.transition-modal.active .transition-modal-content {
    transform: scale(1) translateY(0);
}

.transition-modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.transition-modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: rgba(var(--break), 1);
    text-shadow: 0 0 20px rgba(var(--break), 0.4);
    animation: pulse 2s infinite;
}

/* SESSION'dan BREAK'e geçerken - BREAK rengi (turuncu) kullan */
.session-to-break .transition-modal-icon {
    color: rgba(var(--break), 1);
    text-shadow: 0 0 20px rgba(var(--break), 0.4);
}

/* BREAK'tan SESSION'e geçerken - SESSION rengi (yeşil) kullan */
.break-to-session .transition-modal-icon {
    color: rgba(var(--session), 1);
    text-shadow: 0 0 20px rgba(var(--session), 0.4);
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.05);
    }
}

.transition-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.transition-modal-message {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--on-surface-dim);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.transition-modal-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.transition-stat {
    text-align: center;
}

.transition-stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(var(--session), 1);
    text-shadow: 0 0 10px rgba(var(--session), 0.4);
    margin-bottom: 0.3rem;
}

.transition-stat-label {
    font-size: 0.8rem;
    color: var(--on-surface-dim);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sonraki mod yazısının rengini hedef moda göre ayarla */
.session-to-break .transition-stat:nth-child(2) .transition-stat-value {
    color: rgba(var(--break), 1);
    text-shadow: 0 0 10px rgba(var(--break), 0.4);
}

.break-to-session .transition-stat:nth-child(2) .transition-stat-value {
    color: rgba(var(--session), 1);
    text-shadow: 0 0 10px rgba(var(--session), 0.4);
}

/* Mevcut süre yazısının rengini mevcut moda göre ayarla */
.session-to-break .transition-stat:nth-child(1) .transition-stat-value {
    color: rgba(var(--session), 1);
    text-shadow: 0 0 10px rgba(var(--session), 0.4);
}

.break-to-session .transition-stat:nth-child(1) .transition-stat-value {
    color: rgba(var(--break), 1);
    text-shadow: 0 0 10px rgba(var(--break), 0.4);
}

.transition-modal-actions {
    display: flex;
    gap: 1rem;
    padding: 0 2rem 2rem;
    justify-content: center;
}

.transition-btn {
    padding: 0.8rem 2rem;
    border: 2px solid transparent;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--speed-fast) ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 120px;
}

.transition-btn-confirm {
    background: rgba(var(--session), 0.2);
    border-color: rgba(var(--session), 0.6);
    color: rgba(var(--session), 1);
}

.transition-btn-confirm:hover {
    background: rgba(var(--session), 0.3);
    border-color: rgba(var(--session), 0.8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--session), 0.4);
}

/* SESSION'dan BREAK'e geçerken - BREAK rengi (turuncu) kullan */
.session-to-break .transition-btn-confirm {
    background: rgba(var(--break), 0.2);
    border-color: rgba(var(--break), 0.6);
    color: rgba(var(--break), 1);
}

.session-to-break .transition-btn-confirm:hover {
    background: rgba(var(--break), 0.3);
    border-color: rgba(var(--break), 0.8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--break), 0.4);
}

/* BREAK'tan SESSION'e geçerken - SESSION rengi (yeşil) kullan */
.break-to-session .transition-btn-confirm {
    background: rgba(var(--session), 0.2);
    border-color: rgba(var(--session), 0.6);
    color: rgba(var(--session), 1);
}

.break-to-session .transition-btn-confirm:hover {
    background: rgba(var(--session), 0.3);
    border-color: rgba(var(--session), 0.8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--session), 0.4);
}

.transition-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--on-surface);
}

.transition-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .transition-modal-content {
        max-height: calc(100vh - 4rem);
        max-height: calc(100dvh - 4rem); /* Dynamic viewport height for tablets */
    }
}

@media (max-width: 480px) {
    .transition-modal-content {
        max-width: 95vw;
        margin: 1rem;
        max-height: calc(100vh - 6rem);
        max-height: calc(100dvh - 6rem); /* Extra space for mobile browser bars */
    }
    
    .transition-modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .transition-modal-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .transition-modal-title {
        font-size: 1.2rem;
    }
    
    .transition-modal-message {
        font-size: 0.9rem;
    }
    
    .transition-modal-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .transition-modal-actions {
        flex-direction: column;
        padding: 0 1.5rem 1.5rem;
    }
    
    .transition-btn {
        width: 100%;
        padding: 1rem 2rem;
    }
}

/* Reset Confirmation Modal Styles */
.reset-confirmation-modal .transition-modal-icon {
    color: rgba(255, 80, 80, 1); /* Same red color as reset button */
    text-shadow: 0 0 20px rgba(255, 80, 80, 0.4);
    font-size: 3.5rem;
}

/* Delete Session Modal Styles */
#delete-session-modal .transition-modal-icon {
    color: rgba(255, 80, 80, 1); /* Red color for deletion */
    text-shadow: 0 0 20px rgba(255, 80, 80, 0.4);
    font-size: 3.5rem;
}

.reset-progress-stats {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reset-stat-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 1rem;
    text-align: center;
}

.reset-stat-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.reset-stat-item {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--on-surface-dim);
    line-height: 1.4;
    padding-left: 0.5rem;
}

.transition-btn-copy {
    background: rgba(var(--session), 0.2);
    border-color: rgba(var(--session), 0.6);
    color: rgba(var(--session), 1);
}

.transition-btn-copy:hover {
    background: rgba(var(--session), 0.3);
    border-color: rgba(var(--session), 0.8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--session), 0.4);
}

.transition-btn-reset {
    background: rgba(255, 80, 80, 0.15);
    border-color: rgba(255, 80, 80, 0.6);
    color: rgba(255, 80, 80, 1);
}

.transition-btn-reset:hover {
    background: rgba(255, 80, 80, 0.25);
    border-color: rgba(255, 80, 80, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 80, 80, 0.4);
}

/* AFK Modals - align colors with AFK button (amber/yellow) */
#afk-confirmation-modal .transition-modal-icon,
#afk-exit-confirmation-modal .transition-modal-icon {
    color: rgba(255, 193, 7, 1);
    text-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
}

#afk-confirmation-modal .transition-btn-copy,
#afk-exit-confirmation-modal .transition-btn-copy {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.6);
    color: rgba(255, 193, 7, 1);
}

#afk-confirmation-modal .transition-btn-copy:hover,
#afk-exit-confirmation-modal .transition-btn-copy:hover {
    background: rgba(255, 193, 7, 0.3);
    border-color: rgba(255, 193, 7, 0.8);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

#afk-confirmation-modal .transition-btn-cancel,
#afk-exit-confirmation-modal .transition-btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

#afk-confirmation-modal .transition-btn-confirm,
#afk-exit-confirmation-modal .transition-btn-confirm {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.6);
    color: rgba(255, 193, 7, 1);
}

#afk-confirmation-modal .transition-btn-confirm:hover,
#afk-exit-confirmation-modal .transition-btn-confirm:hover {
    background: rgba(255, 193, 7, 0.3);
    border-color: rgba(255, 193, 7, 0.8);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

/* Reset modal actions layout */
.reset-confirmation-modal .transition-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 2rem 2rem;
}

.reset-confirmation-modal .transition-modal-actions .transition-btn-copy {
    width: 100%;
    margin-bottom: 0.5rem;
}

.reset-confirmation-modal .transition-modal-actions .reset-bottom-actions {
    display: flex;
    gap: 1rem;
}

.reset-confirmation-modal .transition-modal-actions .transition-btn-cancel,
.reset-confirmation-modal .transition-modal-actions .transition-btn-reset {
    flex: 1;
}

@media (max-width: 480px) {
    .reset-confirmation-modal .transition-modal-actions .transition-btn-cancel,
    .reset-confirmation-modal .transition-modal-actions .transition-btn-reset {
        width: 100%;
        margin-right: 0;
    }
    
    .reset-progress-stats {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .reset-stat-item {
        font-size: 0.9rem;
    }
}

/* Mode Selector Styles */
.mode-selector-section {
    margin-bottom: 3rem;
    padding: 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(var(--primary), 0.08), rgba(var(--primary), 0.03));
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mode-selector-section h3 {
    margin: 0 0 1.5rem 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.mode-toggle-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mode-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mode-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mode-option:hover::before {
    opacity: 1;
}

.mode-option:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.mode-option.active {
    border-color: rgb(var(--session));
    background: rgba(var(--session), 0.1);
    box-shadow: 0 0 20px rgba(var(--session), 0.2);
}

.mode-option.active::before {
    background: linear-gradient(135deg, rgba(var(--session), 0.1), transparent);
    opacity: 1;
}

.mode-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mode-option.active .mode-icon {
    background: rgba(var(--session), 0.2);
    box-shadow: 0 0 15px rgba(var(--session), 0.3);
}

.mode-content {
    flex: 1;
}

.mode-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
}

.mode-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.mode-option.active .mode-title {
    color: rgb(var(--session));
}

.mode-option.active .mode-desc {
    color: rgba(var(--session), 0.8);
}

/* Hide sections when in stopwatch mode */
.presets-section.hidden,
.program-preview.hidden,
.accordion-section.hidden,
.stopwatch-mode-info.hidden {
    display: none;
}

/* Stopwatch Mode Info Styles */
.stopwatch-mode-info {
    margin: 2rem 0;
}

.info-card {
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(var(--session), 0.2);
    box-shadow: 0 0 15px rgba(var(--session), 0.3);
}

.info-header h3 {
    margin: 0;
    color: rgb(var(--session));
    font-size: 1.3rem;
    font-weight: 600;
}

/* Auth info message for reset modal */
.auth-info-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    animation: fadeIn 0.3s ease-out;
}

.auth-info-message .info-icon {
    font-size: 1.25rem;
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.auth-info-message .info-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.info-content {
    padding: 1rem 1.5rem 1.5rem;
}

.info-content p {
    margin: 0 0 1rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
}

.info-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.info-content li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.4;
}

.info-content li:first-child {
    padding-top: 0;
}

.info-content li:last-child {
    padding-bottom: 0;
}

/* Responsive design for mode selector */
@media (max-width: 768px) {
    .mode-toggle-container {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .mode-option {
        padding: 1.25rem;
        gap: 0.75rem;
    }
    
    .mode-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.75rem;
    }
    
    .mode-title {
        font-size: 1.1rem;
    }
    
    .mode-desc {
        font-size: 0.85rem;
    }
}

/* ======================================
   Auth Modal Styles
   ====================================== */


/* Auth Modal */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.auth-modal .modal-content {
    background: var(--surface);
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.auth-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-modal .modal-header h2 {
    margin: 0;
    color: var(--on-surface);
    font-size: 1.5rem;
    font-weight: 700;
}

.auth-modal .close-btn {
    background: none;
    border: none;
    color: var(--on-surface-dim);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.auth-modal .close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--on-surface);
}

/* Auth Form */
.auth-modal input {
    width: 100%;
    padding: 1rem;
    margin: 0.5rem 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--on-surface);
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.auth-modal input::placeholder {
    color: var(--on-surface-dim);
}

.auth-modal input:focus {
    outline: none;
    border-color: rgba(var(--primary), 0.6);
    background: rgba(var(--primary), 0.1);
    box-shadow: 0 0 10px rgba(var(--primary), 0.2);
}

.auth-modal #auth-submit {
    width: 100%;
    margin: 1rem 0 0.5rem 0;
}

.auth-modal #auth-switch {
    text-align: center;
    margin-top: 1rem;
    color: var(--on-surface-dim);
    font-size: 0.9rem;
}

.auth-modal #auth-switch a {
    color: rgba(var(--primary), 1);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.auth-modal #auth-switch a:hover {
    text-decoration: underline;
    color: rgba(var(--primary), 0.8);
}

/* Loading and Error States */
.auth-modal #auth-loading {
    text-align: center;
    padding: 2rem 0;
    color: var(--on-surface-dim);
}

.auth-modal #auth-error {
    background: rgba(255, 80, 80, 0.1);
    border: 1px solid rgba(255, 80, 80, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.auth-modal #auth-error-message {
    color: rgba(255, 80, 80, 1);
    margin: 0;
    font-size: 0.9rem;
}


/* Responsive Auth Modal */
@media (max-width: 768px) {
    
    .auth-modal .modal-content {
        padding: 1.5rem;
        max-width: 350px;
    }
    
    .auth-modal .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .auth-modal input {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    
    .auth-modal .modal-content {
        padding: 1.25rem;
        width: 95%;
    }
}

/* Date Selector Styles */
.date-selector-container {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.date-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.date-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--on-surface);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
    user-select: none;
}

.date-nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

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

.date-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.date-picker-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.date-picker {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.selected-date-display {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 40px;
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--on-surface);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.selected-date-display:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Update stats labels for dynamic content */
#stats-date-label {
    transition: all 0.2s ease;
}

#sessions-title {
    transition: all 0.2s ease;
}

/* Responsive adjustments for date selector */
@media (max-width: 768px) {
    .date-navigation {
        gap: 0.5rem;
    }
    
    .date-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .selected-date-display {
        min-width: 150px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* All modals now use unified fullscreen system */

/* Save Button Loading Styles */
.btn-loading {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Button loading state */
.transition-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

/* Sync Button Styles */
.sync-session-btn {
    background: #3742fa;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-right: 4px;
}

.sync-session-btn:hover {
    background: #2f3542;
    transform: scale(1.05);
}

.sync-session-btn:disabled {
    background: #a4b0be;
    cursor: not-allowed;
    transform: none;
}

/* Unsynced Session Styles */
.session-item.unsynced {
    border-left: 4px solid #ff9f43;
    background: rgba(255, 159, 67, 0.05);
}

.session-item.unsynced .session-type {
    color: #ff6348;
    font-weight: 500;
}

/* Pending Sync Section Styles */
#pending-sync-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 2px dashed #ff9f43;
    border-radius: 12px;
    background: rgba(255, 159, 67, 0.03);
}

#pending-sync-section h3 {
    color: #ff6348;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.pending-sessions-info {
    margin-bottom: 1rem;
}

.pending-sessions-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Pending Session Item Styles */
.session-item.pending {
    border-left: 4px solid #f39c12;
    background: rgba(243, 156, 18, 0.08);
    border-radius: 8px;
}

.session-item.pending .session-type {
    color: #e67e22;
    font-weight: 600;
}

.session-item.pending .sync-session-btn {
    background: #f39c12;
    animation: pulse 2s infinite;
}

.session-item.pending .sync-session-btn:hover {
    background: #e67e22;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(243, 156, 18, 0); }
    100% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0); }
}

/* Settings Section Separator */
.settings-section-separator {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 20%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0.1) 80%, 
        transparent 100%
    );
    margin: 2rem 0;
    border-radius: 1px;
    position: relative;
}

.settings-section-separator::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1px;
}

.settings-section-separator::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1px;
}

/* Session Details Styles */
.session-details-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    margin: 1.5rem 0;
    backdrop-filter: blur(10px);
}

.session-details-header {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 0.02em;
}

.session-details-summary {
    margin-bottom: 2rem;
}

.detail-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--on-surface);
    transition: all 0.3s ease;
}

.detail-summary-item:hover {
    background: rgba(var(--primary), 0.08);
    border-color: rgba(var(--primary), 0.2);
    transform: translateY(-1px);
}

.detail-summary-item:last-child {
    margin-bottom: 0;
}

.pomodoro-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.setting-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.setting-card:hover {
    background: rgba(var(--primary), 0.08);
    border-color: rgba(var(--primary), 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.setting-icon {
    font-size: 1.5rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--primary), 0.2);
    box-shadow: 0 0 15px rgba(var(--primary), 0.3);
}

.setting-info {
    flex: 1;
}

.setting-label {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
}

.setting-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(var(--primary), 1);
    text-shadow: 0 0 8px rgba(var(--primary), 0.3);
}

.session-details-list {
    margin-top: 1.5rem;
}

.session-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.session-detail-item:hover {
    background: rgba(var(--primary), 0.05);
    border-color: rgba(var(--primary), 0.15);
    transform: translateX(4px);
}

.session-detail-item:last-child {
    margin-bottom: 0;
}

.detail-time {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--on-surface);
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-type {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(var(--primary), 1);
    flex: 1;
    text-align: center;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-duration {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--on-surface-dim);
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design for Session Details */
@media (max-width: 768px) {
    .session-details-container {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .session-details-header {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }
    
    .detail-summary-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .pomodoro-settings-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin: 1.5rem 0;
    }
    
    .setting-card {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .setting-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
    
    .setting-label {
        font-size: 0.9rem;
    }
    
    .setting-value {
        font-size: 1rem;
    }
    
    .session-detail-item {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        text-align: left;
    }
    
    .detail-time {
        font-size: 0.85rem;
        min-width: auto;
        align-self: stretch;
        text-align: center;
        background: rgba(var(--primary), 0.1);
        padding: 0.25rem 0.5rem;
        border-radius: 6px;
    }
    
    .detail-type {
        font-size: 0.9rem;
        text-align: left;
        flex: none;
        align-self: stretch;
        background: rgba(var(--primary), 0.05);
        padding: 0.25rem 0.5rem;
        border-radius: 6px;
    }
    
    .detail-duration {
        font-size: 0.85rem;
        min-width: auto;
        text-align: center;
        align-self: stretch;
        background: rgba(255, 255, 255, 0.05);
        padding: 0.25rem 0.5rem;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .session-details-container {
        padding: 1rem;
        margin: 0.75rem 0;
    }
    
    .session-details-header {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .detail-summary-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .pomodoro-settings-grid {
        gap: 0.5rem;
        margin: 1rem 0;
    }
    
    .setting-card {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .setting-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    
    .setting-label {
        font-size: 0.85rem;
    }
    
    .setting-value {
        font-size: 0.9rem;
    }
    
    .session-detail-item {
        padding: 0.5rem 0.75rem;
        gap: 0.25rem;
    }
    
    .detail-time {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
    
    .detail-type {
        font-size: 0.85rem;
        padding: 0.2rem 0.4rem;
    }
    
    .detail-duration {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Real-time Sync Info Styles */
.sync-info-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}

.sync-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #9333ea, #3b82f6);
    animation: syncPulse 2s ease-in-out infinite;
}

@keyframes syncPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.sync-info-section h3 {
    color: #3b82f6;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sync-info-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sync-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sync-info-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.sync-icon {
    font-size: 1.2rem;
    min-width: 1.5rem;
    text-align: center;
}

.sync-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive design for sync info */
@media (max-width: 768px) {
    .sync-info-section {
        padding: 1rem;
        margin: 0.75rem 0;
    }
    
    .sync-info-section h3 {
        font-size: 1rem;
    }
    
    .sync-text {
        font-size: 0.85rem;
    }
}

/* ===============================================
   SYNC INFO POPUP STYLES
   =============================================== */

.sync-info-popup {
    position: fixed;
    top: 80px;
    left: 80px;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    max-width: 350px;
    min-width: 300px;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.sync-info-popup.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.sync-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sync-popup-header h3 {
    color: var(--on-surface);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sync-popup-close {
    background: none;
    border: none;
    color: var(--on-surface-dim);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
}

.sync-popup-close:hover {
    color: var(--on-surface);
    background: rgba(255, 255, 255, 0.1);
}

.sync-popup-content {
    padding: 1.5rem;
}

.sync-popup-intro {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(var(--primary), 0.1), rgba(var(--session), 0.05));
    border-radius: 8px;
    border: 1px solid rgba(var(--primary), 0.2);
}

.sync-popup-intro p {
    color: var(--on-surface);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.sync-popup-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.sync-popup-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.sync-popup-feature:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(var(--primary), 0.3);
}

.sync-popup-icon {
    font-size: 1.2rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary), 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.sync-popup-text {
    color: var(--on-surface);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
}

.sync-popup-status {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sync-popup-status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.sync-popup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
    animation: syncPulse 2s ease-in-out infinite;
}

.sync-popup-dot.offline {
    background: #f44336;
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.6);
}

.sync-popup-status-text {
    color: var(--on-surface);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Mobile responsive for popup */
@media (max-width: 768px) {
    .sync-info-popup {
        top: 70px;
        left: 10px;
        right: 10px;
        max-width: none;
        min-width: auto;
    }
    
    .sync-popup-header {
        padding: 0.8rem 1.2rem;
    }
    
    .sync-popup-header h3 {
        font-size: 1rem;
    }
    
    .sync-popup-content {
        padding: 1.2rem;
    }
    
    .sync-popup-intro {
        padding: 0.8rem;
    }
    
    .sync-popup-intro p {
        font-size: 0.85rem;
    }
    
    .sync-popup-feature {
        padding: 0.6rem;
    }
    
    .sync-popup-icon {
        width: 20px;
        height: 20px;
        font-size: 1rem;
    }
    
    .sync-popup-text {
        font-size: 0.8rem;
    }
    
    .sync-popup-status {
        padding: 0.8rem;
    }
}

@media (max-width: 600px) {
    .sync-info-popup {
        top: 60px;
        left: 5px;
        right: 5px;
    }
}

/* ===============================================
   SYNC INFO MODAL STYLES (LEGACY - KEPT FOR REFERENCE)
   =============================================== */

.sync-info-modal-content {
    max-width: 100%;
}

.sync-info-intro {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(var(--primary), 0.1), rgba(var(--session), 0.05));
    border-radius: 12px;
    border: 1px solid rgba(var(--primary), 0.2);
}

.sync-info-intro p {
    font-size: 1.1rem;
    color: var(--on-surface);
    line-height: 1.6;
    margin: 0;
}

.sync-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sync-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.sync-feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(var(--primary), 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.sync-feature-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary), 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.sync-feature-content {
    flex: 1;
}

.sync-feature-content h4 {
    color: var(--on-surface);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.sync-feature-content p {
    color: var(--on-surface-dim);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.sync-status-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sync-status-section h3 {
    color: var(--on-surface);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.sync-status-info {
    display: flex;
    justify-content: center;
}

.sync-status-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sync-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4CAF50;
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.6);
    animation: syncPulse 2s ease-in-out infinite;
}

.sync-status-dot.offline {
    background: #f44336;
    box-shadow: 0 0 12px rgba(244, 67, 54, 0.6);
}

.sync-status-item .sync-status-text {
    color: var(--on-surface);
    font-size: 1rem;
    font-weight: 500;
}

/* Mobile responsive for sync modal */
@media (max-width: 768px) {
    .sync-feature-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.2rem;
    }
    
    .sync-feature-icon {
        align-self: center;
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .sync-feature-content h4 {
        font-size: 1.2rem;
    }
    
    .sync-feature-content p {
        font-size: 0.95rem;
    }
    
    .sync-info-intro {
        padding: 1.2rem;
    }
    
    .sync-info-intro p {
        font-size: 1rem;
    }
    
    .sync-status-section {
        padding: 1.2rem;
    }
}