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

:root {
    --primary-color: #FF4B4B;
    --secondary-color: #1a1a1a;
    --accent-color: #FFD700;
    --background-color: #121212;
    --surface-color: #1E1E1E;
    --text-color: #FFFFFF;
}

body {
    font-family: 'Roboto Condensed', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0;
    padding: 1.5rem;
    background-color: var(--surface-color);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 100vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

h1 {
    font-family: 'Bebas Neue', sans-serif;
    text-align: center;
    color: var(--primary-color);
    margin: 0;
    font-size: 2.5rem;
    letter-spacing: 2px;
}

.header i {
    font-size: 2rem;
    color: var(--accent-color);
}

h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timer-display {
    text-align: center;
    margin: 1rem 0;
    position: relative;
}

.timer-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: linear-gradient(145deg, var(--surface-color), var(--secondary-color));
    border-radius: 50%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 75, 75, 0.3);
    position: relative;
}

.timer-circle::before {
    content: '';
    position: absolute;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    opacity: 0.5;
    animation: pulse 2s infinite;
}

.time {
    font-size: 4rem;
    font-weight: bold;
    color: var(--text-color);
    font-family: 'Bebas Neue', monospace;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 75, 75, 0.5);
}

.phase {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 0.5rem;
    text-transform: uppercase;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
}

.motivation {
    font-size: 1rem;
    color: var(--primary-color);
    margin-top: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #232323, #1a1a1a);
    color: var(--text-color);
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 75, 75, 0.3);
}

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

.btn.primary {
    background: linear-gradient(145deg, var(--primary-color), #ff3333);
    color: white;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.settings {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 15px;
    margin: 0.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 0.75rem;
    position: relative;
}

label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    color: var(--text-color);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

label i {
    color: var(--primary-color);
}

input[type="number"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-color);
    transition: all 0.3s ease;
}

input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 75, 75, 0.2);
}

.progress-container {
    margin-top: 0.5rem;
}

.progress-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 75, 75, 0.3);
}

.round-info {
    text-align: center;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        margin: 0;
        padding: 1rem;
        height: 100vh;
        border-radius: 0;
    }

    .timer-circle {
        width: 160px;
        height: 160px;
    }

    .time {
        font-size: 3rem;
    }

    .phase {
        font-size: 1.2rem;
    }

    .controls {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .btn {
        flex: 1;
        min-width: 100px;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .settings {
        padding: 0.75rem;
    }

    .form-group {
        margin-bottom: 0.5rem;
    }

    input[type="number"] {
        padding: 0.4rem 0.6rem;
    }
}