*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body{
    min-height: 100vh ;
    display: flex;
    justify-content: center; 
    align-items: center; 
    background: #0f172a;
    color: white;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.loader{
    border: 6px solid #cce0ff;      
    border-top: 8px solid #0f172a;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    display: none;
    position: fixed;
    z-index: 10000;
}
@keyframes spin{
    0% {transofrm: rotate(0deg); }
    100% {transform:rotate(360deg);}
}
.overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15,23,42,0.5);
    z-index: 9999;
    display: none;
}

.toast{
    position: fixed;
    bottom: 80px;
    text-align: center;
    background: black;
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(10px);
    font-size: 14px;
}

.toast.show{
    opacity: 1;
    transform: translateY(0);
}


/* light mode */
body.light-mode .toast{
    background: #e6efff;
    color: #0f172a;
}


.theme{
    z-index: 1000;
    position: fixed;
    top: 30px;
    left: 30px;
}
.theme button{
    font-size: 20px;
    width: 86px;
    text-align: center;
    padding: 5px 5px;
    cursor: pointer;
    background-color: #cce0ff ;
    color: #0f172a ;
    border: none;
    transition: background 0.3s, color 0.3s; 
    border-radius: 50px;
}
.theme button:hover {
    background: #5c8ce0; 
    border: 1px solid #cce0ff ;
}
#auto-mode{
    margin-top: 10px;
}


/* LIGHT MODE -----------------------------------------------------------*/
body, .weather-box, .theme button, #city-select {
    transition: background 0.3s, color 0.3s;
}
.theme button.light {
    background: #0f172a;
    color: #ececec ;
}

.theme button.light:hover {
    background: #5c8ce0;
    border: 1px solid #0f172a ;
}

body.light-mode {
    background: #ececec;
    color: #0f172a; 
} 
/* ----------------------------------------------------------------- */
#city-select{
    padding: 12px 12px;
    border-radius: 20px;
    border: none;
    font-size: 16px;
    background: #cce0ff;
    color: #0f172a;
    cursor: pointer;
    position: fixed;
    top: 30px;
}
#city-select:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
    border: 1px solid #5c8ce0;
}

.dashboard{
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.left-side{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    margin-right: 10px;
}
.date{
    font-size: 60px;
}
.time{
    font-size: 58px;
    font-weight: 700;
}
.nameday{
    font-size: 30px;
}
.weather-box{
    display: flex;             
    align-items: center;       
    background: #77a4f8;  
    color: #0f172a;
    padding: 40px;
    gap: 25px;                 
    border-radius: 50px;
    box-shadow: 0 10px 30px #77a4f8a8;
}
/* LIGHT MODE ----------------------------------------------------*/
body.light-mode .weather-box {
    background: #cce0ff;
    /* box-shadow: 0 10px 30px rgba(0,0,0,0.3); */
    box-shadow: 0 10px 30px #0f172a9f;
}
/* ----------------------------------------------------------------- */
.weather-texts{
    display: flex;
    flex-direction: column;    
    gap: 10px;
}
.w-city{
    font-size: 60px;
}
.w-temp{
    font-size: 58px;
    font-weight: 700;
}
.w-desc{
    font-size: 35px;
}
.w-icon{
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-left: 40px;
}
.w-icon {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.w-icon.update {
    transform: scale(1.1);
    opacity: 0.7;
}



















/* #0f172a -bckgrnd
#77a4f8  */

