:root {
    /* Main color options */
    --primary: 20, 170, 255; /* Neon blue - for timer */
    --session: 0, 220, 130; /* Green - for session */
    --break: 255, 150, 50; /* Orange - for break */
    --lunch: 170, 80, 220; /* Purple - for lunch break */
    --background: 10, 15, 25; /* Dark background */
    --surface: rgba(30, 35, 45, 0.85);
    --on-surface: rgba(255, 255, 255, 0.95);
    --on-surface-dim: rgba(255, 255, 255, 0.7);
    
    /* Effects */
    --blur-amount: 15px;
    --noise-opacity: 0.03;
    --neon-spread: 15px;
    
    /* Animations */
    --speed-slow: 2.5s;
    --speed-medium: 1.2s;
    --speed-fast: 0.6s;
}

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



body {
    font-family: 'Outfit', sans-serif;
    color: var(--on-surface);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgb(var(--background)) 0%, rgba(15, 20, 30, 1) 100%);
    padding: 1rem;
}



.stage {
    position: relative;
    width: 100%;
    max-width: 650px;
    z-index: 1;
    margin-top: 80px;
}

.card {
    position: relative;
    width: 100%;
}

.card-face {
    position: relative;
    width: 100%;
    padding: 2.5rem;
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;

}

.timer-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.status-indicator {
    position: relative;
    padding: 0.8rem 2.5rem;
    margin-bottom: 1.8rem;
    text-align: center;
    border-radius: 50px;
    transition: all var(--speed-medium) ease;
    font-weight: 700;
    font-size: 2.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 250px;
    color: rgba(var(--session), 1); /* SESSION mode default color */
    text-shadow: 0 0 10px rgba(var(--session), 0.4);
    background: rgba(var(--session), 0.15);
    border: 2px solid rgba(var(--session), 0.4);
    box-shadow: 0 0 15px rgba(var(--session), 0.2);
}

.break .status-indicator {
    color: rgba(var(--break), 1);
    text-shadow: 0 0 10px rgba(var(--break), 0.4);
    background: rgba(var(--break), 0.15);
    border: 2px solid rgba(var(--break), 0.4);
    box-shadow: 0 0 15px rgba(var(--break), 0.2);
}

.long-break .status-indicator {
    color: rgba(var(--break), 1);
    text-shadow: 0 0 10px rgba(var(--break), 0.4);
    background: rgba(var(--break), 0.15);
    border: 2px solid rgba(var(--break), 0.4);
    box-shadow: 0 0 15px rgba(var(--break), 0.2);
}

.lunch .status-indicator {
    color: rgba(var(--lunch), 1);
    text-shadow: 0 0 10px rgba(var(--lunch), 0.4);
    background: rgba(var(--lunch), 0.15);
    border: 2px solid rgba(var(--lunch), 0.4);
    box-shadow: 0 0 15px rgba(var(--lunch), 0.2);
}

.status-indicator:before,
.status-indicator::after {
    display: none;
}

.break .status-indicator::before,
.break .status-indicator::after,
.long-break .status-indicator::before,
.long-break .status-indicator::after,
.lunch .status-indicator::before,
.lunch .status-indicator::after {
    display: none;
}

.status-count-container {
    position: relative;
    margin-left: 0.7rem;
    display: inline-flex;
    align-items: center;
}

.status-count {
    font-size: 2.2rem;
    opacity: 0.9;
}

.session-controls {
    position: absolute;
    right: -35px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column-reverse;
    gap: 2px;
    opacity: 1;
    visibility: visible;
    transition: all 0.2s ease;
    z-index: 10;
}

.session-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(var(--session), 0.8);
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.session-btn:hover {
    background: rgba(var(--session), 1);
    transform: scale(1.1);
}

.session-btn:active {
    transform: scale(0.95);
}

.session-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.session-btn:disabled:hover {
    transform: none;
}

/* Different colors for different modes */
.break .session-btn {
    background: rgba(var(--break), 0.8);
}

.break .session-btn:hover {
    background: rgba(var(--break), 1);
}

.long-break .session-btn {
    background: rgba(var(--break), 0.8);
}

.long-break .session-btn:hover {
    background: rgba(var(--break), 1);
}

.lunch .session-btn {
    background: rgba(var(--lunch), 0.8);
}

.lunch .session-btn:hover {
    background: rgba(var(--lunch), 1);
}

.timer-display {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--on-surface);
    margin: 1rem 0 1.5rem;
    text-align: center;
    display: flex;
    justify-content: center;
    letter-spacing: 2px;
    transition: all var(--speed-medium) ease;
}

.session .timer-display {
    text-shadow: 
        0 0 10px rgba(var(--session), 0.5),
        0 0 20px rgba(var(--session), 0.3);
}

.break .timer-display, .long-break .timer-display {
    text-shadow: 
        0 0 10px rgba(var(--break), 0.5),
        0 0 20px rgba(var(--break), 0.3);
}

.lunch .timer-display {
    text-shadow: 
        0 0 10px rgba(var(--lunch), 0.5),
        0 0 20px rgba(var(--lunch), 0.3);
}

.time-separator {
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from { opacity: 1; }
    to { opacity: 0.5; }
}

.progress-container {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin: 0.5rem 0 1rem;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(
        90deg, 
        rgba(var(--session), 0.7) 0%, 
        rgba(var(--session), 1) 100%
    );
    border-radius: 5px;
    transition: width var(--speed-medium) ease, background var(--speed-medium) ease;
    transform-origin: left;
}

.break .progress-bar, .long-break .progress-bar {
    background: linear-gradient(
        90deg, 
        rgba(var(--break), 0.7) 0%, 
        rgba(var(--break), 1) 100%
    );
}

