/* ==========================================================================
   1. DESIGN SYSTEM & CUSTOM PROPERTIES
   ========================================================================== */
:root {
    /* Fonts */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', var(--font-primary);

    /* Glassmorphism Styles (Default Aurora Theme) */
    --glass-bg: rgba(15, 20, 35, 0.35);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    --glass-blur: blur(30px);

    /* Color Palette */
    --color-primary: #8a63f6;
    --color-primary-glow: rgba(138, 99, 246, 0.4);
    --color-secondary: #00f2fe;
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.6);
    --color-success: #10b981;
    --color-danger: #ef4444;

    /* Aura Background Circles */
    --aura-c1: #4f46e5;
    --aura-c2: #7c3aed;
    --aura-c3: #06b6d4;

    /* Layout */
    --max-width: 1440px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 12px;
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.15s ease;
}

/* Theme Variant 1: Neon Night */
[data-theme-style="neon-dark"] {
    --glass-bg: rgba(10, 6, 18, 0.5);
    --glass-border: rgba(138, 99, 246, 0.15);
    --glass-border-hover: rgba(138, 99, 246, 0.4);
    --aura-c1: #ec4899;
    --aura-c2: #8b5cf6;
    --aura-c3: #06b6d4;
    --color-primary: #d946ef;
    --color-primary-glow: rgba(217, 70, 239, 0.4);
}

/* Theme Variant 2: Sunset Glow */
[data-theme-style="sunset"] {
    --glass-bg: rgba(20, 10, 10, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 115, 92, 0.3);
    --aura-c1: #ff5e62;
    --aura-c2: #ff9966;
    --aura-c3: #ff512f;
    --color-primary: #ff5e62;
    --color-primary-glow: rgba(255, 94, 98, 0.4);
}

/* Theme Variant 3: Green Forest */
[data-theme-style="forest"] {
    --glass-bg: rgba(10, 25, 20, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(16, 185, 129, 0.3);
    --aura-c1: #059669;
    --aura-c2: #10b981;
    --aura-c3: #34d399;
    --color-primary: #10b981;
    --color-primary-glow: rgba(16, 185, 129, 0.4);
}

/* Custom Background Image Theme Overlay */
[data-theme-style="custom"] {
    --glass-bg: rgba(0, 0, 0, 0.55);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 255, 255, 0.3);
    --color-primary: #00f2fe;
    --color-primary-glow: rgba(0, 242, 254, 0.4);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: #03001e;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* ==========================================================================
   2. DYNAMIC AURORA MESH BACKGROUND
   ========================================================================== */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #030114;
    transition: background var(--transition-smooth);
}

.bg-gradient-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.55;
    mix-blend-mode: screen;
}

.bg-circle-1 {
    width: 70vw;
    height: 70vw;
    top: -20%;
    left: -10%;
    background: radial-gradient(circle, var(--aura-c1) 0%, rgba(0,0,0,0) 70%);
    animation: floatCircle1 30s infinite alternate ease-in-out;
}

.bg-circle-2 {
    width: 60vw;
    height: 60vw;
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, var(--aura-c2) 0%, rgba(0,0,0,0) 70%);
    animation: floatCircle2 25s infinite alternate ease-in-out;
}

.bg-circle-3 {
    width: 50vw;
    height: 50vw;
    top: 30%;
    left: 45%;
    background: radial-gradient(circle, var(--aura-c3) 0%, rgba(0,0,0,0) 70%);
    animation: floatCircle3 28s infinite alternate ease-in-out;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(rgba(0,0,0,0) 40%, rgba(3,1,20,0.7) 100%);
    z-index: 1;
}

/* Custom Background Mode (Overrides Circle Aurora) */
.background-container.custom-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.background-container.custom-image .bg-gradient-circle {
    display: none;
}
.background-container.custom-image .bg-overlay {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
}

@keyframes floatCircle1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(15vw, 10vh) scale(1.2); }
}

@keyframes floatCircle2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-10vw, -15vh) scale(1.1); }
}

