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

/* Center page */
body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #141e30, #243b55);
    font-family: Arial, sans-serif;
}

/* Main container */
.timer-container {
    background: #ffffff;
    width: 100%;
    max-width: 450px;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Title */
.timer-container h1 {
    margin-bottom: 15px;
}

/* Input section */
.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.input-section input,
.input-section button {
    padding: 10px;
    font-size: 1rem;
}

.input-section button {
    background: #4caf50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

/* Error message */
#errorMsg {
    color: red;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Countdown display */
.countdown {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.countdown div {
    background: #f4f4f4;
    padding: 10px;
    border-radius: 8px;
    width: 22%;
}

.countdown span {
    display: block;
    font-size: 1.6rem;
    font-weight: bold;
}

/* Completion message */
#completeMsg {
    margin-top: 15px;
    font-weight: bold;
    color: green;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .input-section {
        flex-direction: column;
    }

    .countdown {
        flex-direction: column;
        gap: 10px;
    }

    .countdown div {
        width: 100%;
    }
}
