:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-hover: #30363d;
    
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    
    --accent-work: #f97316;
    --accent-work-glow: rgba(249, 115, 22, 0.3);
    --accent-project: #06b6d4;
    --accent-project-glow: rgba(6, 182, 212, 0.3);
    --accent-study: #a855f7;
    --accent-study-glow: rgba(168, 85, 247, 0.3);
    --accent-total: #22c55e;
    --accent-total-glow: rgba(34, 197, 94, 0.3);
    
    --border-color: #30363d;
    --border-highlight: #484f58;
    
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.1), 0 0 80px rgba(6, 182, 212, 0.05);
}

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

body {
    font-family: var(--font-display);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    background-image: 
        radial-gradient(ellipse at 20% 0%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(249, 115, 22, 0.03) 0%, transparent 70%);
    background-attachment: fixed;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 1rem;
    padding: 1rem 0;
    position: relative;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--accent-project), var(--accent-study));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 3s ease-in-out infinite;
}

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

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Auth Section */
.auth-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-project);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feedback-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.feedback-btn .feedback-icon {
    font-size: 1rem;
}

.feedback-btn .feedback-text {
    letter-spacing: 0.02em;
}

.feedback-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.donate-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #f5af19, #f12711);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.donate-btn .donate-icon {
    font-size: 1rem;
}

.donate-btn .donate-text {
    letter-spacing: 0.02em;
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 175, 25, 0.5);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-project);
    background: var(--bg-tertiary);
    object-fit: cover;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.sign-out-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.sign-out-btn:hover {
    color: var(--accent-work);
}

/* Auth Container */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-glow);
    animation: fadeIn 0.5s ease-out;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.auth-tab.active {
    background: linear-gradient(135deg, var(--accent-project), var(--accent-study));
    border-color: transparent;
    color: white;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.form-group input {
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-project);
    box-shadow: 0 0 0 3px var(--accent-project-glow);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-error {
    color: var(--accent-work);
    font-size: 0.875rem;
    min-height: 1.25rem;
}

.submit-btn {
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--accent-project), var(--accent-study));
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

#googleButtonContainer {
    display: flex;
    justify-content: center;
}

.auth-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-features .feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Verification Banner */
.verification-banner {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--accent-work);
}

.verification-banner button {
    background: var(--accent-work);
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.verification-banner button:hover {
    opacity: 0.8;
}

/* Sync Status */
.sync-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--accent-total);
    transition: all 0.3s ease;
}

.sync-status.syncing {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
    color: var(--accent-project);
}

.sync-status.error {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
    color: var(--accent-work);
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}

/* View Toggle */
.view-toggle {
    position: absolute;
    right: 0;
    display: flex;
    gap: 4px;
    background: var(--bg-tertiary);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.view-btn {
    width: 36px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.view-btn.active {
    background: var(--accent-project);
    color: white;
}

.week-navigation {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.week-navigation.centered {
    justify-content: center;
}

.week-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 180px;
}

.nav-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-highlight);
}

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

.current-week {
    font-family: var(--font-mono);
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
}

.week-dates {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    color: var(--text-primary);
    min-width: 120px;
    text-align: center;
}

.add-week-btn {
    background: linear-gradient(135deg, var(--accent-project), var(--accent-study));
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.add-week-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

/* Spreadsheet */
/* TABLE: Minimal with subtle border */
.spreadsheet-container {
    background: transparent;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: none;
    padding: 0.5rem 0;
}

/* Calendar View */
.calendar-view {
    display: none;
}

.spreadsheet-container.calendar-mode .spreadsheet {
    display: none;
}

.spreadsheet-container.calendar-mode .calendar-view {
    display: block;
}

/* Month Calendar Header */
.calendar-month-header {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.calendar-weekday-headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
}

.calendar-weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem;
}

.calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 0.5rem 1rem 1rem;
}

.calendar-day {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    min-height: 80px;
    transition: border-color 0.2s, background 0.2s;
}

.calendar-day:hover {
    border-color: var(--border-highlight);
    background: rgba(255, 255, 255, 0.02);
}

.calendar-day.other-month {
    opacity: 0.4;
    background: transparent;
}

.calendar-day.current-week {
    border-color: var(--accent-project);
    background: rgba(6, 182, 212, 0.05);
}

