/* Basic Reset & Global Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Roboto', sans-serif; font-size: 16px; line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    background-size: cover; background-position: center; background-attachment: fixed;
    position: relative; display: flex; flex-direction: column; min-height: 100vh;
}
#app-container { 
    flex-grow: 1; 
    padding: 20px; 
    width: 100%; 
}
a { text-decoration: none; transition: color 0.2s; }

/* Backgrounds & Overlay */
.bg-mountains { background-image: url('https://images.unsplash.com/photo-1549880338-65ddcdfd017b?q=80&w=2070&auto=format&fit=crop'); }
.bg-forest { background-image: url('https://images.unsplash.com/photo-1476231682828-37e571bc172f?q=80&w=1974&auto=format&fit=crop'); }
.bg-beach { background-image: url('https://images.unsplash.com/photo-1519046904884-53103b34b206?q=80&w=2070&auto=format&fit=crop'); }
.bg-city { background-image: url('https://images.unsplash.com/photo-1480714378408-67cf0d13bc1b?q=80&w=2070&auto=format&fit=crop'); }
.bg-abstract { background-image: url('https://images.unsplash.com/photo-1557682250-33bd709cbe85?q=80&w=2070&auto=format&fit=crop'); }
.bg-space { background-image: url('https://images.unsplash.com/photo-1534796636912-3b95b3ab5986?q=80&w=2071&auto=format&fit=crop'); }
.bg-ocean { background-image: url('https://images.unsplash.com/photo-1434082749343-0a7a4a6358e3?q=80&w=2070&auto=format&fit=crop'); }
.bg-desert { background-image: url('https://images.unsplash.com/photo-1473580044384-7ba9967e16a0?q=80&w=2070&auto=format&fit=crop'); }
.bg-lake { background-image: url('https://images.unsplash.com/photo-1501785888041-af3ef285b470?q=80&w=2070&auto=format&fit=crop'); }
.bg-street { background-image: url('https://images.unsplash.com/photo-1533929736458-ca588912188e?q=80&w=2070&auto=format&fit=crop'); }
.page-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.3); z-index: -1; }

