:root {
    --primary-color: #c0392b;
    --secondary-color: #a93226;
    --text-color: #ffffff;
    --bg-color: #c0392b;
    --button-bg: #ffffff;
    --button-text: #c0392b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.header-buttons {
    display: flex;
    gap: 1rem;
}

.header-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
}

.timer-container {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
    padding: 2rem;
    flex: 1;
}

.mode-switches {
    background: rgba(0, 0, 0, 0.1);
    display: inline-flex;
    padding: 0.3rem;
    border-radius: 25px;
    margin-bottom: 2rem;
}

.mode-btn {
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    background: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1rem;
}

.mode-btn.active {
    background: rgba(0, 0, 0, 0.2);
}

.timer {
    font-size: 8rem;
    font-weight: 300;
    margin: 2rem 0;
    color: var(--text-color);
}

.start-btn {
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.start-btn:hover {
    transform: translateY(-2px);
}

.session-count {
    margin-top: 1rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.tasks-section {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.add-task-btn {
    border: 2px dashed rgba(255, 255, 255, 0.5);
    width: 100%;
    padding: 1rem;
    background: none;
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
}

.add-task-btn:hover {
    border-color: var(--text-color);
}

.ad-container {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    text-align: center;
    z-index: 1000;
}

.ad-container::before {
    content: '';
    display: block;
    height: 20px;
}

@media (max-width: 768px) {
    .ad-container {
        padding: 5px 0;
    }
}

/* Add these styles for the back link */
.back-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    transition: background-color 0.2s;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.3);
}