.calendar-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.calendar-day-date {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.calendar-day.current-week .calendar-day-date {
    color: var(--accent-project);
}

.calendar-day-total {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-total);
}

.calendar-entries {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.calendar-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
    border-left: 2px solid var(--cat-color, var(--border-color));
}

.calendar-entry-icon {
    font-size: 0.75rem;
}

.calendar-entry-value {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--cat-color, var(--text-primary));
    cursor: pointer;
    min-width: 24px;
    text-align: right;
}

.calendar-entry-value:hover {
    opacity: 0.7;
}

.calendar-entry.empty {
    opacity: 0.3;
}

.calendar-entry.empty:hover {
    opacity: 0.6;
}

.calendar-edit-input {
    width: 36px;
    background: var(--bg-tertiary);
    border: 1px solid var(--cat-color, var(--accent-project));
    border-radius: 3px;
    color: var(--cat-color, var(--text-primary));
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    padding: 1px 2px;
    outline: none;
}

.calendar-edit-input::-webkit-outer-spin-button,
.calendar-edit-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calendar-edit-input {
    -moz-appearance: textfield;
}

.spreadsheet {
    overflow-x: auto;
}

.spreadsheet table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.spreadsheet th,
.spreadsheet td {
    padding: 0.875rem 1rem;
    text-align: center;
    border: none;
}

.spreadsheet th {
    background: transparent;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.spreadsheet th:first-child {
    text-align: left;
    padding-left: 1.5rem;
}

.spreadsheet tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.spreadsheet tbody tr:last-child td {
    border-bottom: none;
}

.spreadsheet td:first-child {
    text-align: left;
    padding-left: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Day name display - show full by default, short on mobile */
.day-short {
    display: none;
}

.spreadsheet tbody tr {
    transition: background 0.15s;
}

.spreadsheet tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.spreadsheet tbody tr:hover td:first-child {
    color: var(--text-primary);
}

.spreadsheet input {
    width: 70px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.2s ease;
}

.spreadsheet input:focus {
    outline: none;
    border-color: var(--accent-project);
    box-shadow: 0 0 0 3px var(--accent-project-glow);
}

.spreadsheet input.work-input:focus {
    border-color: var(--accent-work);
    box-shadow: 0 0 0 3px var(--accent-work-glow);
}

.spreadsheet input.project-input:focus {
    border-color: var(--accent-project);
    box-shadow: 0 0 0 3px var(--accent-project-glow);
}

.spreadsheet input.study-input:focus {
    border-color: var(--accent-study);
    box-shadow: 0 0 0 3px var(--accent-study-glow);
}

.day-total {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent-total);
}

/* Column Headers with Colors */
.col-work { color: var(--accent-work) !important; }
.col-project { color: var(--accent-project) !important; }
.col-study { color: var(--accent-study) !important; }
.col-total { color: var(--accent-total) !important; }

/* Summary Section */
.summary-section {
    margin-bottom: 2rem;
}

.weekly-summary h3,
.chart-section h3,
.all-weeks-chart h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.summary-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.summary-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
}

.summary-card.work { border-top: 3px solid var(--accent-work); }
.summary-card.project { border-top: 3px solid var(--accent-project); }
.summary-card.study { border-top: 3px solid var(--accent-study); }
.summary-card.total { border-top: 3px solid var(--accent-total); }

.card-icon { font-size: 2rem; }

.card-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-value {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
}

.summary-card.work .card-value { color: var(--accent-work); }
.summary-card.project .card-value { color: var(--accent-project); }
.summary-card.study .card-value { color: var(--accent-study); }
.summary-card.total .card-value { color: var(--accent-total); }