/* Page Footer, Buttons, Themes, etc. */
.page-footer { text-align: center; padding: 20px 0; }
.footer-btn { display: inline-block; padding: 12px 25px; border-radius: 50px; text-decoration: none; font-weight: bold; transition: transform 0.2s, box-shadow 0.2s; border: none; cursor: pointer; }
.footer-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.footer-btn .fas { margin-right: 8px; }
.copyright { margin-top: 20px; font-size: 0.9rem; opacity: 0.7; color: #fff; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
.copyright a { color: #fff; text-decoration: underline; }
.theme-light .copyright { color: #333; text-shadow: none; }
.theme-light .copyright a { color: #0056b3; }
.theme-dark { color: #E0E0E0; }
.theme-dark a { color: #bb86fc; }
.theme-dark .main-header { text-shadow: 1px 1px 3px rgba(0,0,0,0.7); }
.theme-dark .grid-item, .theme-dark .widget-store-item, .theme-dark .settings-form, .theme-dark .auth-form, .theme-dark .modal-content, .theme-dark .legal-container, .theme-dark #top-search-form {
    background: rgba(29, 29, 29, 0.75); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); 
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.theme-dark .form-group input, .theme-dark .form-group select { background: #333; border: 1px solid #444; color: #E0E0E0; }
.theme-dark .form-group label, .theme-dark .radio-group label { color: #BDBDBD; }
.theme-dark .widget-header { border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.theme-dark .widget-header h3, .theme-dark #time-display { color: #FFFFFF; }
.theme-dark .weather-details, .theme-dark .daily-item { border-top: 1px solid rgba(255,255,255,0.1); }
.theme-dark .todo-form input { background-color: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.theme-dark .todo-form button { background-color: #bb86fc; color: #121212; }
.theme-dark .todo-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
.theme-dark .footer-btn { background-color: #bb86fc; color: #121212; }
.theme-light { color: #1a1a1a; }
.theme-light .page-overlay { background-color: rgba(255, 255, 255, 0.2); }
.theme-light a { color: #0056b3; }
.theme-light .main-header { text-shadow: 1px 1px 3px rgba(0,0,0,0.2); }
.theme-light .grid-item, .theme-light .widget-store-item, .theme-light .settings-form, .theme-light .auth-form, .theme-light .modal-content, .theme-light .legal-container, .theme-light #top-search-form {
    background: rgba(255, 255, 255, 0.7); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); 
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.theme-light .form-group input, .theme-light .form-group select { background: #f0f0f0; border: 1px solid #ccc; color: #333; }
.theme-light .form-group label, .theme-light .radio-group label { color: #333; font-weight: bold; }
.theme-light .widget-header { border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.theme-light .widget-header h3, .theme-light #time-display { color: #000000; }
.theme-light .weather-details, .theme-light .daily-item { border-top: 1px solid rgba(0,0,0,0.08); }
.theme-light .todo-form input { background-color: #f0f0f0; color: #333; border: 1px solid #ccc; }
.theme-light .todo-form button { background-color: #007bff; color: #fff; }
.theme-light .todo-item { border-bottom: 1px solid #eee; }
.theme-light .footer-btn { background-color: #007bff; color: #fff; }

/* Legal Pages (Privacy & Terms) */
.legal-container { padding: 40px; border-radius: 8px; max-width: 900px; margin: 20px auto; }
.legal-container h2 { margin-bottom: 20px; }
.legal-container h3 { margin-top: 30px; margin-bottom: 10px; }
.legal-container p, .legal-container li { margin-bottom: 10px; line-height: 1.8; }
.legal-container ul { padding-left: 20px; }

/* Cookie Consent Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 2000;
}
.theme-dark #cookie-consent-banner { background: rgba(29, 29, 29, 0.95); color: #E0E0E0; }
.theme-light #cookie-consent-banner { background: rgba(255, 255, 255, 0.95); color: #1a1a1a; }
#cookie-consent-banner p { margin: 0; }
#cookie-consent-banner a { text-decoration: underline; font-weight: bold; }
#cookie-accept-btn {
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}
.theme-dark #cookie-accept-btn { background-color: #bb86fc; color: #121212; }
.theme-light #cookie-accept-btn { background-color: #007bff; color: #fff; }

/* Auth & Settings Forms */
.auth-container, .settings-container { display: flex; justify-content: center; align-items: flex-start; padding-top: 5vh; }
.auth-form, .settings-form { padding: 40px; border-radius: 8px; width: 100%; max-width: 500px; }
.auth-form h2, .settings-form h2 { text-align: center; margin-bottom: 25px; font-weight: 400; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; font-size: 0.9rem; }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="password"], .form-group input[type="url"], .form-group input[type="color"], .form-group select { width: 100%; padding: 12px; border-radius: 4px; }
.radio-group label { display: block; margin-bottom: 10px; }
.radio-group input { margin-right: 10px; }
.auth-form button, .settings-form button { width: 100%; padding: 12px; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; transition: background-color 0.3s; font-size: 1rem; }
.recaptcha-container { display: flex; justify-content: center; }
.error { color: #cf6679; text-align: center; margin-bottom: 15px; font-weight: bold; }
.success { color: #03dac6; text-align: center; margin-bottom: 15px; }

/* Widget Store */
.widget-store-container { max-width: 800px; margin: 0 auto; }
.store-intro { text-align: center; margin-bottom: 30px; font-size: 1.2rem; color: #fff; }
.theme-light .store-intro { color: #333; }
.widget-store-item { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-radius: 8px; margin-bottom: 15px; }
.widget-info h3 { margin-bottom: 5px; }
.widget-info p { opacity: 0.8; font-size: 0.9rem; }
.store-actions { text-align: center; margin-top: 30px; }
.save-btn.saving { opacity: 0.7; cursor: wait; }

/* Toggle Switch CSS */
.switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: #2196F3; }
.theme-dark input:checked + .slider { background-color: #bb86fc; }
input:focus + .slider { box-shadow: 0 0 1px #2196F3; }
input:checked + .slider:before { transform: translateX(26px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* Main Dashboard & Grid */
.main-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; color: #fff; padding: 10px 0; }
.welcome-message h1 { font-size: 1.5rem; white-space: nowrap; margin: 0; }
.search-form-container { flex-grow: 1; display: flex; justify-content: center; }
.header-nav { display: flex; gap: 20px; white-space: nowrap; }
.header-nav a { color: inherit; text-decoration: none; font-weight: bold; }
.theme-light .header-nav a { color: #333; }
#grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.grid-item { border-radius: 8px; display: flex; flex-direction: column; min-height: 380px; max-height: 500px; }
.no-widgets-message { color: #fff; text-align: center; grid-column: 1 / -1; background: rgba(0,0,0,0.5); padding: 20px; border-radius: 8px; }
.theme-light .no-widgets-message { color: #333; background: rgba(255,255,255,0.5); }
.widget-header { padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; cursor: grab; }
.widget-header h3 { font-size: 1.1rem; font-weight: 700; }
.widget-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; overflow: hidden; cursor: default; }

/* Calendar Widget */
.widget-calendar .widget-header { padding: 10px 15px; }
.widget-calendar .widget-header h3 { text-align: center; flex-grow: 1; }
.calendar-nav-btn { background: none; border: none; color: inherit; cursor: pointer; font-size: 1rem; opacity: 0.7; transition: opacity 0.2s; padding: 5px; }
.calendar-nav-btn:hover { opacity: 1; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: minmax(30px, 1fr); gap: 5px; text-align: center; flex-grow: 1; }
.calendar-day-name { font-weight: bold; font-size: 0.8rem; opacity: 0.7; }
.calendar-date { padding: 5px; border-radius: 50%; width: 30px; height: 30px; display: flex; justify-content: center; align-items: center; margin: 0 auto; }
.calendar-date.other-month { opacity: 0.3; }
.calendar-date.today { background-color: #bb86fc; color: #121212; font-weight: bold; }
.theme-light .calendar-date.today { background-color: #007bff; color: #fff; }

/* Radar Widget */
.widget-radar .widget-content { padding: 0; overflow: hidden; border-radius: 0 0 8px 8px; }
.widget-radar iframe { display: block; width: 100%; height: 100%; border: none; }

/* Time Widget */
.widget-time .widget-content { text-align: center; justify-content: center; }
#time-display { font-size: 4rem; font-weight: 700; line-height: 1; }
#time-display #seconds { font-size: 2rem; opacity: 0.8; }
#time-display #ampm { font-size: 1.5rem; vertical-align: super; margin-left: 5px; }
#date-display { font-size: 1.2rem; font-weight: 300; margin-top: 10px; }

/* World Clocks Widget */
.widget-clocks .widget-content { padding-top: 10px; }
.clock-list { display: flex; flex-direction: column; gap: 15px; overflow-y: auto; }
.clock-item { display: flex; justify-content: space-between; align-items: center; }
.clock-item-info { display: flex; flex-direction: column; }
.clock-city { font-size: 1.2rem; font-weight: bold; }
.clock-date { font-size: 0.9rem; opacity: 0.8; }
.clock-time { font-size: 1.5rem; font-weight: 300; }
.clock-delete-btn { background: none; border: none; color: #f44336; cursor: pointer; font-size: 1.2rem; opacity: 0.5; transition: opacity 0.2s; }
.clock-item:hover .clock-delete-btn { opacity: 1; }
.clocks-loading { text-align: center; margin: auto; }

/* Weather Widgets */
#weather-loading, #weather-error { margin: auto; }
.widget-weather .weather-main { display: flex; align-items: center; gap: 20px; margin-bottom: 15px; }
.widget-weather .weather-icon-temp { display: flex; align-items: center; gap: 15px; }
.widget-weather #weather-icon { font-size: 4rem; }
.widget-weather #weather-temp { font-size: 3.5rem; font-weight: bold; line-height: 1; }
.widget-weather .weather-city-desc { display: flex; flex-direction: column; align-items: flex-start; }
.widget-weather #weather-city { font-size: 1.5rem; font-weight: 300; }
.widget-weather #weather-desc { text-transform: capitalize; }
.weather-hi-low { display: flex; justify-content: space-around; align-items: center; width: 100%; padding: 10px 0; margin: 8px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.hi-low-item { display: flex; align-items: center; gap: 8px; }
.hi-low-item i { font-size: 1.1em; color: var(--text-secondary); }
.weather-details { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 15px; padding-top: 8px; }
.detail-item { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 6px; }
.detail-item i { color: var(--text-secondary); width: 20px; text-align: center; }
.detail-item span { text-align: left; }
.detail-item strong { font-weight: 700; text-align: right; }

/* Hourly Forecast Widget */
.scroll-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; flex-grow: 1; align-content: start; overflow-y: auto; }
.hourly-item { text-align: center; display: flex; flex-direction: column; gap: 8px; padding: 10px 0; }
.hourly-item .fas { font-size: 1.5rem; }
.hourly-item-temp { font-weight: bold; }

/* Daily Forecast Widget */
#daily-forecast-container { display: flex; flex-direction: column; overflow-y: auto; }
.daily-item { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; padding: 10px 0; gap: 10px; }
.daily-item:first-child { border-top: none; }
.daily-day { font-weight: bold; }
.daily-icon-desc { display: flex; align-items: center; gap: 10px; }
.daily-icon-desc .fas { font-size: 1.5rem; }
.daily-temps { text-align: right; }
.daily-temps .high { font-weight: bold; }
.daily-temps .low { opacity: 0.7; }

/* To-Do List Widget */
.widget-todo .widget-content { padding: 0 20px 20px 20px; }
.todo-form { display: flex; margin-bottom: 15px; }
.todo-form input { flex-grow: 1; padding: 10px; border-radius: 4px 0 0 4px; border-right: none; }
.todo-form button { padding: 0 15px; border: none; border-radius: 0 4px 4px 0; font-size: 1.5rem; cursor: pointer; }
.todo-list { list-style: none; padding: 0; margin: 0; flex-grow: 1; overflow-y: auto; }
.todo-item { display: flex; align-items: center; padding: 12px 5px; }
.todo-item:last-child { border-bottom: none; }
.todo-item label { flex-grow: 1; display: flex; align-items: center; cursor: pointer; }
.todo-item input[type="checkbox"] { margin-right: 15px; width: 18px; height: 18px; }
.todo-item .task-text.completed { text-decoration: line-through; opacity: 0.6; }
.todo-item .delete-btn { background: none; border: none; color: #f44336; cursor: pointer; font-size: 1.2rem; opacity: 0.5; transition: opacity 0.2s; }
.todo-item:hover .delete-btn { opacity: 1; }

/* Quick Links Widget */
.widget-header-btn { background: none; border: none; color: inherit; opacity: 0.7; cursor: pointer; font-size: 1rem; transition: opacity 0.2s; }
.widget-header-btn:hover { opacity: 1; }
.links-container { display: flex; flex-direction: column; flex-wrap: wrap; overflow-y: auto; gap: 10px; flex-grow: 1; }
.quick-link-item { display: flex; align-items: center; padding: 10px; border-radius: 6px; text-decoration: none; color: #fff; transition: transform 0.2s, background-color 0.2s; cursor: pointer; }
.widget-links.edit-mode .quick-link-item { cursor: grab; }
.theme-light .quick-link-item { color: #000; }
.quick-link-item:hover { transform: scale(1.05); }
.widget-links.edit-mode .quick-link-item:hover { transform: none; }
.quick-link-item .fas, .quick-link-item .fab { width: 25px; text-align: center; margin-right: 10px; }
.links-pagination { display: flex; justify-content: center; gap: 10px; margin-top: 15px; padding-top: 15px; }
.page-dot { width: 10px; height: 10px; border-radius: 50%; background-color: rgba(255,255,255,0.3); cursor: pointer; transition: background-color 0.2s; }
.page-dot.active { background-color: #fff; }
.theme-light .page-dot { background-color: rgba(0,0,0,0.2); }
.theme-light .page-dot.active { background-color: #000; }
.links-loading { margin: auto; }

/* Modal Styles */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.modal-content { padding: 30px; border-radius: 8px; width: 90%; max-width: 500px; }
.modal-content h3 { text-align: center; margin-bottom: 20px; }
.icon-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 10px; max-height: 150px; overflow-y: auto; border: 1px solid #444; padding: 10px; border-radius: 4px; }
.theme-dark .icon-picker { border-color: #444; }
.theme-light .icon-picker { border-color: #ccc; }
.icon-picker .icon-option { text-align: center; padding: 8px; border-radius: 4px; cursor: pointer; transition: background-color 0.2s; }
.icon-picker .icon-option.selected { background-color: #bb86fc; }
.theme-light .icon-picker .icon-option.selected { background-color: #007bff; }
.modal-actions { display: flex; justify-content: flex-end; gap: 15px; margin-top: 30px; }
.modal-actions button { padding: 10px 20px; border-radius: 4px; border: none; cursor: pointer; font-weight: bold; }
.theme-dark .modal-actions button { background-color: #444; color: #fff; }
.theme-light .modal-actions button { background-color: #ccc; color: #000; }
.modal-actions button[type="submit"] { background-color: #bb86fc; color: #121212; }
.theme-light .modal-actions button[type="submit"] { background-color: #007bff; color: #fff; }
.btn-danger { background-color: #e53935; color: #fff; }

/* News Widget */
.news-list { display: flex; flex-direction: column; overflow-y: auto; flex-grow: 1; }
.news-item { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.theme-light .news-item { border-bottom-color: rgba(0,0,0,0.1); }
.news-item:last-child { border-bottom: none; }
.news-item a { text-decoration: none; color: inherit; }
.news-item h4 { font-size: 1rem; margin-bottom: 5px; font-weight: normal; }
.news-item p { font-size: 0.85rem; opacity: 0.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-loading { margin: auto; }

/* Notes / Scratchpad Widget */
.widget-notes .widget-content { padding: 0; }
.notes-textarea { width: 100%; flex-grow: 1; resize: none; border: none; background: transparent; color: inherit; font-family: inherit; font-size: 1rem; padding: 20px; }
.notes-textarea:focus { outline: none; }
.note-status { font-size: 0.8rem; opacity: 0; transition: opacity 0.3s; font-style: italic; }
.note-status.visible { opacity: 0.7; }

/* Quote Widget */
.widget-quote .widget-content { justify-content: center; text-align: center; }
.quote-container blockquote { font-size: 1.2rem; font-style: italic; margin-bottom: 15px; }
.quote-container figcaption { font-size: 1rem; font-weight: bold; opacity: 0.8; }
.quote-loading { margin: auto; }

/* Stocks & Crypto Widgets */
.financial-list { display: flex; flex-direction: column; flex-grow: 1; overflow-y: auto; }
.financial-item { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.theme-light .financial-item { border-bottom-color: rgba(0,0,0,0.1); }
.financial-item:last-child { border-bottom: none; }
.financial-symbol { font-weight: bold; }
.financial-price { text-align: center; }
.financial-change { text-align: right; }
.change-positive { color: #4caf50; }
.change-negative { color: #f44336; }
.financial-subheader { font-size: 0.9rem; opacity: 0.7; margin-top: 15px; margin-bottom: 5px; padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.theme-light .financial-subheader { border-bottom-color: rgba(0,0,0,0.1); }
.financial-loading { margin: auto; }

/* Top Search Bar (inside main-header) */
#top-search-form { display: flex; width: 100%; max-width: 600px; border-radius: 50px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.search-elem { border: none; padding: 10px 15px; font-size: 0.9rem; background-color: transparent; color: #fff; }
.search-elem:focus { outline: none; }
#search-engine-select { border-right: 1px solid rgba(255, 255, 255, 0.2); cursor: pointer; -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 30px; 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='white' 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 10px center; background-size: 1em; }
#search-engine-select option { background-color: #333; color: #E0E0E0; }
#search-query-input { flex-grow: 1; }
#search-submit-btn { cursor: pointer; border-left: 1px solid rgba(255, 255, 255, 0.2); }
.theme-light .search-elem { color: #333; }
.theme-light #search-engine-select, .theme-light #search-submit-btn { border-color: rgba(0, 0, 0, 0.15); }
.theme-light #search-engine-select { 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='black' 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"); }
.theme-light #search-engine-select option { background-color: #f0f0f0; color: #333; }

/* System Info & IP Address Widget */
.info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 15px; justify-content: center; flex-grow: 1; }
.info-list li { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.info-list .fas, .info-list .fab { width: 20px; text-align: center; }
.ip-display { font-size: 2rem; font-weight: bold; text-align: center; margin: auto 0; }

/* Device Battery Widget */
.widget-device-battery .widget-content { justify-content: center; align-items: center; text-align: center; }
.battery-display { font-size: 3rem; display: flex; align-items: center; gap: 15px; }
.battery-charging-status { margin-top: 10px; font-size: 1.1rem; opacity: 0.8; }

/* Unit Converter Widget */
.widget-unit-converter .widget-content { justify-content: center; gap: 15px; }
.converter-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: center; }
.converter-form input, .converter-form select { padding: 10px; border-radius: 4px; border: 1px solid #444; background: #333; color: #fff; font-size: 1rem; }
.theme-light .converter-form input, .theme-light .converter-form select { border-color: #ccc; background: #f0f0f0; color: #333; }
#converter-result { width: 100%; text-align: center; font-size: 1.5rem; font-weight: bold; margin-top: 10px; }
#converter-category { padding: 10px; border-radius: 4px; border: 1px solid #444; background: #333; color: #fff; }
.theme-light #converter-category { border-color: #ccc; background: #f0f0f0; color: #333; }

/* Website Status Widget */
.widget-website-status .widget-content { justify-content: center; gap: 20px; }
#status-checker-form { display: flex; gap: 10px; }
#status-url-input { flex-grow: 1; padding: 10px; border-radius: 4px; border: 1px solid #444; background: #333; color: #fff; }
.theme-light #status-url-input { border-color: #ccc; background: #f0f0f0; color: #333; }
#status-checker-form button { padding: 10px 15px; border: none; border-radius: 4px; background-color: #bb86fc; color: #121212; cursor: pointer; font-weight: bold; }
.theme-light #status-checker-form button { background-color: #007bff; color: #fff; }
#status-checker-result { font-size: 1.2rem; text-align: center; }
.status-online { color: #4caf50; font-weight: bold; }
.status-offline { color: #f44336; font-weight: bold; }

/* Keyboard Shortcut Modal */
#shortcut-modal .shortcut-list { list-style: none; padding: 0; margin: 20px 0 0 0; }
#shortcut-modal .shortcut-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #444; }
.theme-light #shortcut-modal .shortcut-list li { border-bottom-color: #ccc; }
#shortcut-modal .shortcut-list li:last-child { border-bottom: none; }
#shortcut-modal .shortcut-key { font-weight: bold; background-color: #444; padding: 2px 8px; border-radius: 4px; }
.theme-light #shortcut-modal .shortcut-key { background-color: #e0e0e0; }

/* --- NEW WIDGET STYLES --- */
/* Calculator Widget */
.calculator-container { display: flex; flex-direction: column; }
.calculator-display { background-color: rgba(0,0,0,0.2); color: inherit; font-size: 2em; padding: 10px; text-align: right; border-radius: 5px; margin-bottom: 10px; overflow-x: auto; }
.theme-light .calculator-display { background-color: rgba(0,0,0,0.05); }
.calculator-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.calculator-keys button { padding: 15px; font-size: 1.2em; border: none; border-radius: 5px; background-color: rgba(255,255,255,0.1); color: inherit; cursor: pointer; transition: background-color 0.2s; }
.theme-light .calculator-keys button { background-color: rgba(0,0,0,0.05); }
.calculator-keys button:hover { background-color: rgba(255,255,255,0.2); }
.theme-light .calculator-keys button:hover { background-color: rgba(0,0,0,0.1); }
.calculator-keys .key-operator { background-color: #ff9500; color: white; }
.calculator-keys .key-zero { grid-column: span 2; }

/* Countdown Widget */
.countdown-container { display: flex; justify-content: space-around; text-align: center; padding: 10px 0; flex-grow: 1; align-items: center; }
.countdown-item span { display: block; font-size: 2em; font-weight: bold; }
.countdown-form { display: flex; gap: 10px; margin-top: 15px; }
#countdown-datetime-input { flex-grow: 1; padding: 8px; border-radius: 4px; border: 1px solid var(--border-color); background: transparent; color: inherit; }
.countdown-form button { padding: 8px 15px; border-radius: 4px; border: none; cursor: pointer; }
#countdown-target-display { text-align: center; font-size: 0.9em; opacity: 0.8; margin-top: 10px; }

/* Speed Test Widget */
.speed-test-container { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; flex-grow: 1; }
#speed-test-start-btn { padding: 12px 25px; font-size: 1.1em; border-radius: 50px; border: none; cursor: pointer; }
.speed-test-results { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; text-align: center; }
.speed-test-item span { display: block; font-size: 0.9em; color: var(--text-secondary); }
.speed-test-item strong { font-size: 1.5em; }

/* --- AQI Widget --- */
.aqi-container { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 15px; height: 100%; }
.aqi-main { text-align: center; }
.aqi-value { font-size: 4em; font-weight: bold; line-height: 1; }
.aqi-level { font-size: 1.2em; font-weight: bold; }
.aqi-details { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 15px; width: 100%; text-align: center; }

/* AQI Color Classes */
.aqi-good { color: #4caf50; }
.aqi-fair { color: #ffeb3b; }
.aqi-moderate { color: #ff9800; }
.aqi-poor { color: #f44336; }
.aqi-very-poor { color: #9c27b0; }