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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #640D5F 0%, #0D1164 100%);
    background-attachment: fixed;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
}

html {
    height: -webkit-fill-available;
    background: linear-gradient(135deg, #640D5F 0%, #0D1164 100%);
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 500px;
}

.tracker-card {
    background: white;
    border-radius: 8px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

h1 {
    color: #0D1164;
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.timer-display {
    font-size: 6rem;
    font-weight: 700;
    color: #EA2264;
    margin-bottom: 50px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 16px 40px;
    font-size: 1.1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 140px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.btn-primary {
    background: linear-gradient(135deg, #640D5F 0%, #0D1164 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #751673 0%, #141d7a 100%);
}

.btn-primary.paused {
    background: linear-gradient(135deg, #EA2264 0%, #F78D60 100%);
}

.btn-primary.paused:hover {
    background: linear-gradient(135deg, #f03975 0%, #f99e75 100%);
}

.btn-secondary {
    background: #F78D60;
    color: white;
    border: 2px solid #EA2264;
}

.btn-secondary:hover {
    background: #EA2264;
    border-color: #640D5F;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    html {
        background: linear-gradient(135deg, #0D1164 0%, #050533 100%);
        background-attachment: fixed;
    }

    body {
        background: linear-gradient(135deg, #0D1164 0%, #050533 100%);
        background-attachment: fixed;
    }

    .tracker-card {
        background: #0D1164;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    }

    h1 {
        color: #F78D60;
    }

    .timer-display {
        color: #EA2264;
    }

    .btn-secondary {
        background: #640D5F;
        color: white;
        border: 2px solid #EA2264;
    }

    .btn-secondary:hover {
        background: #EA2264;
        border-color: #F78D60;
    }
}

@media (max-width: 600px) {
    .tracker-card {
        padding: 40px 30px;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .timer-display {
        font-size: 4rem;
        margin-bottom: 40px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