.lunch .progress-bar {
    background: linear-gradient(
        90deg, 
        rgba(var(--lunch), 0.7) 0%, 
        rgba(var(--lunch), 1) 100%
    );
}

.glow-effect {
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right,
        rgba(var(--primary), 0.1),
        rgba(var(--primary), 0.8) 50%,
        rgba(var(--primary), 0.1)
    );
    box-shadow: 
        0 0 10px rgba(var(--primary), 0.5),
        0 0 20px rgba(var(--primary), 0.3);
    border-radius: 1px;
}

/* Daily Goal Mini Progress */
.daily-goal-mini-progress {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1rem 0;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.daily-goal-mini-progress:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(var(--primary), 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mini-progress-icon {
    font-size: 1.2rem;
    opacity: 0.9;
}

.mini-progress-info {
    flex: 1;
    min-width: 0;
}

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

.mini-progress-value {
    font-size: 0.85rem;
    color: var(--on-surface);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.mini-progress-bar {
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(var(--session), 0.7) 0%, 
        rgba(var(--session), 1) 100%);
    border-radius: 3px;
    transition: width 0.5s ease;
    position: relative;
}

.mini-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Goal completed state */
.daily-goal-mini-progress.completed {
    background: linear-gradient(135deg, rgba(0, 220, 130, 0.15), rgba(0, 220, 130, 0.08));
    border-color: rgba(0, 220, 130, 0.3);
}

.daily-goal-mini-progress.completed .mini-progress-fill {
    background: linear-gradient(90deg, 
        rgba(0, 220, 130, 0.7) 0%, 
        rgba(0, 220, 130, 1) 100%);
}

.daily-goal-mini-progress.completed .mini-progress-icon {
    animation: bounce 1s ease-in-out infinite alternate;
}

@keyframes bounce {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}



/* Control buttons */
.control-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

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

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

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

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

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

.control-btn.danger:hover {
    border-color: rgba(255, 80, 80, 0.8);
    background: rgba(255, 80, 80, 0.25);
    box-shadow: 0 5px 15px rgba(255, 80, 80, 0.4);
}

.control-btn.afk {
    border-color: rgba(255, 193, 7, 0.6);
    background: rgba(255, 193, 7, 0.15);
    color: rgba(255, 193, 7, 1);
}

.control-btn.afk:hover {
    border-color: rgba(255, 193, 7, 0.8);
    background: rgba(255, 193, 7, 0.25);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.control-btn.afk.active {
    border-color: rgba(255, 80, 80, 0.8);
    background: rgba(255, 80, 80, 0.25);
    color: rgba(255, 80, 80, 1);
}

.control-btn.afk.active:hover {
    border-color: rgba(255, 80, 80, 1);
    background: rgba(255, 80, 80, 0.35);
    box-shadow: 0 5px 15px rgba(255, 80, 80, 0.5);
}

/* Save button - Success Green (--session) */
#save-btn {
    border-color: rgba(var(--session), 0.6);
    background: rgba(var(--session), 0.15);
    color: rgba(var(--session), 1);
}

#save-btn:hover {
    border-color: rgba(var(--session), 0.8);
    background: rgba(var(--session), 0.25);
    box-shadow: 0 5px 15px rgba(var(--session), 0.4);
}

/* Break button - Break Orange (--break) */
#break-btn {
    border-color: rgba(var(--break), 0.6);
    background: rgba(var(--break), 0.15);
    color: rgba(var(--break), 1);
}

#break-btn:hover {
    border-color: rgba(var(--break), 0.8);
    background: rgba(var(--break), 0.25);
    box-shadow: 0 5px 15px rgba(var(--break), 0.4);
}

/* When break button turns into Session, show success color */
#break-btn.session {
    border-color: rgba(var(--session), 0.6);
    background: rgba(var(--session), 0.15);
    color: rgba(var(--session), 1);
}

#break-btn.session:hover {
    border-color: rgba(var(--session), 0.8);
    background: rgba(var(--session), 0.25);
    box-shadow: 0 5px 15px rgba(var(--session), 0.4);
}

/* AFK Visual Feedback */
.timer-container.afk-active {
    border-color: rgba(255, 80, 80, 0.8) !important;
    background: rgba(255, 80, 80, 0.1) !important;
}

.timer-container.afk-active .timer-display {
    color: rgba(255, 80, 80, 1) !important;
}

.timer-container.afk-active .status-indicator {
    color: rgba(255, 80, 80, 1) !important;
}

