:root { --text-main: #ffffff; --text-sub: rgba(255, 255, 255, 0.8); --bg-dim: 0.4; }
body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif; background-color: #0f172a; background-size: cover; background-position: center; background-attachment: fixed; color: var(--text-main); height: 100dvh; display: flex; flex-direction: column; overflow: hidden; transition: background-image 0.5s ease; position: relative; z-index: 1; }
body::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, var(--bg-dim)); z-index: -1; pointer-events: none; transition: backdrop-filter 0.3s ease, background 0.3s ease; }
body.enable-blur::before { backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); }

.floating-btn { position: fixed; top: 25px; right: 25px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.25); color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 100; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.15); -webkit-tap-highlight-color: transparent; }
.floating-btn:hover { background: rgba(255, 255, 255, 0.3); transform: scale(1.1); }
.floating-btn svg { width: 22px; height: 22px; }

.top-left-menu-container { position: fixed; top: 25px; left: 25px; z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.fab-main { width: 44px; height: 44px; border-radius: 50%; cursor: pointer; background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.25); color: white; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,0.15); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); -webkit-tap-highlight-color: transparent; }
.fab-main:hover { background: rgba(255, 255, 255, 0.3); transform: scale(1.1); }
body.is-editing .fab-main { background: #34C759; border-color: #57d878; color: white; }
.fab-menu { display: flex; flex-direction: column; gap: 12px; opacity: 0; visibility: hidden; transform: translateY(-15px); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.top-left-menu-container.active .fab-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.fab-item { width: 40px; height: 40px; border-radius: 50%; cursor: pointer; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.3); color: white; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: all 0.2s ease; }
.fab-item:hover { background: rgba(255, 255, 255, 0.4); transform: scale(1.1); }

.top-section { flex-shrink: 0; width: 100%; display: flex; flex-direction: column; align-items: center; padding-top: max(env(safe-area-inset-top), 2.5rem); padding-bottom: 1.5rem; z-index: 10; transition: all 0.4s ease; }
.header { text-align: center; margin-bottom: 1.8rem; text-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.greeting-text { font-size: 1.05rem; font-weight: 500; color: rgba(255,255,255,0.85); margin: 0 0 5px 0; letter-spacing: 0.5px;}
.header h1 { font-size: 3.2rem; font-weight: 700; margin: 0; letter-spacing: -1px; }
.header p#txtTitleSub { color: var(--text-sub); font-size: 1.2rem; margin-top: 0.5rem; font-weight: 400; margin-bottom: 0;}
.nav-pill-container { display: flex; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 30px; padding: 6px; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 4px 20px rgba(0,0,0,0.2), inset 0 0 5px rgba(255,255,255,0.1); }
.nav-pill-btn { display: flex; align-items: center; gap: 8px; padding: 10px 25px; border: none; background: transparent; color: rgba(255, 255, 255, 0.7); font-size: 1rem; font-weight: 600; border-radius: 24px; cursor: pointer; transition: all 0.3s ease; -webkit-tap-highlight-color: transparent; }
.nav-pill-btn.active { background: rgba(255, 255, 255, 0.25); color: #ffffff; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.slider-viewport { flex-grow: 1; width: 100%; overflow: hidden; position: relative; z-index: 1; display: flex; }
.slider-container { display: flex; width: 200vw; height: 100%; transition: transform 0.5s cubic-bezier(0.25, 1, 0.3, 1); }
.page { width: 100vw; height: 100%; display: block; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.page::-webkit-scrollbar { display: none; }
.page-content { display: flex; flex-direction: column; align-items: center; min-height: 100%; padding-top: 60px; padding-bottom: 120px; }

.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; width: 95%; max-width: 1200px; }
.app-wrapper { position: relative; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); -webkit-tap-highlight-color: transparent; }
.app-container { display: flex; flex-direction: column; align-items: center; text-decoration: none; }

.app-icon-bg { 
    display: flex; align-items: center; justify-content: center; width: 240px; height: 140px; border-radius: 28px; position: relative; 
    background-clip: padding-box; 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.3), inset 0 -3px 8px rgba(0, 0, 0, 0.4);           
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); overflow: hidden; 
    -webkit-mask-image: -webkit-radial-gradient(white, black); transform: translateZ(0); z-index: 1; 
}
.app-icon-image { width: 80px; height: 80px; object-fit: contain; display: block; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5)); transition: all 0.4s ease; z-index: 2; }
.app-title { margin-top: 1.5rem; font-size: 1.2rem; font-weight: 600; text-align: center; opacity: 0.9; transition: all 0.3s ease; text-shadow: 0 2px 8px rgba(0,0,0,0.5); color: #ffffff; }

.grid.size-small { gap: 2rem; }
.grid.size-small .app-icon-bg { width: 200px; height: 110px; border-radius: 22px;}
.grid.size-small .app-icon-image { width: 60px; height: 60px; }
.grid.size-small .app-title { font-size: 1.05rem; margin-top: 1rem; }

.grid.size-large { gap: 4rem; }
.grid.size-large .app-icon-bg { width: 300px; height: 180px; border-radius: 36px;}
.grid.size-large .app-icon-image { width: 100px; height: 100px; }
.grid.size-large .app-title { font-size: 1.35rem; margin-top: 2rem; }

body.enable-glossy .app-icon-bg::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 45%; background: linear-gradient(to bottom, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 100%); border-radius: 28px 28px 50% 50% / 28px 28px 15% 15%; pointer-events: none; z-index: 3; }
.grid.size-small .app-icon-bg::after { border-radius: 22px 22px 50% 50% / 22px 22px 15% 15%; }
.grid.size-large .app-icon-bg::after { border-radius: 36px 36px 50% 50% / 36px 36px 15% 15%; }
.app-icon-bg::before { content: ''; position: absolute; top: 0; left: -150%; width: 100%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%); transform: skewX(-20deg); transition: all 1.8s ease; z-index: 1; pointer-events: none; }