/* Chart Section */
.chart-section,
.all-weeks-chart {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.chart-container {
    position: relative;
    height: 300px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .app-container { padding: 1rem; }
    .header h1 { font-size: 1.75rem; }
    .controls { flex-direction: column; align-items: center; }
    .week-navigation { justify-content: center; }
    .week-info { min-width: 140px; }
    .summary-cards { grid-template-columns: repeat(2, 1fr); }
    .spreadsheet input { width: 50px; padding: 0.375rem; font-size: 0.8rem; }
    .spreadsheet th, .spreadsheet td { padding: 0.75rem 0.5rem; }
    .auth-card { padding: 1.5rem; margin: 1rem; }
    .auth-features { flex-direction: column; gap: 0.5rem; }
    /* Hide +/- buttons on tablet/mobile */
    .hour-btn { display: none !important; }
    /* Show short day names on tablet/mobile */
    .day-full { display: none; }
    .day-short { display: inline; }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .app-container {
        padding: 0.75rem;
        padding-bottom: 100px; /* Space for floating timer */
    }

    /* Header - Option C layout */
    .header {
        margin-bottom: 0.5rem;
        padding: 0.5rem 0;
    }

    .header-top {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    /* Row 1: Logo left */
    .logo {
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    .logo-icon {
        font-size: 1.1rem;
        line-height: 1;
        display: flex;
        align-items: center;
    }

    .header h1 {
        font-size: 1.25rem;
        line-height: 1;
    }

    /* Row 1: Auth section right */
    .auth-section {
        gap: 0.4rem;
    }

    /* Hide button text on mobile for feedback/donate only */
    .feedback-btn .feedback-text,
    .donate-btn .donate-text {
        display: none;
    }

    .feedback-btn,
    .donate-btn {
        padding: 0.5rem 0.6rem;
        min-width: auto;
        border-radius: 50%;
    }

    .feedback-btn .feedback-icon,
    .donate-btn .donate-icon {
        font-size: 1rem;
        margin: 0;
    }

    /* User profile compact */
    .user-profile {
        gap: 0.4rem;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .user-info {
        display: none;
    }

    /* Timer widget - full width row */
    .timer-widget {
        justify-content: center;
        padding: 0.5rem 1rem;
        background: var(--bg-tertiary);
        border-radius: var(--radius-md);
        width: 100%;
        order: 10;
    }

    /* Start timer button - full width row below header */
    .start-timer-btn {
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        border-radius: 50px !important;
        justify-content: center;
        order: 10;
    }

    /* Week navigation */
    .controls {
        gap: 0.5rem;
    }

    .week-navigation {
        width: 100%;
        padding: 0;
    }

    .week-navigation.centered {
        gap: 0.5rem;
        justify-content: space-between;
    }

    .nav-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .week-info {
        min-width: auto;
        flex: 1;
        text-align: center;
    }

    .current-week {
        font-size: 1rem;
    }

    .week-dates {
        font-size: 0.65rem;
    }

    .view-toggle {
        position: static;
        transform: none;
    }

    .view-btn {
        padding: 0.4rem 0.5rem;
        font-size: 0.85rem;
    }

    /* Data table - Full width for mobile */
    .spreadsheet-container {
        padding: 0.5rem;
        margin-bottom: 1rem;
        overflow-x: hidden;
    }

    .spreadsheet {
        font-size: 0.8rem;
        width: 100%;
        table-layout: auto;
    }

    .spreadsheet colgroup {
        display: none;
    }

    .spreadsheet th,
    .spreadsheet td {
        padding: 0.4rem 0.2rem;
        text-align: center;
    }

    .spreadsheet th:first-child,
    .spreadsheet td:first-child {
        text-align: left;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    /* Show short day names on mobile */
    .day-full {
        display: none;
    }

    .day-short {
        display: inline;
    }

    /* Hide settings column on mobile */
    .spreadsheet th.col-settings,
    .spreadsheet td:last-child {
        display: none;
    }

    .hour-input-group {
        gap: 0;
        justify-content: center;
    }

    .hour-btn {
        display: none;
    }

    .hour-value {
        width: auto;
        min-width: unset;
        font-size: 0.75rem;
        padding: 0.2rem 0.3rem;
    }

    /* Category headers - icon only */
    .spreadsheet th .category-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.1rem;
        font-size: 0.65rem;
    }

    .spreadsheet th .category-icon {
        font-size: 1rem;
    }

    /* Summary cards */
    .summary-section {
        margin-bottom: 1rem;
    }

    .weekly-summary h3,
    .chart-section h3,
    .all-weeks-chart h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .summary-card {
        padding: 0.75rem;
    }

    .card-icon {
        font-size: 1.25rem;
    }

    .card-label {
        font-size: 0.65rem;
    }

    .card-value {
        font-size: 1.25rem;
    }

    /* Charts */
    .chart-section,
    .all-weeks-chart {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .chart-container {
        height: 200px;
    }

    /* Calendar view - scrollable with usable cells */
    .calendar-view {
        padding: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .calendar-month-header {
        font-size: 1rem;
        padding: 0.75rem;
        position: sticky;
        left: 0;
        background: var(--bg-secondary);
    }

    .calendar-weekday-headers {
        gap: 3px;
        padding: 0.25rem;
        min-width: 500px;
    }

    .calendar-weekday {
        font-size: 0.7rem;
        padding: 0.25rem 0;
        min-width: 65px;
    }

    .calendar-month-grid {
        gap: 3px;
        padding: 0.25rem;
        min-width: 500px;
    }

    .calendar-day {
        min-height: 70px;
        min-width: 65px;
        padding: 0.3rem;
    }

    .calendar-day-header {
        margin-bottom: 0.25rem;
    }

    .calendar-day-date {
        font-size: 0.7rem;
    }

    .calendar-day-total {
        font-size: 0.6rem;
    }

    .calendar-entries {
        gap: 2px;
    }

    .calendar-entry {
        padding: 2px 4px;
    }

    .calendar-entry-icon {
        font-size: 0.7rem;
    }

    .calendar-entry-value {
        font-size: 0.6rem;
    }

    /* Floating timer - Fixed at bottom */
    .timer-widget-floating {
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
        width: auto;
        padding: 0.75rem 1rem;
        border-radius: 50px;
    }

    .timer-widget-floating .timer-display {
        gap: 0.5rem;
    }

    .timer-widget-floating .timer-time {
        font-size: 1.1rem;
    }

    .timer-widget-floating .timer-category {
        font-size: 0.7rem;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .timer-widget-floating .timer-btn {
        width: 36px;
        height: 36px;
    }

    /* Timer FAB */
    .timer-fab {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    /* Modals */
    .donate-modal,
    .feedback-modal {
        width: 95%;
        max-width: none;
        margin: 1rem;
        padding: 1.5rem;
    }

    .donate-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .donate-option {
        padding: 0.75rem 0.25rem;
    }

    .feedback-type-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }

    .feedback-type-option {
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
    }

    /* Auth container */
    .auth-container {
        padding: 1rem;
    }

    .auth-card {
        padding: 1.25rem;
        margin: 0;
    }

    .auth-tabs {
        gap: 0;
    }

    .auth-tab {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

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

.spreadsheet-container, .summary-section, .chart-section, .all-weeks-chart {
    animation: fadeIn 0.5s ease-out;
}

.summary-card {
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

.summary-card:nth-child(1) { animation-delay: 0.1s; }
.summary-card:nth-child(2) { animation-delay: 0.2s; }
.summary-card:nth-child(3) { animation-delay: 0.3s; }
.summary-card:nth-child(4) { animation-delay: 0.4s; }
.summary-card:nth-child(5) { animation-delay: 0.5s; }
.summary-card:nth-child(6) { animation-delay: 0.6s; }
.summary-card:nth-child(7) { animation-delay: 0.7s; }
.summary-card:nth-child(8) { animation-delay: 0.8s; }

/* Dynamic category colors */
.col-category {
    color: var(--cat-color, var(--text-primary));
}

/* Hour input group with +/- buttons - OPTION 1: Minimalist Inline */
.hour-input-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.hour-btn {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hour-input-group:hover .hour-btn {
    color: rgba(255, 255, 255, 0.6);
}

.hour-btn:hover {
    color: var(--cat-color, white) !important;
    background: rgba(255, 255, 255, 0.1);
}

.hour-btn:active {
    transform: scale(0.9);
}

.hour-value {
    width: 75px; /* Fixed width to fit "6h 45min" */
    min-width: 75px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cat-color, var(--text-primary));
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Removed - formatHours() now handles the unit suffix */

.hour-value:hover {
    cursor: text;
    opacity: 0.8;
}

/* Hide +/- buttons when editing */
.hour-input-group:has(.time-edit-container) .hour-btn {
    visibility: hidden;
}


/* Time Edit Container - dual hours/minutes input */
.time-edit-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: transparent;
    border: none;
    padding: 0;
    width: 75px; /* Match hour-value width */
}

.time-edit-hours,
.time-edit-mins {
    width: 16px;
    height: 22px;
    background: var(--bg-tertiary);
    border: 1px solid var(--cat-color, var(--accent-project));
    border-radius: 2px;
    color: var(--cat-color, var(--text-primary));
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    padding: 0;
    outline: none;
    -moz-appearance: textfield;
    line-height: 22px;
}

.time-edit-hours::-webkit-outer-spin-button,
.time-edit-hours::-webkit-inner-spin-button,
.time-edit-mins::-webkit-outer-spin-button,
.time-edit-mins::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.time-edit-sep {
    color: var(--text-secondary);
    font-size: 0.6rem;
    font-weight: 600;
    opacity: 0.9;
    margin: 0 1px;
}

.hour-edit-input {
    width: 32px;
    background: var(--bg-tertiary);
    border: 1px solid var(--cat-color, var(--accent-project));
    border-radius: 4px;
    color: var(--cat-color, var(--text-primary));
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    padding: 2px 0;
    outline: none;
    box-sizing: border-box;
}

.hour-edit-input::-webkit-outer-spin-button,
.hour-edit-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.hour-edit-input {
    -moz-appearance: textfield;
}

.summary-card[style*="--cat-color"] {
    border-color: color-mix(in srgb, var(--cat-color) 30%, transparent);
}

.summary-card[style*="--cat-color"] .card-value {
    color: var(--cat-color);
    text-shadow: 0 0 20px color-mix(in srgb, var(--cat-color) 40%, transparent);
}

/* Edit categories button */
.col-settings {
    width: 40px;
    text-align: center;
}

.edit-categories-btn {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.edit-categories-btn:hover {
    opacity: 1;
    transform: rotate(45deg);
    background: var(--bg-hover);
}

/* Category Management Modal */
.category-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.category-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--shadow-glow);
    animation: slideUp 0.3s ease-out;
}

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

.category-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.category-modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--text-primary);
}

.category-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    position: relative;
}

.category-icon-picker,
.category-color-picker {
    position: relative;
}

.icon-btn,
.color-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, transform 0.2s;
}

.icon-btn:hover,
.color-btn:hover {
    border-color: var(--border-highlight);
    transform: scale(1.05);
}

.icon-dropdown,
.color-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    display: none;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.icon-dropdown.open,
.color-dropdown.open {
    display: grid;
}

.icon-dropdown {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    width: 200px;
}

.color-dropdown {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    width: 160px;
}

.icon-option,
.color-option {
    width: 32px;
    height: 32px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, transform 0.2s;
}

.icon-option:hover,
.color-option:hover {
    transform: scale(1.1);
}

.icon-option.selected,
.color-option.selected {
    border-color: var(--accent-project);
}

.category-name-input {
    flex: 1;
    padding: 0.625rem 0.875rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.category-name-input:focus {
    outline: none;
    border-color: var(--accent-project);
}

.delete-category-btn,
.archive-category-btn,
.restore-category-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
}

.delete-category-btn:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.archive-category-btn:hover:not(:disabled) {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
}

.restore-category-btn:hover {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.visibility-category-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.hard-delete-category-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Chart hidden indicator */
.category-item.chart-hidden {
    opacity: 0.6;
}

.category-item.chart-hidden::after {
    content: 'Hidden from charts';
    position: absolute;
    right: 140px;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.delete-category-btn:disabled,
.archive-category-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Category Sections */
.category-section {
    margin-bottom: 1.5rem;
}

.category-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.archived-section {
    opacity: 0.7;
}

.archived-section .category-section-title {
    color: var(--text-muted);
}

/* Archived Category Item */
.category-item.archived {
    background: var(--bg-secondary);
    border-style: dashed;
    padding: 0.5rem 0.75rem;
}

.category-item.archived .archived-icon {
    font-size: 1.25rem;
    opacity: 0.7;
}

.category-item.archived .archived-name {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.category-item.archived .archived-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    opacity: 0.7;
}

.add-category-btn {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.add-category-btn:hover {
    border-color: var(--accent-project);
    color: var(--accent-project);
    background: rgba(6, 182, 212, 0.1);
}

.category-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.modal-cancel-btn,
.modal-save-btn {
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-cancel-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.modal-cancel-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-save-btn {
    background: linear-gradient(135deg, var(--accent-project), var(--accent-study));
    border: none;
    color: white;
}

.modal-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

/* Hard Delete Confirmation Modal */
.delete-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    animation: fadeIn 0.2s ease-out;
}

.delete-modal {
    background: var(--bg-secondary);
    border: 1px solid #ef4444;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(239, 68, 68, 0.2);
    animation: slideUp 0.3s ease-out;
}

.delete-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.delete-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #ef4444;
}

.delete-modal-body {
    padding: 1.5rem;
}

.delete-modal-body p {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.delete-modal-body .warning-text {
    color: #ef4444;
    font-size: 0.9rem;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid #ef4444;
}

.confirm-input-wrapper {
    margin-top: 1.25rem;
}

.confirm-input-wrapper label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.confirm-input-wrapper input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 1rem;
    text-align: center;
    letter-spacing: 0.1em;
}

.confirm-input-wrapper input:focus {
    outline: none;
    border-color: #ef4444;
}

.delete-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.modal-delete-btn {
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: #ef4444;
    border: none;
    color: white;
}

.modal-delete-btn:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-1px);
}

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

/* Donate Modal */
.donate-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease-out;
}

.donate-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    padding: 2rem;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

.donate-modal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.donate-modal .modal-close:hover {
    color: var(--text-primary);
}

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

.donate-header .donate-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.donate-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.donate-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.donate-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.donate-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 0.5rem;
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.donate-option:hover {
    border-color: var(--accent-project);
    background: rgba(99, 102, 241, 0.1);
}

.donate-option .option-icon {
    font-size: 1.5rem;
}

.donate-option .option-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.donate-option .option-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-total);
    font-family: var(--font-mono);
}

.donate-custom {
    text-align: center;
}

.donate-custom label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.custom-amount-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.custom-amount-input .currency {
    color: var(--text-secondary);
    font-size: 1.25rem;
}

.custom-amount-input input {
    width: 100px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-family: var(--font-mono);
    text-align: center;
}

.custom-amount-input input:focus {
    outline: none;
    border-color: var(--accent-project);
}

.donate-custom-btn {
    background: linear-gradient(135deg, #f5af19, #f12711);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 2rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.donate-custom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 175, 25, 0.4);
}

/* Feedback Modal */
.feedback-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease-out;
}

.feedback-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 450px;
    padding: 2rem;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

.feedback-modal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.feedback-modal .modal-close:hover {
    color: var(--text-primary);
}

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

.feedback-header .feedback-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.feedback-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.feedback-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feedback-form label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    display: block;
}

.feedback-type-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.feedback-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.feedback-type-option:hover {
    border-color: var(--accent-project);
    background: rgba(99, 102, 241, 0.1);
}

.feedback-type-option.active {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.15);
    color: var(--text-primary);
}