.timer-container.afk-active::after {
    content: '🚶 AFK';
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(255, 80, 80, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
}

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

/* AFK Statistics Display */
.detail-summary-item.afk-info {
    color: rgba(255, 193, 7, 1);
    font-weight: 500;
}

.detail-summary-item.effective-time {
    color: rgba(0, 220, 130, 1);
    font-weight: 600;
}

.detail-afk {
    color: rgba(255, 80, 80, 0.9);
    font-size: 0.85em;
    margin-left: 8px;
    font-weight: 500;
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.control-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}



/* Auth Modal Override - Modal Container yapısı */
.auth-modal {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex !important;
}

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

.auth-modal .modal-content {
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

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

/* Auth Forgot Password Link */
.auth-forgot-password {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-forgot-password a {
    color: rgba(var(--primary), 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.auth-forgot-password a:hover {
    color: rgba(var(--primary), 1);
    text-decoration: underline;
}

/* Auth Divider */
.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    background: var(--surface);
    padding: 0 1rem;
    color: var(--on-surface-dim);
    font-size: 0.9rem;
}

/* Google Auth Button */
.btn-google {
    background: rgba(255, 255, 255, 0.95);
    color: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    margin-bottom: 1rem;
    font-weight: 500;
}

.btn-google:hover {
    background: rgba(255, 255, 255, 1);
    color: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-google svg {
    flex-shrink: 0;
}

/* User Menu Modal Styles */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(var(--primary), 0.2);
    border: 2px solid rgba(var(--primary), 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: rgba(var(--primary), 1);
}

.user-details {
    flex: 1;
}

.user-email {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 0.5rem;
}

.user-since {
    font-size: 0.9rem;
    color: var(--on-surface-dim);
}

.user-verification-status {
    margin-bottom: 1.5rem;
}

.verification-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.verification-warning p {
    color: rgba(255, 193, 7, 1);
    margin-bottom: 1rem;
    font-weight: 500;
}

.btn-warning {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.4);
    color: rgba(255, 193, 7, 1);
}

.btn-warning:hover {
    background: rgba(255, 193, 7, 0.3);
    border-color: rgba(255, 193, 7, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.user-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.user-menu-actions .btn {
    justify-content: flex-start;
    gap: 0.5rem;
}

.btn-danger {
    background: rgba(255, 70, 70, 0.2);
    border: 1px solid rgba(255, 70, 70, 0.3);
    color: rgba(255, 70, 70, 1);
}

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

#password-reset-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#password-reset-form h3 {
    margin-bottom: 1rem;
    color: var(--on-surface);
}

#password-reset-form p {
    margin-bottom: 1.5rem;
    color: var(--on-surface-dim);
    line-height: 1.5;
}

.password-reset-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.password-reset-actions .btn {
    flex: 1;
    min-width: 140px;
}

/* Password Reset Modal Styles */
.password-reset-info {
    margin-bottom: 1.5rem;
    color: var(--on-surface-dim);
    text-align: center;
    line-height: 1.5;
}

#password-reset-form-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#password-reset-form-main input {
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--on-surface);
    font-size: 1rem;
}

#password-reset-form-main input:focus {
    outline: none;
    border-color: rgba(var(--primary), 0.5);
    box-shadow: 0 0 0 3px rgba(var(--primary), 0.1);
}

#password-reset-form-main .btn {
    margin-top: 0.5rem;
}

/* History Modal Styles */
.history-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-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;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--on-surface-dim);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

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