@keyframes floatCircle3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(8vw, -10vh) scale(1.3); }
}

/* ==========================================================================
   3. STRUCTURE & LAYOUT
   ========================================================================== */
.dashboard-wrapper {
    width: 100%;
    max-width: var(--max-width);
    min-height: 100vh;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.dashboard-header {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 0;
}

.dashboard-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.dashboard-footer {
    width: 100%;
    text-align: center;
    padding: 40px 0 10px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 300;
}

/* Animations */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 0.15s; }
.delay-200 { animation-delay: 0.3s; }
.delay-300 { animation-delay: 0.45s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Common Buttons */
.icon-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-text);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.icon-btn.small-btn {
    width: 32px;
    height: 32px;
}

.icon-btn.small-btn i {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   4. CLOCK, DATE & GREETING
   ========================================================================== */
.time-greeting-section {
    text-align: center;
    margin-bottom: 35px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.time-display {
    font-family: var(--font-display);
    font-size: 5.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-text);
    line-height: 1.1;
    margin-bottom: 5px;
}

.date-display {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.greeting-display {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

/* ==========================================================================
   5. SMART INTEGRATED SEARCH
   ========================================================================== */
.search-section {
    width: 100%;
    max-width: 650px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.search-engine-selector {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.engine-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--color-text-muted);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.engine-btn i {
    width: 14px;
    height: 14px;
}

.engine-btn .engine-text-icon {
    font-weight: 800;
    font-size: 0.9rem;
    color: #2db400; /* Naver green */
}

.engine-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.engine-btn[data-engine="google"].active {
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.2);
}
.engine-btn[data-engine="naver"].active {
    box-shadow: 0 4px 15px rgba(45, 180, 0, 0.2);
}
.engine-btn[data-engine="youtube"].active {
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
}
.engine-btn[data-engine="github"].active {
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.search-input-wrapper {
    width: 100%;
    position: relative;
}

.search-input-wrapper form {
    width: 100%;
}

.search-input-wrapper input {
    width: 100%;
    padding: 18px 24px;
    padding-right: 60px;
    border-radius: 35px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: var(--glass-blur);
    color: var(--color-text);
    font-size: 1.1rem;
    outline: none;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.search-input-wrapper input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px var(--color-primary-glow), var(--glass-shadow);
    transform: translateY(-2px);
}

.search-submit-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--color-primary-glow);
    transition: var(--transition-smooth);
}

.search-submit-btn:hover {
    transform: translateY(-50%) scale(1.05);
    background: var(--color-secondary);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
}

/* ==========================================================================
   6. PREMIUM GLASSMORPHISM CARD STYLES
   ========================================================================== */
.widgets-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1.1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.grid-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0; /* Prevents flex children from overflowing */
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 60%);
    pointer-events: none;
    z-index: 1;
}

.glass-card:hover {
    transform: translateY(-4px) scale(1.008);
    border-color: var(--glass-border-hover);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 1px rgba(255,255,255,0.1) inset;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
}

/* ==========================================================================
   7. WIDGET 1: CUSTOM BOOKMARKS GRID
   ========================================================================== */
.bookmark-card {
    flex-grow: 1;
    min-height: 380px;
}

.bookmarks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 16px;
    position: relative;
    z-index: 2;
    overflow-y: auto;
    max-height: 400px;
    padding-right: 4px;
}

/* Custom Scrollbars */
.bookmarks-grid::-webkit-scrollbar,
.todo-list::-webkit-scrollbar,
#quickNoteArea::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.bookmarks-grid::-webkit-scrollbar-thumb,
.todo-list::-webkit-scrollbar-thumb,
#quickNoteArea::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.bookmarks-grid::-webkit-scrollbar-thumb:hover,
.todo-list::-webkit-scrollbar-thumb:hover,
#quickNoteArea::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.bookmark-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    gap: 8px;
    cursor: pointer;
    position: relative;
    padding: 10px 4px;
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
}

.bookmark-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.bookmark-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

