/* ============================ */
/* 1. VARIABLES Y ESTILO BASE */
/* ============================ */
:root { --primary-color: #7B68EE; --primary-variant: #5A4CAD; --secondary-color: #9E9EAD; --background: #F8F8FA; --surface: #FFFFFF; --surface-variant: #F0F0F5; --on-primary: #FFFFFF; --on-background: #1A1C20; --on-surface: #1A1C20; --outline: #E0E0E6; --accent-task: #4CAF50; --accent-event-normal: #2196F3; --accent-event-important: #F44336; --accent-delete: #E53935; --accent-complete: #43A047; --accent-edit: #1E88E5; --accent-google: #4285F4; --font-main: 'Archivo Narrow', 'Roboto', sans-serif; --shadow-layered: 0px 4px 8px rgba(26, 28, 32, 0.04), 0px 8px 24px rgba(26, 28, 32, 0.08); --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1); --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1); }
[data-theme="dark"] { --primary-color: #A78BFA; --primary-variant: #7B68EE; --secondary-color: #9E9EAD; --background: #121212; --surface: #1E1E1E; --surface-variant: #2A2A32; --on-primary: #000000; --on-background: #EAEAEA; --on-surface: #F5F5F5; --outline: #3A3A42; --shadow-layered: 0px 8px 24px rgba(0, 0, 0, 0.2); }
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: -webkit-fill-available; }
body { font-family: var(--font-main); background-color: var(--background); color: var(--on-background); line-height: 1.5; overflow: hidden; min-height: 100vh; min-height: -webkit-fill-available; height: 100vh; transition: background-color 0.3s, color 0.3s; font-size: 15px; }
*:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; border-radius: 6px; }
#google-sync-btn.loading .material-icons { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fade-in-down { from { opacity: 0; transform: translateY(-20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.item-entering { animation: fade-in-down 0.4s var(--ease-out-quint) forwards; }
@keyframes fade-out-up { from { opacity: 1; transform: scale(1); max-height: 200px; margin-top: 6px; padding-top: 8px; padding-bottom: 8px; } to { opacity: 0; transform: scale(0.95); max-height: 0; margin-top: 0; padding-top: 0; padding-bottom: 0; border-width: 0; } }
.item-exiting { overflow: hidden; animation: fade-out-up 0.35s var(--ease-in-out-circ) forwards; }
#app-root { display: none; max-width: 420px; margin: 0 auto; height: 100vh; background: var(--background); position: relative; flex-direction: column; opacity: 0; transition: opacity 0.5s ease-out, background-color 0.3s; padding-bottom: calc(52px + env(safe-area-inset-bottom)); }
#app-root.visible { display: flex; opacity: 1; }
.main-content { flex: 1; display: flex; position: relative; overflow: hidden; }
.view { display: none; width: 100%; flex-direction: column; height: 100%; overflow-y: auto; padding: 16px; position: absolute; top: 0; left: 0; transition: transform 0.4s var(--ease-in-out-circ), opacity 0.4s var(--ease-in-out-circ); }
.view.active { display: flex; z-index: 1; }
.view.is-animating { display: flex; }
#calendarView { padding: 0; overflow-y: auto; }
@keyframes slideInFromRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideOutToLeft { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes slideInFromLeft { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes slideOutToRight { from { transform: translateX(0); } to { transform: translateX(100%); } }
.view-enter-from-right { animation: slideInFromRight 0.4s var(--ease-in-out-circ) forwards; opacity: 1; z-index: 2;}
.view-exit-to-left { animation: slideOutToLeft 0.4s var(--ease-in-out-circ) forwards; opacity: 0.5; z-index: 1;}
.view-enter-from-left { animation: slideInFromLeft 0.4s var(--ease-in-out-circ) forwards; opacity: 1; z-index: 2;}
.view-exit-to-right { animation: slideOutToRight 0.4s var(--ease-in-out-circ) forwards; opacity: 0.5; z-index: 1;}
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 420px; background: rgba(28, 28, 28, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid rgba(56, 56, 66, 0.5); display: flex; padding: 2px 0 calc(2px + env(safe-area-inset-bottom)) 0; z-index: 100; }
[data-theme="paperwhite"] .bottom-nav, [data-theme="coral-sunset"] .bottom-nav, [data-theme="ocean-breeze"] .bottom-nav { background: rgba(255, 255, 255, 0.7); border-top: 1px solid rgba(224, 224, 230, 0.5); }
.nav-item { flex: 1; display: flex; align-items: center; justify-content: center; padding: 10px 0; cursor: pointer; transition: color 0.2s, background-color 0.2s, transform 0.1s ease-out; color: var(--secondary-color); border: none; background: transparent; border-radius: 8px; }
.nav-item.active { color: var(--primary-color); }
.nav-item:active { transform: scale(0.92); }
.nav-item .material-icons { font-size: 24px; margin: 0; }
#google-sync-btn.connected { color: var(--accent-google); }
.calendar-container { flex-shrink: 0; padding: 8px 16px; border-bottom: 1px solid var(--outline); }
.calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.calendar-title-container { position: relative; display: inline-flex; align-items: center; }
#calendar-title-btn { font-size: 16px; font-weight: 700; background: none; border: none; color: var(--on-background); padding: 4px 6px; border-radius: 8px; cursor: pointer; transition: background-color 0.2s, transform 0.1s ease-out; }
#calendar-title-btn:hover { background-color: var(--surface-variant); }
#calendar-title-btn:active { transform: scale(0.95); }
.calendar-nav { display: flex; align-items: center; gap: 2px; }
.icon-button { background: none; border: none; color: var(--secondary-color); cursor: pointer; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.2s; }
.icon-button:active { transform: scale(0.9); background-color: var(--surface-variant); }
.icon-button .material-icons { font-size: 22px; }
.icon-button:hover { background-color: var(--surface-variant); color: var(--on-surface); }
#sync-status-indicator { position: absolute; top: 2px; right: -20px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
#sync-status-indicator .material-icons { font-size: 14px; transition: color 0.3s; }
#sync-status-indicator.online .material-icons { color: var(--accent-complete); }
#sync-status-indicator.offline .material-icons { color: var(--secondary-color); }
.view-toggle { display: flex; background-color: var(--surface-variant); border-radius: 10px; overflow: hidden; margin: 0 8px; }
.view-toggle .btn-toggle { background: none; border: none; color: var(--secondary-color); padding: 6px 10px; cursor: pointer; transition: all 0.2s; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.view-toggle .btn-toggle.active { background-color: var(--primary-color); color: var(--on-primary); box-shadow: 0 2px 6px color-mix(in srgb, var(--primary-color) 20%, transparent); }
.view-toggle .btn-toggle:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.view-toggle .btn-toggle:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.view-toggle .btn-toggle .material-icons { font-size: 20px; }
.view-toggle .btn-toggle:active { transform: scale(0.95); }
#calendarView[data-display-mode="month"] #weekly-view-container { display: none; }
#calendarView[data-display-mode="month"] #calendar-grid { display: block; }
#calendarView[data-display-mode="month"] #agendaListContainer { display: block; }
#calendarView[data-display-mode="week"] #calendar-grid { display: none; }
#calendarView[data-display-mode="week"] #agendaListContainer { display: none; }
#calendarView[data-display-mode="week"] #weekly-view-container { display: flex; flex-direction: column; }
.calendar-grid { background: var(--surface); border-radius: 12px; padding: 6px; box-shadow: var(--shadow-layered); }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.weekday { text-align: center; font-size: 12px; font-weight: 500; color: var(--secondary-color); padding: 4px; }
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.calendar-day { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; cursor: pointer; position: relative; font-size: 14px; transition: all 0.2s; padding: 4px 0; }
.day-number { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.calendar-day.today .day-number { background: var(--primary-color); color: var(--on-primary); font-weight: 700; }
.calendar-day.selected .day-number { background: var(--primary-variant); color: var(--on-primary); }
.calendar-day.other-month { color: var(--outline); pointer-events: none; }
.calendar-day .event-dots-container { position: absolute; bottom: 4px; left: 0; right: 0; display: flex; justify-content: center; gap: 3px; }
.event-dot { width: 4px; height: 4px; border-radius: 50%; }
.event-dot.important { background-color: var(--accent-event-important); }
.event-dot.normal { background-color: var(--accent-event-normal); }
.agenda-list-container { flex-grow: 1; overflow-y: auto; padding: 8px 16px 80px 16px; }
.agenda-date-header { font-weight: 700; letter-spacing: 0.3px; font-size: 12px; color: var(--primary-color); padding: 8px 12px; background-color: var(--surface-variant); position: sticky; top: 0; z-index: 1; border-radius: 8px; margin-top: 8px; margin-bottom: 4px; }
#today-greeting { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.section-title { font-size: 16px; font-weight: 500; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; letter-spacing: 0.2px; margin-top: 24px; }
.weekly-view-container { flex-grow: 1; padding: 8px 16px 80px 16px; overflow-y: auto; height: 100%; }
.weekly-day-section { margin-bottom: 16px; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-layered); padding-bottom: 8px; }
.weekly-day-header { font-weight: 700; letter-spacing: 0.3px; font-size: 14px; color: var(--primary-color); padding: 12px 16px; background-color: var(--surface-variant); border-top-left-radius: 12px; border-top-right-radius: 12px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.weekly-day-header .material-icons { font-size: 18px; }
.weekly-day-events { padding: 0 16px; }
.weekly-day-events .empty-state { padding: 12px; font-size: 13px; }
#search-container { padding: 4px 16px 8px; transition: max-height 0.4s ease-out, opacity 0.4s ease-out; max-height: 0; opacity: 0; overflow: hidden; }
#search-container.active { max-height: 60px; opacity: 1; }
#search-form { display: flex; gap: 8px; align-items: center; }
#search-input { flex-grow: 1; padding: 10px 16px; border: 1.5px solid var(--outline); border-radius: 24px; background: var(--surface-variant); color: var(--on-surface); font-size: 14px; }
#search-input:focus { outline: none; border-color: var(--primary-color); }
.fab { position: fixed; bottom: calc(65px + env(safe-area-inset-bottom)); right: 20px; width: 56px; height: 56px; border-radius: 50%; background-color: var(--primary-color); color: var(--on-primary); border: none; box-shadow: var(--shadow-layered); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 150; transition: background-color 0.2s, transform 0.2s var(--ease-out-quint); }
.fab:hover { background-color: var(--primary-variant); transform: scale(1.05); }
.fab:active { transform: scale(0.9); }
.fab .material-icons { font-size: 28px; }
.list-item-swipe-container { display: flex; align-items: flex-start; background: var(--surface); border-radius: 8px; margin-bottom: 6px; box-shadow: var(--shadow-layered); transition: transform 0.3s var(--ease-out-quint), opacity 0.3s, border-left-color 0.3s, background-color 0.1s; user-select: none; position: relative; padding: 8px 10px; border-left: 4px solid transparent; }
.list-item-swipe-container:active { background-color: var(--surface-variant); transform: scale(0.98); }
.list-item-swipe-container .item-icon { color: var(--secondary-color); margin-right: 8px; padding-top: 2px; font-size: 22px; display: flex; align-items: center; justify-content: center; z-index: 2; position: relative; }
.list-item-swipe-container .item-checkbox .material-icons { font-size: 24px; cursor: pointer; transition: color 0.2s, transform 0.2s var(--ease-out-quint); color: var(--secondary-color); }
.list-item-swipe-container .item-checkbox:active .material-icons { transform: scale(0.85); }
.list-item-swipe-container.completed .item-checkbox .material-icons { color: var(--accent-complete); }
.list-item-swipe-container .item-content { flex: 1; cursor: pointer; min-width: 0; display: flex; flex-direction: column; justify-content: center; z-index: 2; position: relative; }
.item-card-swipe-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; color: white; opacity: 0; transition: opacity 0.2s; z-index: 1; pointer-events: none; }
.list-item-swipe-container.swiping-right .item-card-swipe-background { background-color: var(--accent-complete); justify-content: flex-start; opacity: 1; }
.list-item-swipe-container.swiping-left .item-card-swipe-background { background-color: var(--accent-delete); justify-content: flex-end; opacity: 1; }
.list-item-swipe-container.swiping-right .item-card-swipe-background .material-icons:first-child, .list-item-swipe-container.swiping-left .item-card-swipe-background .material-icons:last-child { animation: bounceIn 0.3s ease-out; }
@keyframes bounceIn { 0% { transform: scale(0.5); opacity: 0; } 70% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); } }
.list-item-swipe-container.completed { opacity: 0.6; }
.list-item-swipe-container.completed .item-title { text-decoration: line-through; text-decoration-color: var(--secondary-color); }
.item-title { font-weight: 500; font-size: 14px; white-space: normal; word-break: break-word; line-height: 1.3; font-family: var(--font-main); }
.event-time { font-size: 13px; font-weight: 700; color: var(--secondary-color); padding-top: 1px; }
.event-meta-icon { font-size: 16px; color: var(--secondary-color); flex-shrink: 0; }
.item-metadata-container { display: flex; align-items: center; gap: 8px; margin-top: 2px; color: var(--secondary-color); }
.google-cal-icon { color: var(--accent-google) !important; }
.aidanai-only-icon { color: var(--secondary-color) !important; }
.task-progress-container { margin-top: 8px; }
.progress-bar-wrapper { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--secondary-color); }
.progress-bar { flex-grow: 1; background: var(--outline); border-radius: 4px; height: 4px; overflow: hidden; }
.progress-bar-fill { width: 0%; height: 100%; background: var(--primary-color); transition: width 0.3s; }
.subtasks-list-view { margin-top: 6px; padding-left: 4px; display: flex; flex-direction: column; gap: 4px; }
.subtask-list-view-item { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; padding: 2px 4px; border-radius: 4px; transition: background-color 0.2s; }
.subtask-list-view-item:hover { background-color: var(--surface-variant); }
.subtask-list-view-item .material-icons { font-size: 18px; color: var(--secondary-color); transition: color 0.2s; }
.subtask-list-view-item.completed { text-decoration: line-through; color: var(--secondary-color); }
.subtask-list-view-item.completed .material-icons { color: var(--accent-complete); }
#quick-add-feedback { margin-top: -8px; margin-bottom: 8px; padding: 0 4px; min-height: 28px; transition: all 0.2s; }
.feedback-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 16px; font-size: 13px; font-weight: 500; background-color: var(--surface-variant); color: var(--on-surface); animation: fade-in-down 0.3s var(--ease-out-quint); }
.feedback-chip .material-icons { font-size: 18px; }
.feedback-chip.type-agenda { color: var(--primary-color); }
.feedback-chip.type-task { color: var(--accent-task); }
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: flex-end; justify-content: center; z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease-out-quint); }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal { background: var(--surface); border-radius: 24px 24px 0 0; padding: 16px 24px 24px 24px; width: 100%; max-width: 420px; max-height: 95vh; overflow-y: auto; box-shadow: var(--shadow-layered); transform: translateY(100%); transition: transform 0.4s var(--ease-out-quint); }
.modal-overlay.active .modal { transform: translateY(0); }
.modal-grabber { width: 40px; height: 5px; background-color: var(--outline); border-radius: 2.5px; margin: 0 auto 16px; flex-shrink: 0; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; color: var(--secondary-color); }
.form-input, .form-select, .form-textarea { width: 100%; padding: 12px; border: 1.5px solid var(--outline); border-radius: 10px; background: var(--surface); color: var(--on-surface); font-size: 14px; font-family: var(--font-main); transition: border-color 0.2s, box-shadow 0.2s; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 20%, transparent); }
.form-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }
.btn-icon { width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.btn-icon:active { transform: scale(0.9); }
.btn-icon .material-icons { font-size: 24px; }
#delete-item-btn { background-color: transparent; color: var(--accent-delete); }
#delete-item-btn:hover { background-color: color-mix(in srgb, var(--accent-delete) 10%, transparent); }
#save-item-btn { background-color: var(--primary-color); color: var(--on-primary); box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 30%, transparent); }
#save-item-btn:hover { background-color: var(--primary-variant); }
.btn { padding: 10px 20px; border: none; border-radius: 24px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-main); }
.btn:active { transform: scale(0.95); opacity: 0.9; }
.btn-primary { background: var(--primary-color); color: var(--on-primary); }
.btn-secondary { background: transparent; color: var(--secondary-color); border: 1.5px solid var(--outline); }
.btn-link { background: none; border: none; color: var(--primary-color); font-weight: 500; cursor: pointer; }
#task-options-group { display: none; }
.subtask-item { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.subtask-item input[type="checkbox"] { flex-shrink: 0; width: 20px; height: 20px; accent-color: var(--primary-color); }
.subtask-item input[type="text"] { flex-grow: 1; font-size: 14px; border: none; background: transparent; border-bottom: 1px solid var(--outline); border-radius: 0; padding: 4px 0; color: var(--on-surface); }
.subtask-item input[type="text"]:focus { outline: none; border-bottom-color: var(--primary-color); }
.subtask-item .delete-subtask-btn { color: var(--secondary-color); font-size: 20px; }
.empty-state { text-align: center; padding: 40px 24px; color: var(--secondary-color); }
.empty-state .material-icons { font-size: 48px; margin-bottom: 8px; }
.empty-state .btn { margin-top: 16px; }
.intro-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; display: none; align-items: center; justify-content: center; flex-direction: column; background-color: #000; transition: opacity 0.5s ease-out; }
.intro-screen.visible { display: flex; }
#welcomeImage { width: 250px; height: auto; opacity: 0; animation: growAndFade 2.5s ease-in-out forwards; }
@keyframes growAndFade { 0% { transform: scale(0.5); opacity: 0; } 70% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(8); opacity: 0; } }
.login-view { position: fixed; inset: 0; z-index: 1040; display: none; flex-direction: column; justify-content: center; align-items: center; padding: 1rem; opacity: 0; transition: opacity .5s, background-color 0.3s; background-color: var(--background); }
.login-view--visible { display: flex; opacity: 1; }
.login-view__card { background-color: var(--surface); padding: 2rem 1.5rem; border-radius: 18px; box-shadow: var(--shadow-layered); width: 100%; max-width: 380px; text-align: center; animation: pop-in 0.3s ease-out; border: 1px solid var(--outline); z-index: 10; }
@keyframes pop-in { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#toast-container { position: fixed; bottom: calc(60px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { background-color: rgba(30, 30, 36, 0.85); backdrop-filter: blur(5px); color: white; padding: 10px 18px; border-radius: 12px; box-shadow: var(--shadow-layered); display: flex; align-items: center; animation: toastFadeIn 0.4s var(--ease-out-quint), toastFadeOut 0.4s 2.6s var(--ease-out-quint); font-size: 14px; }
@keyframes toastFadeIn { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastFadeOut { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(10px) scale(0.95); } }
.tasks-header { display: flex; align-items: center; justify-content: space-between; padding: 0 0 16px 0; }
.tasks-header .form-select { flex-grow: 1; }
.tasks-header .icon-button { flex-shrink: 0; margin-left: 8px; }
.completed-tasks-section { background: var(--surface); padding: 0; border-radius: 10px; margin-top: 24px; border: 1px solid var(--outline); }
.completed-tasks-section summary { font-weight: 500; cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; padding: 12px; }
.completed-tasks-section summary::-webkit-details-marker { display: none; }
.completed-tasks-section summary .section-title { margin: 0; font-size: 16px; }
.completed-tasks-section summary .material-icons { transition: transform 0.2s; }
.completed-tasks-section[open] > summary .material-icons { transform: rotate(180deg); }
.completed-tasks-list { padding: 0 12px 12px 12px; }
.help-section details { background: var(--surface); padding: 12px; border-radius: 10px; margin-bottom: 8px; border: 1px solid var(--outline); }
.help-section summary { font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.help-section summary::-webkit-details-marker { display: none; }
.help-section summary .material-icons { transition: transform 0.2s; }
.help-section details[open] summary .material-icons { transform: rotate(180deg); }
.help-section .details-content { padding-top: 12px; }
.help-section ul { padding-left: 20px; list-style-type: none; }
.help-section li { margin-bottom: 12px; position: relative; padding-left: 28px; }
.help-section li .material-icons { position: absolute; left: 0; top: 2px; vertical-align: middle; }
.starry-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(1px 1px at 10% 20%,#fff,transparent),radial-gradient(1px 1px at 80% 30%,#fff,transparent),radial-gradient(2px 2px at 50% 50%,#fff,transparent),radial-gradient(1px 1px at 30% 80%,#fff,transparent),radial-gradient(2px 2px at 90% 90%,#fff,transparent); background-size: 300px 300px; animation: twinkle 15s linear infinite; opacity: 0.7; z-index: 1; }
@keyframes twinkle { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.login-view__logo { max-width: 90px; height: auto; border-radius: 18px; margin-bottom: 16px; box-shadow: 0 0 25px rgba(255, 255, 255, 0.1); }
.login-view__title { margin-bottom: 4px; font-size: 20px; font-weight: 800; }
.login-view__tagline { font-size: 15px; color: var(--secondary-color); margin-bottom: 20px; }
.form-group--with-icon { position: relative; margin-bottom: 16px; }
.form-group--with-icon .material-icons { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--secondary-color); pointer-events: none; transition: color 0.2s; }
.form-group--with-icon .form-input { padding-left: calc(12px * 2 + 24px); }
.form-group--with-icon .form-input:focus ~ .material-icons { color: var(--primary-color); }
.login-view__actions { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.login-view__link { font-size: 14px; color: var(--primary-color); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.login-view__link:hover { color: var(--primary-variant); text-decoration: underline; }
.login-view__footer { margin-top: 16px; width: 100%; }
.btn--full { width: 100%; }
.spinner { display: inline-block; width: 1em; height: 1em; border: .15em solid currentColor; border-radius: 50%; border-top-color: transparent; animation: spin .8s linear infinite; vertical-align: middle; margin-right: 8px; }
.btn--loading { pointer-events: none; opacity: .8; }
.form-input--invalid { border-color: var(--accent-delete) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-delete) 20%, transparent) !important; }
.form-error { color: var(--accent-delete); font-size: 13px; margin-top: 4px; min-height: 18px; display: block; }
@media (min-width: 768px) { #app-root, .bottom-nav { max-width: 720px; } body { font-size: 16px; } .modal-overlay { align-items: center; } .modal { border-radius: 24px; transform: translateY(0); max-height: 80vh; } }
@media (min-width: 1024px) { body { overflow: auto; } #app-root { flex-direction: row; max-width: 100%; height: 100vh; padding-bottom: 0; } .bottom-nav { position: static; transform: none; flex-direction: column; width: auto; max-width: none; height: 100vh; border-top: none; border-right: 1px solid var(--outline); padding: 24px 8px; justify-content: flex-start; gap: 8px; background: var(--surface); backdrop-filter: none; } [data-theme="light"] .bottom-nav { background: var(--surface); } .nav-item { flex: 0; flex-direction: row; justify-content: center; width: 100%; padding: 12px; } .nav-item:hover { background-color: var(--surface-variant); } .nav-item.active { background-color: var(--primary-color); color: var(--on-primary); } [data-theme="dark"] .nav-item.active { background-color: var(--primary-variant); } #toast-container { bottom: 24px; left: calc(50% + 70px); } .main-content { height: 100vh; overflow-y: auto; } #calendarView { flex-direction: row; align-items: flex-start; gap: 24px; padding: 24px; overflow-y: hidden; } .calendar-container { flex: 0 0 400px; border-bottom: none; padding: 0; position: sticky; top: 0; } #agendaListContainer, #weekly-view-container { flex-grow: 1; height: calc(100vh - 48px); overflow-y: auto; } .view#todayView, .view#tasksView, .view#helpView, .view#searchView { max-width: 800px; margin: 0 auto; padding: 32px; } .fab { bottom: 32px; right: 32px; } }