.history-section {
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

.history-section h3 {
    color: var(--on-surface);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.session-list {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden; /* Prevent horizontal scroll from transforms */
    margin-bottom: 1.5rem;
}

/* Session list scrollbar - same as modal scrollbar */
.session-list::-webkit-scrollbar {
    width: 8px;
}

.session-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.session-list::-webkit-scrollbar-thumb {
    background: rgba(var(--primary), 0.6);
    border-radius: 4px;
}

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

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

.session-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.session-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

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

.session-type {
    font-size: 1rem;
    color: var(--on-surface);
    font-weight: 600;
}

.session-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.session-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(var(--session), 1);
}

.session-status {
    font-size: 1.2rem;
}

.delete-session-btn {
    background: rgba(255, 80, 80, 0.1);
    border: 1px solid rgba(255, 80, 80, 0.3);
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.delete-session-btn:hover {
    background: rgba(255, 80, 80, 0.2);
    border-color: rgba(255, 80, 80, 0.5);
    opacity: 1;
    transform: scale(1.1);
}

.session-details-toggle {
    background: rgba(20, 170, 255, 0.1);
    border: 1px solid rgba(20, 170, 255, 0.3);
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
    margin-right: 0.5rem;
}

.session-details-toggle:hover {
    background: rgba(20, 170, 255, 0.2);
    border-color: rgba(20, 170, 255, 0.5);
    opacity: 1;
    transform: scale(1.1);
}

.session-details {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.session-details-header {
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.session-details-summary {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(0, 220, 130, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(0, 220, 130, 0.2);
}

.detail-summary-item {
    font-size: 0.85rem;
    color: var(--on-surface);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.session-details-separator {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: var(--on-surface-dim);
    margin: 0.5rem 0;
    text-align: center;
}

.session-details-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.session-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

.detail-time {
    color: var(--on-surface-dim);
    min-width: 120px;
}

.detail-type {
    color: var(--on-surface);
    font-weight: 600;
    min-width: 100px;
}

.detail-duration {
    color: rgba(var(--session), 1);
    font-weight: 500;
}

.session-details-empty {
    text-align: center;
    color: var(--on-surface-dim);
    font-style: italic;
    padding: 1rem;
}

/* New CSS for external session details area */
.session-details-area {
    margin-top: 1.5rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.session-details-container {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide the old inline session details */
.session-item .session-details {
    display: none !important;
}

/* Update toggle button styling */
.session-details-toggle.active {
    background: rgba(0, 220, 130, 0.2);
    border-color: rgba(0, 220, 130, 0.5);
    color: rgba(0, 220, 130, 1);
}

/* Highlight selected session item */
.session-item.selected {
    background: linear-gradient(135deg, rgba(0, 220, 130, 0.15), rgba(0, 220, 130, 0.08));
    border: 1px solid rgba(0, 220, 130, 0.3);
    box-shadow: 0 4px 12px rgba(0, 220, 130, 0.2);
    transform: translateY(-2px);
}

.session-item.selected:hover {
    background: linear-gradient(135deg, rgba(0, 220, 130, 0.2), rgba(0, 220, 130, 0.12));
    box-shadow: 0 6px 16px rgba(0, 220, 130, 0.25);
}

/* Add a subtle glow effect to selected session */
.session-item.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 220, 130, 0.4), rgba(0, 150, 255, 0.4));
    border-radius: 8px;
    z-index: -1;
    opacity: 0.3;
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    from {
        opacity: 0.2;
        transform: scale(0.99);
    }
    to {
        opacity: 0.4;
        transform: scale(1.01);
    }
}

/* Make session item relative for pseudo-element positioning */
.session-item {
    position: relative;
    /* Prevent horizontal overflow from transforms */
    overflow: hidden;
}

/* Enhance the selected session typography */
.session-item.selected .session-time {
    color: rgba(0, 220, 130, 1);
    font-weight: 600;
}

.session-item.selected .session-type {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.session-item.selected .session-duration span:first-child {
    color: rgba(0, 220, 130, 1);
    font-weight: 600;
}

/* Pomodoro Settings Grid Styles */
.pomodoro-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.setting-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.setting-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.setting-icon {
    font-size: 1.25rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.session-setting .setting-icon {
    background: rgba(var(--session), 0.2);
}

.break-setting .setting-icon {
    background: rgba(var(--break), 0.2);
}

.long-break-setting .setting-icon,
.lunch-setting .setting-icon {
    background: rgba(var(--long-break), 0.2);
}

.setting-info {
    flex: 1;
}

.setting-label {
    font-size: 0.75rem;
    color: var(--on-surface-dim);
    font-weight: 500;
    margin-bottom: 0.125rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.setting-value {
    font-size: 0.9rem;
    color: var(--on-surface);
    font-weight: 600;
}

.setting-subtitle {
    font-size: 0.7rem;
    color: var(--on-surface-dim);
    font-weight: 400;
    margin-top: 0.25rem;
    opacity: 0.8;
}

/* Disabled setting cards */
.setting-card.disabled {
    opacity: 0.5;
    background: rgba(var(--on-surface), 0.05);
    border-color: rgba(var(--on-surface), 0.1);
}

.setting-card.disabled .setting-icon {
    opacity: 0.6;
}

.setting-card.disabled .setting-label {
    color: var(--on-surface-dim);
}

.setting-card.disabled .setting-value {
    color: var(--on-surface-dim);
}

.setting-card.disabled .setting-subtitle {
    opacity: 0.6;
}

/* Responsive adjustments for settings grid */
@media (max-width: 768px) {
    .pomodoro-settings-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .setting-card {
        padding: 0.625rem;
        gap: 0.625rem;
    }
    
    .setting-icon {
        font-size: 1.1rem;
        width: 1.75rem;
        height: 1.75rem;
    }
    
    .setting-label {
        font-size: 0.7rem;
    }
    
    .setting-value {
        font-size: 0.85rem;
    }
}

/* Button Loading Styles */
.btn-text, .btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

.transition-btn.loading {
    opacity: 0.8;
    cursor: not-allowed;
    pointer-events: none;
}

.loading-message, .empty-message {
    text-align: center;
    padding: 2rem;
    color: var(--on-surface-dim);
    font-style: italic;
}

.history-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .history-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .session-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    /* Mobile responsiveness for selected session */
    .session-item.selected {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 220, 130, 0.25);
    }

    .session-item.selected::before {
        animation: none; /* Disable animation on mobile for performance */
    }
    
    .session-actions {
        align-self: flex-end;
        width: 100%;
        justify-content: space-between;
    }
    
    .delete-session-btn {
        font-size: 0.9rem;
        padding: 0.4rem;
    }
}


/* Daily Goal Modal Styles */
.daily-goal-modal-content {
    max-width: 900px;
    width: 95vw;
    max-height: 95vh;
    overflow-y: auto;
}

.goal-settings-section, .goal-progress-section {
    margin-bottom: 2.5rem;
}

.goal-progress-section {
    margin-bottom: 3rem;
}

.goal-setting-card, .goal-progress-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.goal-progress-card {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(56, 142, 60, 0.08) 100%);
    border: 1px solid rgba(76, 175, 80, 0.3);
}


.goal-setting-header, .goal-progress-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.goal-setting-header::after, .goal-progress-header::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    opacity: 0.7;
}

.goal-setting-header h3, .goal-progress-header h3 {
    color: rgba(var(--primary), 1);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.goal-setting-header p, .goal-progress-header p {
    color: var(--on-surface-dim);
    font-size: 1.05rem;
    font-weight: 400;
    opacity: 0.9;
}

.goal-input-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.goal-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.goal-input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--on-surface);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.goal-number-input {
    background: transparent;
    border: none;
    color: var(--on-surface);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    width: 60px;
    padding: 0.5rem;
}

.goal-number-input:focus {
    outline: none;
}

.goal-total-display {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(var(--session), 0.1);
    border-radius: 12px;
    border: 1px solid rgba(var(--session), 0.2);
}

.goal-total-label {
    font-size: 1rem;
    color: var(--on-surface-dim);
    margin-right: 0.5rem;
}

.goal-total-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: rgba(var(--session), 1);
    font-family: 'Courier New', monospace;
}

.goal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Circular Progress Styles */
.circular-progress-container {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 1rem;
}

.circular-progress {
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.circular-progress:hover {
    transform: scale(1.05);
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-background {
    fill: none;
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 12;
}

.progress-ring-fill {
    fill: none;
    stroke: rgba(var(--session), 1);
    stroke-linecap: round;
    stroke-width: 12;
    stroke-dasharray: 534;
    stroke-dashoffset: 534;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 8px rgba(76, 175, 80, 0.4));
}

.progress-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-percentage {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(var(--session), 1);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, rgba(var(--session), 1), rgba(var(--session), 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.progress-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--on-surface);
    font-family: 'Courier New', monospace;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-label {
    font-size: 1rem;
    color: var(--on-surface-dim);
    font-family: 'Courier New', monospace;
    opacity: 0.85;
    font-weight: 500;
}

.progress-label span {
    color: rgba(var(--session), 1);
    font-weight: 600;
}

/* Progress Stats */
.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.progress-stat-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-stat-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.progress-stat-item:hover::before {
    opacity: 1;
}

.progress-stat-icon {
    font-size: 2rem;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.progress-stat-item:hover .progress-stat-icon {
    transform: scale(1.1);
}

.progress-stat-info {
    flex: 1;
}

.progress-stat-label {
    font-size: 0.9rem;
    color: var(--on-surface-dim);
    margin-bottom: 0.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

.progress-stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--on-surface);
    font-family: 'Courier New', monospace;
}

/* Motivational Message */
.motivational-message {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(var(--session), 0.1), rgba(var(--primary), 0.05));
    border-radius: 12px;
    border: 1px solid rgba(var(--session), 0.2);
}

.motivation-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.motivation-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--on-surface);
}

/* Goal Loading and Error States */
.goal-loading, .goal-error {
    text-align: center;
    padding: 3rem;
    color: var(--on-surface-dim);
}

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

.goal-error .error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}


/* Charts Control Header */
.charts-control-header {
    background: linear-gradient(135deg, rgba(var(--primary), 0.1), rgba(var(--session), 0.05));
    border: 1px solid rgba(var(--primary), 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.charts-control-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--primary), 0.5), transparent);
}

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

