* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    transition: all 0.5s ease;
}

body.dark {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: #ecf0f1;
}

.clock-container {
    text-align: center;
    padding: 2.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
}

.clock-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    pointer-events: none;
}

.clock {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 3px;
}

body.dark .clock {
    color: #ecf0f1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.date {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: #34495e;
    font-weight: 500;
}

body.dark .date {
    color: #bdc3c7;
}

.greeting {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #e67e22;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.dark .greeting {
    color: #f1c40f;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

button {
    padding: 1rem 2rem;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.5px;
}

button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.3s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background: linear-gradient(45deg, #2980b9, #3498db);
}

button:hover::after {
    animation: buttonShine 1.5s;
}

select {
    padding: 1rem;
    font-size: 1rem;
    border-radius: 10px;
    border: 2px solid #3498db;
    background: rgba(255,255,255,0.9);
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

select:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(52,152,219,0.5);
}

body.dark select {
    background: rgba(0,0,0,0.3);
    color: #ecf0f1;
    border-color: #2980b9;
}

select:hover {
    box-shadow: 0 0 10px rgba(52,152,219,0.5);
}

@keyframes buttonShine {
    0% { transform: rotate(45deg) translate(-50%, -50%); }
    100% { transform: rotate(45deg) translate(150%, 150%); }
}

@media (max-width: 768px) {
    .clock {
        font-size: 3.5rem;
    }
    
    .clock-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    button {
        padding: 0.8rem 1.2rem;
    }
}
