* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}
.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
}
/* Greeting */
.greeting {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #a8d0e6;
    text-transform: uppercase;
    letter-spacing: 2px;
}
/* Clock */
.time {
    font-size: 5rem;
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    margin-bottom: 0.5rem;
}
.date {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
}
/* Countdown */
.countdown-container {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1.5rem;
}
.countdown-container h3 {
    margin-bottom: 1rem;
    font-weight: 400;
}
.countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.countdown div {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    color: #ccc;
}
.countdown span {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
}
/* Alarm Styles */
.alarm-container {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.alarm-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

input[type="time"] {
    padding: 10px;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
}

button {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

#set-alarm-btn {
    background-color: #4CAF50; /* Green */
    color: white;
}

#set-alarm-btn.active {
    background-color: #f44336; /* Red (for cancel) */
}

.alarm-status {
    font-size: 0.9rem;
    color: #ffd700;
    height: 1.2rem; /* Reserve space */
}

/* Stop Alarm Button (pulsing red) */
.stop-btn {
    margin-top: 15px;
    background-color: #ff0000;
    color: white;
    font-size: 1.2rem;
    animation: pulse 1s infinite;
}

.hidden {
    display: none;
}

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