.control-header-info h3 {
    color: rgba(var(--primary), 1);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.control-header-info p {
    color: var(--on-surface-dim);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

.time-range-selector {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.time-range-btn {
    padding: 0.8rem 1.8rem;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--on-surface-dim);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    user-select: none;
    -webkit-user-select: none;
}

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

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

.time-range-btn.active {
    background: rgba(var(--primary), 0.2);
    color: rgba(var(--primary), 1);
    border-color: rgba(var(--primary), 0.4);
}

.time-range-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.12);
    color: var(--on-surface);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Charts Connector */
.charts-connector {
    margin-top: 1.5rem;
    text-align: center;
    position: relative;
}

.connector-line {
    width: 2px;
    height: 20px;
    background: linear-gradient(180deg, rgba(var(--primary), 0.6), rgba(var(--primary), 0.3));
    margin: 0 auto;
    border-radius: 2px;
}

.connector-arrow {
    font-size: 1.2rem;
    color: rgba(var(--primary), 0.8);
    margin: 0.25rem 0;
    animation: bounce 2s infinite;
}

.connector-text {
    font-size: 0.8rem;
    color: var(--on-surface-dim);
    opacity: 0.8;
    font-weight: 500;
    font-style: italic;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

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

.summary-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;
}

.summary-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.summary-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.summary-info {
    flex: 1;
}

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

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

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

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

.chart-tab.active {
    background: rgba(var(--primary), 0.2);
    border-color: rgba(var(--primary), 0.4);
    color: rgba(var(--primary), 1);
}

.chart-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: var(--on-surface);
}

/* Chart Panels */
.chart-content {
    position: relative;
}

.chart-panel {
    display: none;
}

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

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

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

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

.chart-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Loading, Error, Empty States */
.stats-loading, .stats-error, .stats-empty {
    text-align: center;
    padding: 3rem;
    color: var(--on-surface-dim);
}

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

.error-icon, .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.empty-subtitle {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

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

.calendar-day {
    aspect-ratio: 1;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--on-surface-dim);
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day:hover {
    border-color: rgba(var(--primary), 0.5);
}

.calendar-day.has-data {
    background: rgba(var(--primary), 0.3);
    border-color: rgba(var(--primary), 0.5);
    color: var(--on-surface);
}

.calendar-day.high-activity {
    background: rgba(var(--session), 0.4);
    border-color: rgba(var(--session), 0.6);
}

/* Heatmap Grid */
.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: 3px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--on-surface-dim);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

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

.heatmap-hour.activity-1 {
    background: rgba(var(--session), 0.2);
}

.heatmap-hour.activity-2 {
    background: rgba(var(--session), 0.4);
}

.heatmap-hour.activity-3 {
    background: rgba(var(--session), 0.6);
}

.heatmap-hour.activity-4 {
    background: rgba(var(--session), 0.8);
}

.heatmap-hour.activity-5 {
    background: rgba(var(--session), 1);
}