.feedback-type-option .type-icon {
    font-size: 1.25rem;
}

.feedback-form textarea {
    width: 100%;
    min-height: 120px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
}

.feedback-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.feedback-form textarea::placeholder {
    color: var(--text-muted);
}

.feedback-submit-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.875rem 2rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.feedback-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.feedback-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.feedback-success {
    text-align: center;
    padding: 1rem 0;
}

.feedback-success .success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feedback-success h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feedback-success p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Thank You Modal */
.thank-you-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: fadeIn 0.3s ease-out;
}

.thank-you-modal {
    text-align: center;
    animation: thankYouPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes thankYouPop {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

.thank-you-content {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    max-width: 400px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5),
                0 0 100px rgba(245, 175, 25, 0.2);
}

.thank-you-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.thank-you-content h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #f5af19, #f12711);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.thank-you-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.thank-you-content .thank-you-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.thank-you-btn {
    background: linear-gradient(135deg, #f5af19, #f12711);
    border: none;
    border-radius: 50px;
    padding: 0.875rem 2rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.thank-you-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 175, 25, 0.5);
}

/* Donation Prompt Modal */
.donation-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: fadeIn 0.4s ease-out;
}

.donation-prompt-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 440px;
    width: 90%;
    padding: 2rem;
    position: relative;
    animation: slideUp 0.4s ease-out;
}

