@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary-color: #4361ee;
    --secondary-color: #7209b7;
    --text-color: #333333;
    --bg-color: #f8f9fa;
    --card-bg: rgba(255, 255, 255, 0.9);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --accent-color: #3a86ff;
}

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

body {
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, var(--bg-color), #e6f2ff);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(67, 97, 238, 0.1) 100%);
    z-index: -1;
}

.container {
    width: 98%;
    max-width: 1800px;
    padding: 3rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px var(--shadow-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 2px solid rgba(67, 97, 238, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(67, 97, 238, 0.1) 0%, transparent 70%);
    z-index: -1;
    animation: pulse 15s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.1);
        opacity: 0.1;
    }
}

h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
}

/* Setup Panel Styles */
.setup-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    width: 100%;
}

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

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-group input {
    width: 200px;
    height: 120px;
    background: var(--card-bg);
    border: 4px solid rgba(67, 97, 238, 0.3);
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    color: var(--text-color);
    text-align: center;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(67, 97, 238, 0.5);
}

.input-group label {
    margin-top: 0.8rem;
    font-size: 1.4rem;
    opacity: 0.8;
    font-weight: 600;
}

.separator {
    font-size: 4rem;
    font-weight: bold;
    margin: 0 1rem;
    color: var(--primary-color);
}

/* Timer Panel Styles */
.timer-panel {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    width: 100%;
}

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

.time-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 5rem;
    background: var(--card-bg);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 4px solid rgba(67, 97, 238, 0.2);
    min-width: 300px;
}

.time-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(114, 9, 183, 0.05));
    z-index: -1;
}

.time-value {
    font-size: 14rem;
    font-weight: 700;
    color: var(--text-color);
    text-shadow: 0 0 20px rgba(67, 97, 238, 0.3);
    line-height: 1;
}

.time-label {
    font-size: 1.6rem;
    opacity: 0.7;
    margin-top: 1rem;
    font-weight: 600;
}

.time-separator {
    font-size: 12rem;
    font-weight: bold;
    margin: 0 3rem;
    color: var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.progress-bar-container {
    width: 100%;
    height: 20px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 2.5rem 0;
    border: 2px solid rgba(67, 97, 238, 0.2);
}

.progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    transition: width 1s linear;
}

/* Button Styles */
.controls {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
}

.btn {
    padding: 1.5rem 4rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: white;
    letter-spacing: 1px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    transition: all 0.3s ease;
}

.start-btn {
    background: transparent;
    color: var(--text-color);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.5);
}

.pause-btn, .reset-btn {
    background: transparent;
    color: var(--text-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pause-btn::before {
    background: linear-gradient(45deg, #f72585, #b5179e);
}

.reset-btn::before {
    background: linear-gradient(45deg, #4cc9f0, #4895ef);
}

.preset-btn {
    background: transparent;
    color: white;
    padding: 1rem 2.5rem;
    margin: 0 1rem;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.2);
    font-size: 1.8rem;
}

.preset-btn::before {
    background: linear-gradient(45deg, #4cc9f0, #3a86ff);
}

.preset-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
}

.presets-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(-1px);
}

/* Responsive Styles */
@media (max-width: 1600px) {
    .container {
        width: 98%;
        padding: 2.5rem;
        min-height: 70vh;
    }

    h1 {
        font-size: 3.2rem;
    }

    .input-group input {
        width: 180px;
        height: 110px;
        font-size: 3.5rem;
    }

    .time-value {
        font-size: 12rem;
    }

    .time-separator {
        font-size: 10rem;
    }

    .btn {
        padding: 1.3rem 3.5rem;
        font-size: 1.8rem;
    }
}

@media (max-width: 1200px) {
    .container {
        width: 98%;
        padding: 2rem;
        min-height: 60vh;
    }

    h1 {
        font-size: 3rem;
    }

    .input-group input {
        width: 160px;
        height: 100px;
        font-size: 3rem;
    }

    .time-value {
        font-size: 10rem;
    }

    .time-separator {
        font-size: 8rem;
    }

    .btn {
        padding: 1.2rem 3rem;
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 2rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .input-group input {
        width: 120px;
        height: 80px;
        font-size: 2.5rem;
    }

    .time-value {
        font-size: 6rem;
    }

    .time-separator {
        font-size: 5rem;
        margin: 0 1.5rem;
    }

    .btn {
        padding: 0.9rem 2rem;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .input-group input {
        width: 100px;
        height: 70px;
        font-size: 2.2rem;
    }

    .separator {
        font-size: 3rem;
    }

    .time-value {
        font-size: 5rem;
    }

    .time-separator {
        font-size: 4rem;
        margin: 0 1rem;
    }

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

    .btn {
        width: 100%;
        padding: 0.8rem 1.8rem;
        font-size: 1.2rem;
    }
}