/* Responsive styles */
@media (max-width: 768px) {
    .stage {
        margin-top: 70px;
    }
    
    .timer-display {
        font-size: 5rem;
    }
    
    .status-indicator {
        font-size: 1.8rem;
        padding: 0.6rem 2rem;
    }
    
    .status-count {
        font-size: 1.8rem;
    }
    
    .card-face {
        padding: 2rem;
    }
    
    .control-buttons {
        gap: 0.8rem;
    }
    
    .control-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    


    .goal-setting-card, .goal-progress-card {
        padding: 1.5rem;
    }

    .goal-input-section {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .goal-input-group {
        width: 100%;
        max-width: 200px;
    }

    .progress-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .progress-stat-item {
        padding: 0.8rem;
    }

    .circular-progress {
        transform: scale(0.8);
    }

    /* Mini Progress Mobile */
    .daily-goal-mini-progress {
        padding: 0.6rem 1rem;
        gap: 0.6rem;
        margin: 0.8rem 0;
    }

    .mini-progress-label {
        font-size: 0.7rem;
    }

    .mini-progress-value {
        font-size: 0.8rem;
    }

    .mini-progress-bar {
        width: 50px;
        height: 5px;
    }


    .summary-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .summary-card {
        padding: 1.2rem;
    }

    .chart-tabs {
        gap: 0.3rem;
    }

    .chart-tab {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .chart-wrapper {
        padding: 1rem;
        min-height: 250px;
    }

    /* Mobile responsive for control header */
    .charts-control-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .control-header-info h3 {
        font-size: 1.1rem;
    }

    .control-header-info p {
        font-size: 0.85rem;
    }

    .time-range-selector {
        flex-direction: column;
        gap: 8px;
    }

    .time-range-btn {
        padding: 0.8rem 1.4rem;
        font-size: 0.95rem;
        font-weight: 600;
    }

    .connector-text {
        font-size: 0.75rem;
    }

    .calendar-grid {
        max-width: 100%;
        gap: 2px;
    }

    .heatmap-grid {
        max-width: 100%;
        gap: 1px;
    }

    .heatmap-hour {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .timer-display {
        font-size: 3.5rem;
    }
    
    .status-indicator {
        font-size: 1.4rem;
        padding: 0.4rem 1.5rem;
        min-width: 200px;
    }
    
    .status-count {
        font-size: 1.4rem;
    }
    
    .card-face {
        padding: 1.5rem;
    }
    
    .control-buttons {
        gap: 0.6rem;
        flex-direction: column;
        align-items: center;
    }
    
    .control-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Settings container */
.settings-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 25px;
    margin-top: 35px;
    width: 100%;
    max-width: 800px;
    position: relative;
    z-index: 2;
    justify-items: center;
}

.settings-pill {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-radius: 50px;
    background: rgba(20, 25, 35, 0.9);
    border: 3px solid rgba(255, 255, 255, 0.25);
    transition: all var(--speed-medium) ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 200px;
    width: 100%;
    max-width: 350px;
    animation: fadeIn 0.5s ease backwards;
    position: relative;  
    overflow: hidden;
}

.quick-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    opacity: 1;
    transform: translateX(0);
    transition: all var(--speed-fast) ease;
    flex-shrink: 0;
    max-width: 120px;
}

/* Timer başladığında quick-controls'ları gizle */
.timer-running .quick-controls {
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
}

/* Timer başladığında subtitle-controls'ları da gizle */
.timer-running .subtitle-controls {
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
}

/* Timer başladığında session-controls'ları da gizle */
.timer-running .session-controls {
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
}

.quick-adjust {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toggle-btn {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--on-surface);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--speed-fast) ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: relative;
}

.toggle-btn:hover {
    border-color: rgba(var(--primary), 0.6);
    background: rgba(var(--primary), 0.2);
    color: rgba(var(--primary), 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(var(--primary), 0.3);
}

.toggle-btn.active {
    border-color: rgba(var(--session), 0.8);
    background: rgba(var(--session), 0.3);
    color: rgba(var(--session), 1);
    box-shadow: 0 0 15px rgba(var(--session), 0.4);
}

.toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}

.toggle-btn.inactive {
    border-color: rgba(255, 80, 80, 0.6);
    background: rgba(255, 80, 80, 0.2);
    color: rgba(255, 80, 80, 1);
    opacity: 0.7;
}

.toggle-icon {
    transition: transform var(--speed-fast) ease;
}

.quick-btn {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--on-surface);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--speed-fast) ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.quick-btn:hover {
    border-color: rgba(var(--primary), 0.6);
    background: rgba(var(--primary), 0.2);
    color: rgba(var(--primary), 1);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(var(--primary), 0.3);
}

.quick-btn:active {
    transform: scale(0.95);
}

.quick-btn.minus:hover {
    border-color: rgba(255, 150, 50, 0.6);
    background: rgba(255, 150, 50, 0.2);
    color: rgba(255, 150, 50, 1);
    box-shadow: 0 2px 8px rgba(255, 150, 50, 0.3);
}

.quick-btn.plus:hover {
    border-color: rgba(0, 220, 130, 0.6);
    background: rgba(0, 220, 130, 0.2);
    color: rgba(0, 220, 130, 1);
    box-shadow: 0 2px 8px rgba(0, 220, 130, 0.3);
}

/* Beautiful Notification System - Original Slide Style */
.quick-notification {
    position: fixed;
    top: 100px;
    right: 2rem;
    padding: 0.8rem 1.2rem;
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--on-surface);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    z-index: 10002;
    max-width: 280px;
    transform: translateX(calc(100% + 2rem));
    transition: transform 0.4s cubic-bezier(0.17, 0.84, 0.44, 1);
    pointer-events: auto;
}

.quick-notification.show {
    transform: translateX(0);
}

.quick-notification.hide {
    transform: translateX(calc(100% + 2rem)) !important;
}

.quick-notification-success {
    border-left: 3px solid rgba(var(--session), 1);
    background: rgba(var(--session), 0.1);
}

.quick-notification-warning {
    border-left: 3px solid rgba(255, 150, 50, 1);
    background: rgba(255, 150, 50, 0.1);
}

.quick-notification-info {
    border-left: 3px solid rgba(var(--primary), 1);
    background: rgba(var(--primary), 0.1);
}

.quick-notification-error {
    border-left: 3px solid rgba(255, 80, 80, 1);
    background: rgba(255, 80, 80, 0.1);
}

/* Special styling for auth-required notifications */
.quick-notification.auth-required {
    border: 2px solid rgba(255, 193, 7, 0.6);
    background: rgba(255, 193, 7, 0.15);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 1rem 1.5rem;
    max-width: 320px;
    animation: authPulse 2s ease-in-out;
    transition: all 0.3s ease;
    cursor: pointer;
}

.quick-notification.auth-required:hover {
    background: rgba(255, 193, 7, 0.25);
    border-color: rgba(255, 193, 7, 0.8);
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.4);
    transform: translateX(0) translateY(-2px);
}

