/* ====== RESET & BASE STYLES ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 100%);
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}

/* Simplified background effect */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    z-index: -1;
}

/* ====== CLOCK STYLES ====== */
#clock {
    font-size: 5.5rem;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    background: rgba(23, 23, 35, 0.9);
    padding: 30px 50px;
    border-radius: 16px;
    box-shadow: 
        0 0 30px rgba(59, 130, 246, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.8),
        inset 0 0 15px rgba(255, 255, 255, 0.05);
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

#clock::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        #3b82f6, 
        #8b5cf6, 
        transparent);
    animation: shine 8s infinite linear;
    z-index: 1;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

#clock:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 0 40px rgba(59, 130, 246, 0.4),
        0 15px 50px rgba(0, 0, 0, 0.9);
}

/* ====== CONTROL PANEL STYLES ====== */
.set-time {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background: rgba(23, 23, 35, 0.9);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.05);
    max-width: 800px;
    width: 100%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.set-time:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Input styling */
.set-time input {
    width: 90px;
    padding: 14px 10px;
    font-size: 1.2rem;
    text-align: center;
    background: rgba(10, 10, 15, 0.9);
    color: #ffffff;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.set-time input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

.set-time input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Button styling - Simplified color scheme */
.set-time button {
    padding: 14px 22px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    min-width: 140px;
    position: relative;
    overflow: hidden;
    background: rgba(10, 10, 15, 0.9);
    color: #ffffff;
    border: 2px solid rgba(59, 130, 246, 0.3);
}

/* Button hover effects */
.set-time button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
    border-color: #3b82f6;
    background: rgba(23, 23, 35, 0.95);
}

.set-time button:active {
    transform: translateY(1px);
}

/* Responsive design */
@media (max-width: 768px) {
    #clock {
        font-size: 3.5rem;
        padding: 25px 40px;
        margin-bottom: 30px;
        letter-spacing: 3px;
    }
    
    .set-time {
        flex-direction: column;
        padding: 25px;
        gap: 12px;
    }
    
    .set-time input {
        width: 100%;
        max-width: 200px;
    }
    
    .set-time button {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    #clock {
        font-size: 2.5rem;
        padding: 20px 30px;
        letter-spacing: 2px;
    }
    
    .set-time {
        padding: 20px;
    }
}

/* Additional effects for time input */
.set-time input::-webkit-inner-spin-button,
.set-time input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


.clock-heading {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 3px;
    position: relative;
    padding-bottom: 20px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.clock-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #3b82f6, #8b5cf6, transparent);
    border-radius: 2px;
}

.clock-heading {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .clock-heading {
        font-size: 3rem;
        margin-bottom: 35px;
        letter-spacing: 2px;
    }
    
    .clock-heading::after {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .clock-heading {
        font-size: 2.5rem;
        margin-bottom: 30px;
        letter-spacing: 1.5px;
    }
    
    .clock-heading::after {
        width: 100px;
    }
}