.bookmark-item:hover .bookmark-icon-box {
    transform: translateY(-2px) scale(1.05);
    background: var(--color-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px var(--color-primary-glow);
}

.bookmark-label {
    font-size: 0.78rem;
    font-weight: 500;
    max-width: 72px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.bookmark-item:hover .bookmark-label {
    color: #fff;
}

.bookmark-edit-trigger {
    position: absolute;
    top: 4px;
    right: 4px;
    opacity: 0;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-fast);
    z-index: 5;
}

.bookmark-item:hover .bookmark-edit-trigger {
    opacity: 1;
}

.bookmark-edit-trigger:hover {
    background: var(--color-primary);
    transform: scale(1.2);
}

.bookmark-edit-trigger i {
    width: 10px;
    height: 10px;
}

/* ==========================================================================
   8. WIDGET 2: WEATHER
   ========================================================================== */
.weather-card {
    position: relative;
}

.weather-location {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.weather-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    position: relative;
    z-index: 2;
}

.weather-main-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.weather-icon-container {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.weather-lg-icon {
    width: 32px;
    height: 32px;
    color: #fbbf24; /* Sun Gold */
    animation: pulseSun 4s infinite ease-in-out;
}

@keyframes pulseSun {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(251,191,36,0.3)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 10px rgba(251,191,36,0.7)); }
}

.weather-temp-container {
    display: flex;
    flex-direction: column;
}

.weather-temp {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 700;
}

.weather-desc {
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.weather-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.weather-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.weather-detail-item i {
    width: 14px;
    height: 14px;
    color: var(--color-secondary);
}

/* ==========================================================================
   9. WIDGET 3: POMODORO TIMER
   ========================================================================== */
.pomodoro-card {
    min-height: 250px;
}

.pomodoro-modes {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.15);
    padding: 3px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255,255,255,0.03);
}

.mode-btn {
    background: transparent;
    border: none;
    padding: 4px 10px;
    border-radius: 8px;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.mode-btn.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 600;
}

.pomodoro-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 2;
    margin-top: 10px;
}

.timer-circle-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 6px;
}

.timer-progress {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 6px;
    stroke-linecap: round;
    stroke-dasharray: 283; /* 2 * PI * r (45) = 282.7 */
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.3s linear, stroke var(--transition-smooth);
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
}

.timer-controls {
    display: flex;
    gap: 12px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.control-btn:hover {
    background: var(--color-primary);
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 4px 12px var(--color-primary-glow);
}

.control-btn i {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   10. WIDGET 4: TO-DO LIST
   ========================================================================== */
.todo-card {
    min-height: 290px;
}

.todo-counter {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    background: rgba(255,255,255,0.06);
    padding: 3px 8px;
    border-radius: 10px;
}

.todo-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.todo-input-wrapper {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3px;
    transition: var(--transition-smooth);
}

.todo-input-wrapper:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(138, 99, 246, 0.2);
}

.todo-input-wrapper input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding: 10px 14px;
    font-size: 0.88rem;
}

.todo-input-wrapper input::placeholder {
    color: rgba(255,255,255,0.3);
}

.todo-input-wrapper button {
    background: var(--color-primary);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-fast);
}

.todo-input-wrapper button:hover {
    background: var(--color-secondary);
    transform: scale(1.04);
}

.todo-input-wrapper button i {
    width: 16px;
    height: 16px;
}

.todo-list {
    list-style: none;
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
}

.todo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    padding: 12px 14px;
    transition: var(--transition-smooth);
    animation: todoAppear 0.3s ease forwards;
}

@keyframes todoAppear {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.todo-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
}

.todo-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    min-width: 0;
}

.todo-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.todo-checkbox i {
    width: 12px;
    height: 12px;
    color: transparent;
    transition: var(--transition-fast);
}

.todo-item.completed .todo-checkbox {
    background: var(--color-success);
    border-color: transparent;
}

.todo-item.completed .todo-checkbox i {
    color: #fff;
}