@keyframes authPulse {
    0%, 100% { 
        box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
        border-color: rgba(255, 193, 7, 0.6);
    }
    50% { 
        box-shadow: 0 6px 16px rgba(255, 193, 7, 0.5);
        border-color: rgba(255, 193, 7, 0.8);
    }
}

.settings-pill:nth-child(1) {
    animation-delay: 0.1s;
}

.settings-pill:nth-child(2) {
    animation-delay: 0.2s;
}

.settings-pill:nth-child(3) {
    animation-delay: 0.3s;
}

.settings-pill:nth-child(4) {
    animation-delay: 0.4s;
}

/* Top Mode Toggle */
.top-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 8px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer; /* Make entire area clickable */
}

.top-mode-toggle:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.mode-display {
    font-size: 12px;
    font-weight: 600;
    color: var(--on-surface);
    letter-spacing: 0.5px;
    min-width: 80px;
    text-align: center;
    transition: all 0.3s ease;
}

/* Mode toggle button */
.mode-toggle-btn {
    position: relative;
    width: 80px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mode-toggle-track {
    position: relative;
    width: 64px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center; /* Dikey ortalama için */
}

.mode-toggle-thumb {
    position: absolute;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    border-radius: 50%;
    left: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center; /* Emojiyi dikey ortala */
    justify-content: center; /* Emojiyi yatay ortala */
    font-size: 14px;
}

/* Stopwatch mode active */
.mode-toggle-btn.stopwatch-mode .mode-toggle-thumb {
    transform: translateX(36px);
    background: linear-gradient(135deg, #4ecdc4, #44b3aa);
}

.mode-toggle-btn.stopwatch-mode .mode-toggle-track {
    background: rgba(78, 205, 196, 0.2);
    border-color: rgba(78, 205, 196, 0.4);
}

/* Hover effects */
.mode-toggle-btn:hover .mode-toggle-track {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.mode-toggle-btn:hover .mode-toggle-thumb {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

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

/* Session mode active */
.session #settings-container .session-pill {
    border-color: rgba(var(--session), 0.8);
    background: rgba(var(--session), 0.5);
    box-shadow: 0 6px 20px rgba(var(--session), 0.3);
}

.session #settings-container .session-pill .settings-value {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

/* Break mode active */
.break #settings-container .break-pill {
    border-color: rgba(var(--break), 0.8);
    background: rgba(var(--break), 0.5);
    box-shadow: 0 6px 20px rgba(var(--break), 0.3);
}

.break #settings-container .break-pill .settings-value {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

/* Long break mode active */
.long-break #settings-container .longbreak-pill {
    border-color: rgba(var(--break), 0.8);
    background: rgba(var(--break), 0.5);
    box-shadow: 0 6px 20px rgba(var(--break), 0.3);
}

.long-break #settings-container .longbreak-pill .settings-value {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

/* Lunch mode active */
.lunch #settings-container .lunch-pill {
    border-color: rgba(var(--lunch), 0.8);
    background: rgba(var(--lunch), 0.5);
    box-shadow: 0 6px 20px rgba(var(--lunch), 0.3);
}

.lunch #settings-container .lunch-pill .settings-value {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.settings-icon {
    font-size: 2.4rem;
    margin-right: 18px;
    opacity: 1;
}

/* Deaktif durumda yazıları gri yap */
.settings-pill.disabled .settings-label,
.settings-pill.disabled .settings-value,
.settings-pill.disabled .settings-subtitle {
    opacity: 0.4;
    color: rgba(255, 255, 255, 0.4);
}

.settings-pill.disabled .settings-icon {
    opacity: 0.4;
}

/* Subtitle-controls artık ayrı olduğu için deaktif durumda etkilenmez */

.settings-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    margin-right: 12px;
}

.settings-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 4px;
    white-space: nowrap;
}

.settings-value {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.settings-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0.8;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 100%;
}

.subtitle-controls {
    display: flex;
    gap: 6px;
    margin-left: 0;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: all var(--speed-fast) ease;
}

.subtitle-btn {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--on-surface);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--speed-fast) ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.subtitle-btn:hover {
    border-color: rgba(var(--primary), 0.6);
    background: rgba(var(--primary), 0.2);
    color: rgba(var(--primary), 1);
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(var(--primary), 0.3);
}

.subtitle-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .settings-container {
        padding: 0 15px;
        gap: 20px;
    }
    
    .quick-controls {
        margin-left: 8px;
        gap: 6px;
    }
    
    /* Mobile'da hover efektlerini devre dışı bırak */
    .settings-pill:hover .quick-controls {
        opacity: 1;
        transform: translateX(0);
    }
    
    .subtitle-btn:hover {
        transform: none;
        box-shadow: none;
    }
    
    .quick-btn:hover {
        transform: none;
        box-shadow: none;
    }
    
    .toggle-btn:hover {
        transform: none;
        box-shadow: none;
    }
    
    .quick-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .toggle-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .quick-notification {
        top: 80px;
        right: 1rem;
        max-width: 280px;
        transform: translateX(calc(100% + 1rem));
    }
    
    .quick-notification.show {
        transform: translateX(0);
    }
    
    .quick-notification.hide {
        transform: translateX(calc(100% + 1rem)) !important;
    }
    
    .quick-notification.auth-required {
        max-width: 320px;
        padding: 1.2rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .stage {
        margin-top: 60px;
    }
    
    .settings-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
        gap: 20px;
        margin-top: 40px;
    }
    
    .top-mode-toggle {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        border-radius: 20px;
    }
    
    .mode-display {
        font-size: 10px;
        min-width: 70px;
    }
    
    .mode-toggle-btn {
        width: 70px;
        height: 32px;
    }
    
    .mode-toggle-track {
        width: 56px;
        height: 24px;
    }
    
    .mode-toggle-thumb {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .mode-toggle-btn.stopwatch-mode .mode-toggle-thumb {
        transform: translateX(32px);
    }
    
    .settings-pill {
        width: 100%;
        max-width: 350px;
        justify-content: flex-start;
        padding: 16px 24px;
        overflow: hidden;
    }
    
    .quick-controls {
        opacity: 1;
        transform: translateX(0);
        flex-shrink: 0;
        max-width: 100px;
    }
    
    .settings-icon {
        font-size: 2.6rem;
        margin-right: 20px;
    }
    
    .settings-label {
        font-size: 1.2rem;
    }
    
    .settings-value {
        font-size: 2rem;
    }
}

