/* General Body and Font Styles */
body {
    background-color: #e0f7fa; /* Light Sky Blue */
    font-family: 'Aptos', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 15px;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Prevents flash on mobile tap */
}

/* Main Container */
.container {
    width: 100%;
    max-width: 500px;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #b0bec5;
}

/* Title Styling */
.title {
    font-family: 'Gabriela', serif;
    font-size: 3rem;
    color: #004d40; /* Dark Teal */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    margin-top: 0;
    margin-bottom: 5px;
}

/* Status Indicator */
#status_indicator {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    transition: color 0.4s ease;
}

.status-running {
    color: #2e7d32; /* Green */
    animation: pulse 2s infinite;
}

.status-stopped {
    color: #c62828; /* Red */
}

/* Countdown Display */
#countdown_display {
    font-size: 6rem;
    font-weight: bold;
    color: #01579b; /* Dark Blue */
    margin-bottom: 15px;
    line-height: 1;
}

/* Interval Input Styling */
.interval-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.time-input {
    font-size: 3rem;
    width: 80px;
    text-align: center;
    border: 1px solid #b0bec5;
    border-radius: 15px;
    background-color: #f1f8e9; /* Light Green */
    color: #33691e; /* Dark Green */
    -moz-appearance: textfield;
}

.time-input::-webkit-outer-spin-button,
.time-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.label {
    display: none;
}

.colon {
    font-size: 2.5rem;
    font-weight: bold;
    color: #004d40;
    margin: 0 10px;
}

/* Button Styling */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    padding: 20px;
    border: 2px solid #000000;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease, opacity 0.3s;
    user-select: none;
}

.btn:disabled {
    background-color: #bdbdbd; /* Grey for disabled */
    cursor: not-allowed;
    opacity: 0.7;
}

.start-btn {
    background-color: #2e7d32; /* Green */
}

.start-btn:not(:disabled):hover {
    background-color: #388e3c;
}

.stop-btn {
    background-color: #c62828; /* Red */
}

.stop-btn:not(:disabled):hover {
    background-color: #d32f2f;
}

.btn:active:not(:disabled) {
    transform: translateY(5px);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}


/* Responsive adjustments */
@media (max-width: 400px) {
    .title { font-size: 2.5rem; }
    #status_indicator { font-size: 1.1rem; }
    #countdown_display { font-size: 4.5rem; }
    .time-input { font-size: 2.5rem; width: 70px; }
    .colon { font-size: 2rem; }
    .btn { font-size: 2rem; padding: 15px; }
}