.todo-text {
    font-size: 0.88rem;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition-fast);
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    color: var(--color-text-muted);
}

.todo-delete-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    opacity: 0;
    transition: var(--transition-fast);
    padding: 2px;
}

.todo-item:hover .todo-delete-btn {
    opacity: 1;
}

.todo-delete-btn:hover {
    color: var(--color-danger);
    transform: scale(1.1);
}

.todo-delete-btn i {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   11. WIDGET 5: STICKY MEMO PAD
   ========================================================================== */
.notes-card {
    flex-grow: 1;
    min-height: 200px;
}

.save-status {
    font-size: 0.72rem;
    color: var(--color-success);
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    transition: var(--transition-fast);
}

.save-status.unsaved {
    color: var(--color-primary);
    background: rgba(138, 99, 246, 0.1);
}

.notes-body {
    flex-grow: 1;
    display: flex;
    position: relative;
    z-index: 2;
}

#quickNoteArea {
    width: 100%;
    height: 100%;
    min-height: 130px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 0.88rem;
    line-height: 1.6;
    resize: none;
}

#quickNoteArea::placeholder {
    color: rgba(255,255,255,0.25);
}

/* ==========================================================================
   12. GLOSSY MODAL WINDOWS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 90%;
    max-width: 550px;
    max-height: 85vh;
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.glass-modal {
    background: rgba(20, 20, 35, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(40px);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Modals Styling */
.settings-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.03em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
}

.settings-description {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.form-group input {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    color: #fff;
    outline: none;
    font-size: 0.88rem;
    transition: var(--transition-fast);
}

.form-group input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(138, 99, 246, 0.15);
}

/* Theme Presets Buttons */
.theme-presets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.theme-preset-btn {
    border: 2px solid transparent;
    padding: 14px 10px;
    border-radius: var(--border-radius-sm);
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.theme-preset-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.theme-preset-btn.active {
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255,255,255,0.25);
}

.theme-preset-btn[data-theme="custom"] {
    background: linear-gradient(135deg, #1e1e30 0%, #0c0c14 100%);
    border: 1px dashed rgba(255, 255, 255, 0.3);
}
.theme-preset-btn[data-theme="custom"].active {
    border: 2px solid #fff;
}

/* Widget Toggles */
.widget-toggle-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.88rem;
}

/* iOS Style Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.15);
    transition: .3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: var(--color-primary);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Data Management Action Buttons */
.data-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn {
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
    outline: none;
}

.btn i {
    width: 16px;
    height: 16px;
}

.primary-btn {
    background: var(--color-primary);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px var(--color-primary-glow);
}

.primary-btn:hover {
    background: var(--color-secondary);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
    transform: translateY(-2px);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255,255,255,0.2);
}

.danger-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--color-danger);
}

.danger-btn:hover {
    background: var(--color-danger);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   13. TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(15, 10, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toastSlideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: auto;
}

.toast i {
    width: 16px;
    height: 16px;
}

.toast.toast-success i {
    color: var(--color-success);
}
.toast.toast-error i {
    color: var(--color-danger);
}
.toast.toast-info i {
    color: var(--color-secondary);
}

@keyframes toastSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.toast.fade-out {
    animation: toastFadeOut 0.3s ease forwards;
}

@keyframes toastFadeOut {
    to { opacity: 0; transform: translateY(-20px); }
}

/* ==========================================================================
   14. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1200px) {
    .widgets-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .col-bookmarks {
        grid-column: span 2;
    }
    
    .bookmark-card {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .dashboard-wrapper {
        padding: 15px 20px;
    }
    
    .time-display {
        font-size: 4rem;
    }
    
    .greeting-display {
        font-size: 1.6rem;
    }
    
    .widgets-grid {
        grid-template-columns: 1fr;
    }
    
    .col-bookmarks {
        grid-column: span 1;
    }
    
    .theme-presets {
        grid-template-columns: 1fr;
    }
    
    .search-engine-selector {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 16px;
    }
    
    .engine-btn {
        padding: 6px 12px;
    }
}