body:not(.is-editing) .app-wrapper:hover, body:not(.is-editing) .app-wrapper.touch-active { transform: scale(1.1) translateY(-10px); z-index: 10; }
body:not(.is-editing) .app-wrapper:hover .app-icon-bg, body:not(.is-editing) .app-wrapper.touch-active .app-icon-bg { box-shadow: 0 25px 55px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.25), inset 0 2px 6px rgba(255, 255, 255, 0.5), inset 0 -3px 8px rgba(0, 0, 0, 0.5); }
body:not(.is-editing) .app-wrapper:hover .app-icon-bg::before, body:not(.is-editing) .app-wrapper.touch-active .app-icon-bg::before { left: 250%; }
body:not(.is-editing) .app-wrapper:hover .app-icon-image, body:not(.is-editing) .app-wrapper.touch-active .app-icon-image { transform: scale(1.15); filter: drop-shadow(0 15px 25px rgba(0,0,0,0.7)); }

@keyframes jiggle { 0% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } 100% { transform: rotate(-1.5deg); } }
body.is-editing .app-wrapper { animation: jiggle 0.3s infinite; }
.delete-badge { position: absolute; top: -10px; left: 0px; width: 32px; height: 32px; background: #FF3B30; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.1rem; box-shadow: 0 4px 10px rgba(0,0,0,0.5); border: 2px solid rgba(255,255,255,0.8); cursor: pointer; opacity: 0; transform: scale(0); transition: all 0.2s ease; z-index: 100; }
body.is-editing .delete-badge { opacity: 1; transform: scale(1); }
.app-wrapper.dragging { opacity: 0.5; transform: scale(1.05); }

.widget-grid { width: 90%; max-width: 800px; display: flex; flex-direction: column; gap: 35px; align-items: center;}
.liquid-widget { width: 100%; background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(30px) saturate(150%); -webkit-backdrop-filter: blur(30px) saturate(150%); border-radius: 35px; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 15px 35px rgba(0,0,0,0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.1); color: white; padding: 30px; box-sizing: border-box; }

.iphone-clock-widget { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 10px; }
#bigDate { font-size: 1.3rem; font-weight: 500; color: rgba(255,255,255,0.9); text-shadow: 0 2px 5px rgba(0,0,0,0.2); margin-bottom: 5px; letter-spacing: 0.5px; }
#bigTime { font-size: clamp(4rem, 15vw, 7.5rem); font-weight: 700; line-height: 0.95; letter-spacing: -2px; background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.7) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2)); }

@keyframes spin-slow { 100% { transform: rotate(360deg); } }
@keyframes float-cloud { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes rain-drop { 0% { transform: translateY(-2px) rotate(10deg); } 50% { transform: translateY(2px) rotate(10deg); } 100% { transform: translateY(-2px) rotate(10deg); } }

.anim-sun { animation: spin-slow 15s linear infinite; display: inline-block; }
.anim-cloud { animation: float-cloud 4s ease-in-out infinite; display: inline-block; }
.anim-rain { animation: rain-drop 1.5s ease-in-out infinite; display: inline-block; }
.anim-snow { animation: float-cloud 3s ease-in-out infinite; display: inline-block; }

.weather-widget { display: flex; flex-direction: column; padding: 25px 30px; }
.widget-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 12px; }
.wh-title { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px; }
.refresh-btn { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: white; cursor: pointer; transition: all 0.3s ease; -webkit-tap-highlight-color: transparent; }
.refresh-btn:hover { background: rgba(255, 255, 255, 0.25); transform: scale(1.1); }

.weather-current { display: flex; justify-content: space-between; align-items: center; }
.wc-left { display: flex; flex-direction: column; }
.wc-icon { font-size: 3.5rem; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); margin-bottom: 5px; }
.wc-desc { font-size: 1.3rem; font-weight: 500; text-transform: capitalize; color: rgba(255,255,255,0.9); }
.wc-right { display: flex; flex-direction: column; align-items: flex-end; }
.wc-temp { font-size: 3.8rem; font-weight: 400; line-height: 1; }
.wc-hl { font-size: 1rem; font-weight: 500; color: rgba(255,255,255,0.7); margin-top: 5px; }
.widget-divider { border: 0; height: 1px; background: rgba(255,255,255,0.15); margin: 25px 0; width: 100%; }
.forecast-container { display: flex; justify-content: space-between; overflow-x: auto; gap: 10px; padding-bottom: 5px; }
.forecast-container::-webkit-scrollbar { display: none; }
.fc-item { display: flex; flex-direction: column; align-items: center; min-width: 60px; }
.fc-day { font-size: 1rem; font-weight: 600; color: rgba(255,255,255,0.8); }
.fc-icon { font-size: 1.8rem; margin: 12px 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));}
.fc-temp-bar { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fc-high { font-size: 1rem; font-weight: 600; }
.fc-low { font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.6); }

