/* --- 1. DASAR & BACKGROUND --- */
body {
    background-color: #E6E6FA; /* Default Ungu */
    background-image: linear-gradient(0deg, transparent 24%, rgba(255, 182, 193, 0.2) 25%, rgba(255, 182, 193, 0.2) 26%, transparent 27%, transparent 74%, rgba(255, 182, 193, 0.2) 75%, rgba(255, 182, 193, 0.2) 76%, transparent 77%, transparent),
                      linear-gradient(90deg, transparent 24%, rgba(255, 182, 193, 0.2) 25%, rgba(255, 182, 193, 0.2) 26%, transparent 27%, transparent 74%, rgba(255, 182, 193, 0.2) 75%, rgba(255, 182, 193, 0.2) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    font-family: 'Nunito', sans-serif;
    display: flex; justify-content: center; align-items: center;
    height: 100vh; margin: 0; transition: all 0.5s ease; overflow: hidden;
}

/* --- 2. THEME MAGIC (Sihir Biar Semua Nyesuain Warna) --- */

/* 🌸 TEMA PINK */
body.theme-pink { background-color: #FFD1DC !important; }
body.theme-pink h2, body.theme-pink .date-widget, body.theme-pink .call-me-text, body.theme-pink .dock-icon-widget, body.theme-pink #monthYearTitle, body.theme-pink .day-name, body.theme-pink .btn-register-cute { color: #FF6B81 !important; }
body.theme-pink .login-box, body.theme-pink .avatar-section img, body.theme-pink .points-widget, body.theme-pink .social-img, body.theme-pink .battery-widget, body.theme-pink .dock-icon-widget, body.theme-pink .modal-content, body.theme-pink .input-widget, body.theme-pink .btn-register-cute { border-color: #FFB6C1 !important; }
body.theme-pink .today-highlight, body.theme-pink .btn-pink { background-color: #FFB6C1 !important; color: white !important; }
body.theme-pink .input-widget, body.theme-pink .btn-register-cute { background-color: #FFE4E1 !important; }

/* 🌊 TEMA BIRU */
body.theme-blue { background-color: #AEC6CF !important; }
body.theme-blue h2, body.theme-blue .date-widget, body.theme-blue .call-me-text, body.theme-blue .dock-icon-widget, body.theme-blue #monthYearTitle, body.theme-blue .day-name, body.theme-blue .btn-register-cute { color: #4682B4 !important; }
body.theme-blue .login-box, body.theme-blue .avatar-section img, body.theme-blue .points-widget, body.theme-blue .social-img, body.theme-blue .battery-widget, body.theme-blue .dock-icon-widget, body.theme-blue .modal-content, body.theme-blue .input-widget, body.theme-blue .btn-register-cute { border-color: #87CEEB !important; }
body.theme-blue .today-highlight, body.theme-blue .btn-pink { background-color: #87CEEB !important; color: white !important; }
body.theme-blue .input-widget, body.theme-blue .btn-register-cute { background-color: #E0F7FA !important; }

/* 🍃 TEMA HIJAU MINT */
body.theme-mint { background-color: #B2F2BB !important; }
body.theme-mint h2, body.theme-mint .date-widget, body.theme-mint .call-me-text, body.theme-mint .dock-icon-widget, body.theme-mint #monthYearTitle, body.theme-mint .day-name, body.theme-mint .btn-register-cute { color: #2D6A4F !important; }
body.theme-mint .login-box, body.theme-mint .avatar-section img, body.theme-mint .points-widget, body.theme-mint .social-img, body.theme-mint .battery-widget, body.theme-mint .dock-icon-widget, body.theme-mint .modal-content, body.theme-mint .input-widget, body.theme-mint .btn-register-cute { border-color: #74C69D !important; }
body.theme-mint .today-highlight, body.theme-mint .btn-pink { background-color: #74C69D !important; color: white !important; }
body.theme-mint .input-widget, body.theme-mint .btn-register-cute { background-color: #E8F5E9 !important; }

/* 🌻 TEMA KUNING */
body.theme-yellow { background-color: #FFF9C4 !important; }
body.theme-yellow h2, body.theme-yellow .date-widget, body.theme-yellow .call-me-text, body.theme-yellow .dock-icon-widget, body.theme-yellow #monthYearTitle, body.theme-yellow .day-name, body.theme-yellow .btn-register-cute { color: #F57F17 !important; }
body.theme-yellow .login-box, body.theme-yellow .avatar-section img, body.theme-yellow .points-widget, body.theme-yellow .social-img, body.theme-yellow .battery-widget, body.theme-yellow .dock-icon-widget, body.theme-yellow .modal-content, body.theme-yellow .input-widget, body.theme-yellow .btn-register-cute { border-color: #FBC02D !important; }
body.theme-yellow .today-highlight, body.theme-yellow .btn-pink { background-color: #FBC02D !important; color: white !important; }
body.theme-yellow .input-widget, body.theme-yellow .btn-register-cute { background-color: #FFFDE7 !important; }

/* --- 3. LAYOUT UTAMA --- */
.widget-layout { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.top-widgets { display: flex; justify-content: space-between; align-items: center; width: 600px; }

/* WADAH GELEMBUNG KACA UNTUK JAM & CUACA */
.date-widget { 
    font-size: 14px; 
    line-height: 1.5; 
    text-align: left; 
    transition: all 0.5s ease; 
    color: #B2A2FA; 
    background-color: rgba(255, 255, 255, 0.85); 
    padding: 12px 20px; 
    border-radius: 25px; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.06); 
    border: 2px solid rgba(255, 255, 255, 0.5); 
}

.time-widget { color: white; font-size: 70px; font-weight: 900; text-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.login-box {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px; border-radius: 40px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    text-align: center; width: 400px; z-index: 10; position: relative; border: 3px solid #E6E6FA;
    transition: all 0.5s ease;
}

/* --- 4. AVATAR & CALL ME --- */
.avatar-section { position: relative; margin-bottom: 25px; display: inline-block; }
.avatar-section img {
    width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 5px solid #E6E6FA;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer;
}
.avatar-section img:hover { transform: scale(1.15) rotate(5deg); }

.call-me-text {
    position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    background: white; padding: 5px 15px; border-radius: 20px; border: 2px solid #E6E6FA;
    font-size: 13px; z-index: 5; white-space: nowrap; transition: all 0.5s; color: #B2A2FA;
}

h2 { margin-top: 30px !important; margin-bottom: 20px; font-weight: 800; transition: color 0.5s; color: #B2A2FA; }

/* --- 5. INPUT & BUTTON (Warna Default Ungu Pastel) --- */
.input-widget {
    background-color: #F3E5F5; border-radius: 20px; padding: 12px 15px; margin-bottom: 12px;
    display: flex; align-items: center; gap: 10px; border: 2px solid #E6E6FA; transition: all 0.5s ease;
}
.input-widget input { border: none; background: transparent; font-family: 'Nunito', sans-serif; outline: none; width: 100%; color: #555; }

.btn-pink {
    width: 100%; padding: 15px; background-color: #B2A2FA; color: white; border: none;
    border-radius: 20px; font-weight: 800; cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-pink:hover { transform: scale(1.05); filter: brightness(0.95); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.btn-register-cute {
    display: inline-block; margin-top: 15px; padding: 10px 20px;
    background-color: #F3E5F5; color: #B2A2FA; text-decoration: none;
    border-radius: 15px; font-size: 13px; font-weight: 800;
    border: 2px dashed #E6E6FA; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-register-cute:hover { transform: scale(1.1); border-style: solid; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* --- 6. SIDE WIDGETS --- */
.side-widgets { display: flex; justify-content: center; align-items: center; gap: 15px; width: 600px; }
.points-widget {
    background-color: rgba(255, 255, 255, 0.8); border-radius: 20px; width: 100px; height: 100px;
    border: 2px solid #E6E6FA; overflow: hidden; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer;
}
.points-widget:hover { transform: translateY(-15px) scale(1.1); }
.points-widget img { width: 100%; height: 100%; object-fit: cover; }

/* --- 7. BATERAI, SOSMED & DOCK --- */
.social-widgets { display: flex; gap: 10px; margin-bottom: 8px; justify-content: center; }
.social-img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #E6E6FA; transition: 0.3s; }
.social-img:hover { transform: scale(1.3) rotate(10deg); }

.battery-widget {
    background-color: rgba(255, 255, 255, 0.8); padding: 8px 12px; border-radius: 15px;
    border: 2px solid #E6E6FA; display: flex; align-items: center; gap: 8px; font-size: 12px; transition: all 0.5s;
}
.battery-icon { display: flex; gap: 3px; }
.battery-level { width: 12px; height: 8px; border-radius: 2px; }

.bottom-dock { display: flex; gap: 15px; margin-top: 15px; }
.dock-icon-widget {
    background-color: rgba(255, 255, 255, 0.8); padding: 10px; border-radius: 15px; border: 2px solid #E6E6FA;
    display: flex; flex-direction: column; align-items: center; font-size: 10px; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer;
}
.dock-icon-widget:hover { transform: translateY(-8px) scale(1.1); background-color: white; }

/* --- 8. MODAL --- */
.modal {
    display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.2); justify-content: center; align-items: center; backdrop-filter: blur(5px);
}
.modal-content { 
    background: white; padding: 20px; border-radius: 30px; width: 300px; 
    text-align: center; border: 4px solid #E6E6FA; position: relative; 
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
@keyframes popIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

#monthYearTitle { margin-bottom: 10px; transition: color 0.5s; }
.day-name { font-weight: 900; transition: color 0.5s; }
.calendar-grid, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.day { padding: 8px; font-size: 12px; color: #555; }
.today-highlight { color: white !important; border-radius: 8px; font-weight: bold; transition: background-color 0.5s; }