@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
        
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-muted: #666666;
    --accent-work: #ff6b6b;
    --accent-break: #4ecdc4;
    --accent-long-break: #45b7d1;
    --border-color: #333333;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}

.footer {
  color: #eeeeee;
  padding: 1.2rem;
  text-align: center;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap; /* quebra em telas pequenas */
}

.footer a {
  color: #eeeeee;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Timer Page */
.timer-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    overflow: hidden; /* Adicionar aqui */
}

.timer-page.hidden {
    display: none;
}

.logo {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.settings-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.settings-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.mode-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mode-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mode-btn.active {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.mode-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.current-activity {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: center;
    min-height: 2rem;
    max-width: 400px;
    line-height: 1.3;
}

.current-activity.active {
    color: var(--accent-work);
}

.timer-container {
    position: relative;
    margin-bottom: 3rem;
}

.progress-circle {
    width: 350px;
    height: 350px;
    position: relative;
}

.progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 3;
}

.progress-bar {
    fill: none;
    stroke: var(--accent-work);
    stroke-width: 3;
    stroke-linecap: round;
    transition: all 0.5s ease;
    filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.5));
}

.timer-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    font-weight: 300;
    color: var(--text-primary);
    font-family: 'Inter', monospace;
    letter-spacing: -4px;
    text-align: center;
}

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

.control-btn {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.icon-btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

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

/* Settings Page */
.settings-page {
    display: none;
    min-height: 100vh;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    overflow-y: auto; /* Adicionar esta linha */
}

.settings-page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.settings-title {
    font-size: 2rem;
    font-weight: 600;
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.settings-section {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.setting-label {
    font-weight: 500;
    color: var(--text-primary);
}

.setting-input {
    width: 80px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-align: center;
    font-family: inherit;
}

.setting-input:focus {
    outline: none;
    border-color: var(--accent-work);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.activity-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
}

.activity-input:focus {
    outline: none;
    border-color: var(--accent-work);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

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

.activity-setting {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

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

.stat-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-work);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.download-btn {
    background: linear-gradient(135deg, var(--accent-break), #6ee7df);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(78, 205, 196, 0.3);
}

.activity-history {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 1rem;
}

.activity-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-name {
    font-weight: 500;
}

.activity-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .progress-circle {
        width: 280px;
        height: 280px;
    }

    .timer-display {
        font-size: 4rem;
    }

    .current-activity {
        font-size: 1.2rem;
        max-width: 280px;
    }

    .mode-selector {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .controls {
        flex-direction: column;
        gap: 1rem;
    }

    .control-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }

    .logo {
        position: static;
        margin-bottom: 2rem;
    }

    .settings-icon {
        top: 1rem;
        right: 1rem;
    }

    .timer-page {
        padding: 1rem;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.02); }
}

.timer-display.pulse {
    animation: pulse 1s infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.8)); }
}

.progress-bar.pulse {
    animation: glow 2s infinite;
}

@keyframes activityPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.current-activity.pulse {
    animation: activityPulse 2s infinite;
}

/* Mode States */
.work-mode .progress-bar { stroke: var(--accent-work); }
.work-mode .mode-btn.active { background: var(--accent-work); color: white; }
.work-mode .current-activity.active { color: var(--accent-work); }

.break-mode .progress-bar { stroke: var(--accent-break); }
.break-mode .mode-btn.active { background: var(--accent-break); color: white; }
.break-mode .current-activity.active { color: var(--accent-break); }

.long-break-mode .progress-bar { stroke: var(--accent-long-break); }
.long-break-mode .mode-btn.active { background: var(--accent-long-break); color: white; }
.long-break-mode .current-activity.active { color: var(--accent-long-break); }