.weather-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; padding-top: 12px; font-size: 0.8rem; color: rgba(255,255,255,0.5); font-weight: 500; }

.toast-message { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.2); color: white; padding: 10px 24px; border-radius: 30px; font-size: 0.95rem; font-weight: 500; box-shadow: 0 8px 20px rgba(0,0,0,0.2); z-index: 1000; opacity: 0; pointer-events: none; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.toast-message.show { top: 95px; opacity: 1; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 1000; align-items: center; justify-content: center; padding: 15px; box-sizing: border-box;}
.modal.active { display: flex; }
.settings-layout { background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(35px) saturate(180%); -webkit-backdrop-filter: blur(35px) saturate(180%); border: 1px solid rgba(255, 255, 255, 0.2); padding: 25px; border-radius: 20px; width: 100%; max-width: 500px; box-shadow: 0 25px 50px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(255,255,255,0.1); color: white; max-height: 85vh; overflow-y: auto; }
.settings-layout h2 { margin-top: 0; margin-bottom: 20px; color: white; font-weight: 700; font-size: 1.5rem; text-align: center; }

.settings-group { background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 15px; margin-bottom: 20px; box-shadow: inset 0 2px 10px rgba(0,0,0,0.1); }
.settings-group h3 { display: flex; align-items: center; font-size: 1.1rem; color: #ffffff; margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; margin-top: 0;}
.setting-icon { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; margin-right: 10px; color: white; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }

.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.form-group label { color: rgba(255,255,255,0.9); font-size: 0.95rem; }
.form-group input[type="text"], .styled-select { width: 100%; padding: 12px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.2); color: white; border-radius: 10px; box-sizing: border-box; outline: none; transition: 0.3s;}
.form-group input[type="text"]:focus, .styled-select:focus { border-color: #2496ED; background: rgba(0,0,0,0.5); }

.highlight-val { font-weight: bold; color: #4fc3f7; font-size: 0.95rem;}
.styled-slider { -webkit-appearance: none; width: 100%; height: 6px; background: rgba(255,255,255,0.2); border-radius: 5px; outline: none; }
.styled-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #2496ED; cursor: pointer; box-shadow: 0 0 5px rgba(0,0,0,0.5); }

.styled-select { appearance: none; cursor: pointer; }
.styled-select option { background: #1e1e23; color: white; }

.form-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.form-row label { font-size: 0.95rem; color: rgba(255,255,255,0.9); }

.toggle-switch { position: relative; width: 46px; height: 26px; appearance: none; background: rgba(255,255,255,0.2); border-radius: 15px; outline: none; cursor: pointer; transition: background 0.3s; margin: 0;}
.toggle-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; background: white; border-radius: 50%; transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: 0 2px 5px rgba(0,0,0,0.2);}
.toggle-switch:checked { background: #34C759; }
.toggle-switch:checked::after { transform: translateX(20px); }

.modal-actions { display: flex; gap: 10px; margin-top: 10px; }
.modal-actions button { flex: 1; padding: 12px; border: none; border-radius: 10px; cursor: pointer; font-weight: bold; color: white; transition: 0.2s;}
.modal-actions button:active { transform: scale(0.95); }
.btn-primary { background: #2496ED; }
.btn-danger { background: #E53935; }
.btn-secondary { background: rgba(255,255,255,0.2); }

.sleek-modal { max-width: 420px; width: 100%; padding: 0; display: flex; flex-direction: column; background: rgba(30, 30, 35, 0.85); border: 1px solid rgba(255,255,255,0.15); border-radius: 20px; color: white; box-shadow: 0 25px 50px rgba(0,0,0,0.4); max-height: 85vh; overflow: hidden; }

.sleek-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 25px 15px; border-bottom: 1px solid rgba(255,255,255,0.08); background: rgba(0,0,0,0.2); flex-shrink: 0; }
.sleek-header h2 { margin: 0; font-size: 1.3rem; letter-spacing: 0.5px; font-weight: 700; text-align: left; }
.close-icon-btn { background: transparent; border: none; color: rgba(255,255,255,0.6); cursor: pointer; padding: 5px; display: flex; align-items: center; justify-content: center; transition: 0.3s; border-radius: 50%; }
.close-icon-btn:hover { color: white; background: rgba(255,255,255,0.1); }

.sleek-body { overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1 1 auto; min-height: 0; padding-bottom: 25px; }

.sleek-preview-box { padding: 35px 0; background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0.1) 100%); display: flex; justify-content: center; align-items: center; box-shadow: inset 0 -1px 10px rgba(0,0,0,0.2); }

.sleek-preview-box .app-icon-bg { width: 240px; height: 140px; }
.sleek-preview-box .app-icon-image { width: 80px; height: 80px; }

.sleek-form-grid { padding: 15px 25px 5px; display: flex; flex-direction: column; gap: 18px; }

.input-modern label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.6); margin-bottom: 6px; font-weight: 600;}
.input-modern input { background: rgba(0,0,0,0.25) !important; border: 1px solid rgba(255,255,255,0.1) !important; border-radius: 12px !important; padding: 14px 16px !important; font-size: 1rem; color: white !important;}
.input-modern input:focus { border-color: #4fc3f7 !important; background: rgba(0,0,0,0.4) !important; box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.2); }

.sleek-color-picker { background: transparent; border: none; padding: 0; margin: 0; box-shadow: none;}
.sleek-color-picker label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.6); margin-bottom: 6px; font-weight: 600;}
.color-capsules { display: flex; gap: 15px; }
.color-capsules input[type="color"] { flex: 1; height: 46px; border: 2px solid rgba(255,255,255,0.2); border-radius: 23px; padding: 0; background: none; cursor: pointer; overflow: hidden; transition: 0.3s;}
.color-capsules input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-capsules input[type="color"]::-webkit-color-swatch { border: none; border-radius: 23px; }
.color-capsules input[type="color"]:hover { border-color: white; transform: scale(1.02); }