.donation-prompt-modal .prompt-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.donation-prompt-modal .prompt-close:hover {
    color: var(--text-primary);
}

.prompt-content {
    text-align: center;
}

.prompt-avatar {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.prompt-content h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.prompt-message {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.prompt-message strong {
    color: var(--accent-total);
}

.prompt-small {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.prompt-donate-btn {
    background: linear-gradient(135deg, #f5af19, #f12711);
    border: none;
    border-radius: 50px;
    padding: 0.875rem 2rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.prompt-donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 175, 25, 0.4);
}

.prompt-later-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.prompt-later-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

/* ========== TIMER STYLES ========== */

/* Start Timer Button */
.start-timer-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent-project);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.start-timer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
}

/* Timer Widget in Header */
.timer-widget {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.timer-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timer-time {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.timer-category {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 50px;
    white-space: nowrap;
}

.timer-controls {
    display: flex;
    gap: 0.5rem;
}

.timer-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.timer-btn.play {
    background: var(--accent-project);
    color: white;
}

.timer-btn.stop {
    background: var(--accent-total);
    color: white;
}

.timer-btn.discard {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border: none;
}

.timer-btn:hover {
    transform: scale(1.1);
}

.timer-btn.discard:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Timer Modal */
.timer-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease-out;
}

.timer-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 420px;
    padding: 2rem;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

.timer-modal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.timer-modal h2 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.timer-mode-tabs {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 1.5rem;
}

.timer-mode-tab {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.timer-mode-tab.active {
    background: var(--accent-project);
    color: white;
}

.timer-countdown-setup {
    margin-bottom: 1.5rem;
}

.timer-countdown-setup label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.duration-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.duration-preset {
    padding: 0.625rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.duration-preset:hover {
    border-color: var(--accent-project);
    color: var(--text-primary);
}

.duration-preset.active {
    background: var(--accent-project);
    border-color: var(--accent-project);
    color: white;
}

.custom-duration input {
    width: 100%;
    padding: 0.625rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.custom-duration input:focus {
    outline: none;
    border-color: var(--accent-project);
}

.timer-category-select {
    margin-bottom: 1.5rem;
}

.timer-category-select label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.category-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.category-option:hover {
    border-color: var(--cat-color);
    color: var(--cat-color);
}

.category-option.active {
    border-color: var(--cat-color);
    background: color-mix(in srgb, var(--cat-color) 15%, transparent);
    color: var(--cat-color);
}

.timer-start-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent-project);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.timer-start-btn:hover {
    background: var(--accent-project-hover);
    transform: translateY(-2px);
}

/* Timer Complete Modal */
.timer-complete-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: fadeIn 0.3s ease-out;
}

.timer-complete-modal {
    text-align: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 380px;
    animation: thankYouPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.complete-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.timer-complete-modal h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timer-complete-modal p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.timer-complete-modal p strong {
    color: var(--accent-total);
}

.complete-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.complete-save-btn {
    padding: 0.875rem 2rem;
    background: var(--accent-total);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.complete-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.complete-discard-btn {
    padding: 0.75rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.complete-discard-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* Timer Notification */
.timer-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-total);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
    animation: slideUp 0.3s ease-out;
    z-index: 2000;
}

.timer-notification .notif-icon {
    font-size: 1.25rem;
}

.timer-notification.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

/* Floating Timer FAB */
.timer-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-project);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: all 0.3s;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.6);
}

/* Floating Timer Widget */
.timer-widget-floating {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
}

/* Tutorial Overlay */
.tutorial-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.tutorial-overlay.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

.tutorial-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

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

.tutorial-header .tutorial-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.tutorial-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.tutorial-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tutorial-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.tutorial-step-icon {
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.tutorial-step-text h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.tutorial-step-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.tutorial-step-text strong {
    color: var(--accent-project);
}

.tutorial-close-btn {
    width: 100%;
    padding: 0.875rem;
    background: var(--accent-project);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tutorial-close-btn:hover {
    background: var(--accent-project-hover);
    transform: translateY(-1px);
}


/* Capacitor (Mobile App) specific styles */
body.capacitor-app .donate-btn,
body.capacitor-app .donation-prompt-overlay {
    display: none !important;
}

/* Safe area insets for notched devices */
body.capacitor-app {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}


/* Native Google Sign-In Button */
.google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 12px 24px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 50px;
    font-family: "Roboto", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #3c4043;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.google-signin-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.google-signin-btn:active {
    background: #f1f3f4;
}

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