/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    background: #fff;
    color: #333;
    min-height: 100vh;
}

/* Main container */
.breathing-app {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.breathing-content {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    color: #666;
    margin-bottom: 2rem;
}

/* Breathing box */
.breathing-box {
    position: relative;
    width: min(80vw, 300px);
    height: min(80vw, 300px);
    margin: 0 auto 2rem;
}

.square {
    width: 100%;
    height: 100%;
    border: 2px solid #333;
    position: relative;
}

.dot {
    width: 16px;
    height: 16px;
    background: #d4af37;
    border-radius: 50%;
    position: absolute;
    left: 0;
    bottom: 0;
    margin-left: -8px;
    margin-bottom: -8px;
    transition: transform linear;
    z-index: 2;
}

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

#phase-text {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

#count-text {
    font-size: 3rem;
    font-weight: 300;
    color: #d4af37;
}

/* Controls */
.controls {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-top: 2rem;
}

.settings {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.settings label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.settings input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

#startButton {
    background: #d4af37;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 100px;
    cursor: pointer;
    transition: background-color 0.2s;
    min-width: 120px;
}

#startButton:hover {
    background: #c4a030;
}

.breathing-patterns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.breathing-patterns button {
    background: white;
    border: 2px solid #d4af37;
    color: #333;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
    font-weight: 500;
    min-width: 200px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.breathing-patterns button.active {
    background: #d4af37;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.breathing-patterns button:hover {
    background: #d4af37;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.breathing-patterns button:not(.active) {
    opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .breathing-app {
        padding: 16px;
    }

    h1 {
        font-size: 2rem;
    }

    .breathing-box {
        margin-bottom: 1.5rem;
    }

    .controls {
        padding: 1rem;
    }

    .settings {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

.navigation {
    margin-top: 20px;
    text-align: center;
}

.nav-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4a6fa5;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: #3a5a8c;
    text-decoration: none;
    color: white;
} 