.alert-box { background: rgba(255, 59, 48, 0.15); border: 1px solid rgba(255, 59, 48, 0.4); color: #ffcccc; padding: 12px 15px; border-radius: 12px; font-size: 0.85rem; line-height: 1.4; text-align: center; box-shadow: 0 4px 15px rgba(255, 59, 48, 0.1); backdrop-filter: blur(5px);}

.sleek-actions { padding: 0 25px; margin: 0; gap: 15px;}
.sleek-actions button { padding: 14px; border-radius: 14px; font-size: 1rem; }
.main-actions button { background: #34C759; box-shadow: 0 4px 15px rgba(52, 199, 89, 0.3); }
.main-actions button:hover { background: #2eb04f; }

body.theme-light::before { background: rgba(255, 255, 255, calc(var(--bg-dim) - 0.15)); } 
body.theme-light .header { text-shadow: none; }
body.theme-light .greeting-text { color: rgba(0,0,0,0.7); }
body.theme-light .nav-pill-container, body.theme-light .liquid-widget { background: rgba(255,255,255,0.4); border-color: rgba(0,0,0,0.1); color: #1d1d1f; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
body.theme-light .nav-pill-btn { color: rgba(0,0,0,0.6); }
body.theme-light .nav-pill-btn.active { background: white; color: #1d1d1f; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
body.theme-light .widget-header { border-bottom-color: rgba(0,0,0,0.1); }
body.theme-light .wh-title { color: rgba(0,0,0,0.6); }
body.theme-light .refresh-btn { color: #1d1d1f; border-color: rgba(0,0,0,0.1); background: rgba(255,255,255,0.5); }
body.theme-light .refresh-btn:hover { background: rgba(255,255,255,0.8); }
body.theme-light .weather-footer { color: rgba(0,0,0,0.4); border-top-color: rgba(0,0,0,0.1);}

body.theme-light #bigTime { background: linear-gradient(180deg, #1d1d1f 0%, rgba(0,0,0,0.6) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.1));}
body.theme-light #bigDate { color: rgba(0,0,0,0.8); text-shadow: none; font-weight: 600; }
body.theme-light .wc-desc, body.theme-light .wc-hl, body.theme-light .fc-day, body.theme-light .fc-low { color: rgba(0,0,0,0.7); }
body.theme-light .widget-divider { background: rgba(0,0,0,0.1); }
body.theme-light .app-title { color: #1d1d1f; text-shadow: none; }

body.theme-light .app-icon-bg { box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.8), inset 0 -3px 8px rgba(0, 0, 0, 0.1); }
body.theme-light:not(.is-editing) .app-wrapper:hover .app-icon-bg, body.theme-light:not(.is-editing) .app-wrapper.touch-active .app-icon-bg { box-shadow: 0 25px 55px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.6), inset 0 2px 6px rgba(255, 255, 255, 1), inset 0 -3px 8px rgba(0, 0, 0, 0.15); }

body.theme-light .app-icon-image { filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3)); }
body.theme-light:not(.is-editing) .app-wrapper:hover .app-icon-image, body.theme-light:not(.is-editing) .app-wrapper.touch-active .app-icon-image { filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4)); }
body.theme-light .floating-btn, body.theme-light .fab-item, body.theme-light .fab-main { background: rgba(255, 255, 255, 0.6); color: #1d1d1f; border-color: rgba(0,0,0,0.1); }
body.theme-light .toast-message { background: rgba(255, 255, 255, 0.8); color: #1d1d1f; border-color: rgba(0,0,0,0.1); }

body.theme-light .settings-layout { background: rgba(255, 255, 255, 0.6); color: #1d1d1f; border: 1px solid rgba(0, 0, 0, 0.1); box-shadow: 0 25px 50px rgba(0,0,0,0.1); }
body.theme-light .settings-group { background: rgba(255, 255, 255, 0.4); border: 1px solid rgba(0,0,0,0.05); box-shadow: inset 0 2px 10px rgba(0,0,0,0.02); }
body.theme-light .settings-group h3 { color: #1d1d1f; border-bottom-color: rgba(0,0,0,0.1); }
body.theme-light .form-group label, body.theme-light .form-row label { color: rgba(0,0,0,0.8); }
body.theme-light .settings-layout h2 { color: #1d1d1f; }
body.theme-light .styled-select option { background: white; color: black; }
body.theme-light .form-group input[type="text"], body.theme-light .styled-select { background: rgba(255,255,255,0.7); color: #1d1d1f; border-color: rgba(0,0,0,0.15); }

body.theme-light .sleek-modal { background: rgba(255, 255, 255, 0.85); border-color: rgba(0,0,0,0.1); color: #1d1d1f; }
body.theme-light .sleek-header { background: rgba(255,255,255,0.5); border-bottom-color: rgba(0,0,0,0.05); }
body.theme-light .close-icon-btn { color: rgba(0,0,0,0.5); }
body.theme-light .close-icon-btn:hover { color: black; background: rgba(0,0,0,0.05); }
body.theme-light .sleek-preview-box { background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.08) 100%); box-shadow: inset 0 -1px 5px rgba(0,0,0,0.05); }
body.theme-light .input-modern label { color: rgba(0,0,0,0.6); }
body.theme-light .input-modern input { background: rgba(255,255,255,0.6) !important; border-color: rgba(0,0,0,0.1) !important; color: #1d1d1f !important;}
body.theme-light .color-capsules input[type="color"] { border-color: rgba(0,0,0,0.15); }
body.theme-light .color-capsules input[type="color"]:hover { border-color: #1d1d1f; }
body.theme-light .alert-box { background: rgba(255, 59, 48, 0.1); border-color: rgba(255, 59, 48, 0.2); color: #d93025; box-shadow: 0 4px 15px rgba(255, 59, 48, 0.05); }

/* === TRẠNG THÁI ONLINE/OFFLINE CHO ICON === */
.icon-box { 
    position: relative; 
}
.status-dot {
    position: absolute; 
    top: 14px; 
    right: 14px; 
    width: 12px; 
    height: 12px;
    border-radius: 50%; 
    background-color: #8E8E93; 
    border: 2px solid rgba(255, 255, 255, 0.4); 
    z-index: 20; 
    transition: all 0.4s ease; 
    pointer-events: none;
}
.grid.size-small .status-dot { top: 10px; right: 10px; width: 10px; height: 10px; border-width: 1.5px;}
.grid.size-large .status-dot { top: 20px; right: 20px; width: 16px; height: 16px; border-width: 3px;}

.status-dot.online { 
    background-color: #32D74B; 
    animation: pulse-online 2.5s infinite cubic-bezier(0.25, 0.8, 0.25, 1); 
}
.status-dot.offline { 
    background-color: #FF453A; 
    box-shadow: 0 0 10px rgba(255, 69, 58, 0.6); 
}

@keyframes pulse-online { 
    0% { box-shadow: 0 0 0 0 rgba(50, 215, 75, 0.6); } 
    70% { box-shadow: 0 0 0 10px rgba(50, 215, 75, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(50, 215, 75, 0); } 
}
body.is-editing .status-dot { display: none; }

/* === SYSTEM WIDGET === */
.system-widget { 
    display: flex; flex-direction: column; padding: 25px 30px; 
}
.sys-cpu-name { 
    font-size: 0.75rem; color: rgba(255,255,255,0.6); text-transform: uppercase; 
    letter-spacing: 0.5px; margin-top: -10px; margin-bottom: 15px; 
    font-weight: 600; line-height: 1.4; 
}
body.theme-light .sys-cpu-name { color: rgba(0,0,0,0.5); }

.sys-stats-container { display: flex; flex-direction: column; gap: 20px; }
.sys-stat-row { display: flex; flex-direction: column; gap: 8px; }
.sys-stat-info { display: flex; justify-content: space-between; align-items: center; font-size: 0.95rem; font-weight: 600; color: rgba(255,255,255,0.9); letter-spacing: 0.5px;}
.sys-val { font-variant-numeric: tabular-nums; font-weight: 700;}
.sys-bar-bg { width: 100%; height: 8px; background: rgba(255,255,255,0.15); border-radius: 4px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,0.2); }
.sys-bar-fill { height: 100%; border-radius: 4px; transition: width 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease; }

body.theme-light .sys-stat-info { color: rgba(0,0,0,0.8); }
body.theme-light .sys-bar-bg { background: rgba(0,0,0,0.1); box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); }

.status-badge { font-size: 0.65rem; padding: 2px 6px; border-radius: 8px; margin-left: 8px; font-weight: bold; text-transform: uppercase; }
.status-badge.live { background: rgba(50, 215, 75, 0.2); color: #32D74B; }
.status-badge.demo { background: rgba(255, 159, 10, 0.2); color: #FF9F0A; }

/* Fix lỗi xoay icon refresh */
@keyframes spin { 100% { transform: rotate(360deg); } }
.refresh-btn.spinning svg { animation: spin 1s linear infinite; }