.next-session-info {
    margin-top: 15px;
    font-size: 1.6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 1);
    text-align: center;
    transition: all var(--speed-medium) ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.02em;
}

.break .next-session-info,
.long-break .next-session-info,
.lunch .next-session-info {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.session .next-session-info {
    display: none;
}

.break .next-session-info {
    color: rgba(255, 255, 255, 1);
    background: rgba(var(--break), 0.25);
    border: 2px solid rgba(var(--break), 0.5);
    box-shadow: 0 4px 12px rgba(var(--break), 0.3);
}

.long-break .next-session-info {
    color: rgba(255, 255, 255, 1);
    background: rgba(var(--break), 0.25);
    border: 2px solid rgba(var(--break), 0.5);
    box-shadow: 0 4px 12px rgba(var(--break), 0.3);
}

.lunch .next-session-info {
    color: rgba(255, 255, 255, 1);
    background: rgba(var(--lunch), 0.25);
    border: 2px solid rgba(var(--lunch), 0.5);
    box-shadow: 0 4px 12px rgba(var(--lunch), 0.3);
}

@media (max-width: 768px) {
    .next-session-info {
        font-size: 1.8rem;
        padding: 10px 24px;
    }
}

        
/* Real-time Sync Status Bar */
.sync-status-bar {
    position: fixed;
    top: 20px;
    left: 80px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 8px 16px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.sync-status-bar:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.sync-status-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sync-status-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

.sync-status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

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

.sync-status-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@keyframes syncPulse {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Mobile responsive for sync status */

@media (max-width: 768px) {
    .sync-status-bar {
        top: 20px;
        left: 10px;
    }
}


@media (max-width: 600px) {
    .sync-status-bar {
        top: 10px;
        left: 10px;
        padding: 6px 12px;
        height: 44px;
        border-radius: 20px;
    }
    
    .sync-status-text {
        font-size: 0.75rem;
    }
}

/* Sync Conflict Modal Styles */
.conflict-session-details {
    display: flex;
    gap: 16px;
    margin: 20px 0;
}

.conflict-session-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.conflict-session-header {
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.conflict-session-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.conflict-session-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.conflict-session-duration {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.conflict-session-type {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.conflict-options {
    margin: 20px 0;
}

.conflict-option {
    margin-bottom: 12px;
}

.conflict-option input[type="radio"] {
    display: none;
}

.conflict-option label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.conflict-option input[type="radio"]:checked + label {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.conflict-option-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.conflict-option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.conflict-option-text strong {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.conflict-option-text small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* Selected conflict option */
.conflict-option input[type="radio"]:checked + label {
    background: rgba(76, 175, 80, 0.2) !important;
    border: 2px solid #4CAF50 !important;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.conflict-option input[type="radio"]:checked + label .conflict-option-icon {
    color: #4CAF50;
    font-size: 1.3rem;
}

.conflict-option input[type="radio"]:checked + label .conflict-option-text strong {
    color: #4CAF50;
    font-weight: 600;
}

.conflict-option input[type="radio"]:checked + label .conflict-option-text small {
    color: rgba(76, 175, 80, 0.8);
}

/* Hover effect for conflict options */
.conflict-option label:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.conflict-option input[type="radio"]:checked + label:hover {
    background: rgba(76, 175, 80, 0.25) !important;
    transform: scale(1.02) translateY(-1px);
}

/* Conflict instruction */
.conflict-instruction {
    margin: 16px 0;
    padding: 12px 16px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    text-align: center;
}

.conflict-instruction p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Conflict modal button disabled state */
#conflict-confirm:disabled {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    cursor: not-allowed !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#conflict-confirm:disabled:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    transform: none !important;
}

/* Conflict modal button enabled state (success) */
#conflict-confirm:not(:disabled) {
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    color: white !important;
    border: 1px solid #4CAF50 !important;
}

#conflict-confirm:not(:disabled):hover {
    background: linear-gradient(135deg, #45a049, #3d8b40) !important;
    transform: translateY(-1px) !important;
}

/* Mobile responsive for conflict modal */
@media (max-width: 768px) {
    .conflict-session-details {
        flex-direction: column;
        gap: 12px;
    }
    
    .conflict-session-card {
        padding: 12px;
    }
    
    .conflict-option label {
        padding: 10px 12px;
    }
    
    .conflict-option-text strong {
        font-size: 0.9rem;
    }
    
    .conflict-option-text small {
        font-size: 0.75rem;
    }
    
    .conflict-instruction {
        margin: 12px 0;
        padding: 10px 12px;
    }
    
    .conflict-instruction p {
        font-size: 0.85rem;
    }
    
    .conflict-option input[type="radio"]:checked + label {
        transform: scale(1.01);
    }
    
    .conflict-option input[type="radio"]:checked + label:hover {
        transform: scale(1.01) translateY(-1px);
    }
}