:root {
    --bg-base: #06060a;
    --acc-primary: #6366f1;
    --acc-secondary: #ec4899;
    --acc-tertiary: #14b8a6;
    
    --glass-bg: rgba(20, 20, 30, 0.5);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-highlight: rgba(255, 255, 255, 0.12);
    
    --text-main: #f8fafc;
    --text-muted: #8b97a8;
    
    --font-heading: 'Outfit', sans-serif;
    --font-ui: 'Inter', sans-serif;
    
    --blur-xl: blur(40px);
    --blur-md: blur(24px);
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-ui);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }
kbd {
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    font-family: monospace;
    font-weight: 600;
}

/* Background Gradients */
.mesh-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; overflow: hidden; background: var(--bg-base);
}

.blob-1, .blob-2, .blob-3 {
    position: absolute; filter: blur(120px); border-radius: 50%;
    opacity: 0.4; animation: drift 25s infinite alternate ease-in-out;
}

.blob-1 { width: 600px; height: 600px; background: var(--acc-primary); top: -100px; left: -10%; }
.blob-2 { width: 500px; height: 500px; background: var(--acc-secondary); bottom: -100px; right: -5%; animation-delay: -5s; }
.blob-3 { width: 450px; height: 450px; background: var(--acc-tertiary); top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.2; animation-delay: -10s; }

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(120px, 80px) scale(1.15); }
}

/* Dashboard Layout */
.dashboard {
    flex: 1; display: flex; flex-direction: column;
    padding: 2.5rem; max-width: 1400px; margin: 0 auto; width: 100%;
}

.top-bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 2rem; }

.status-indicator {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.875rem; color: var(--text-muted); font-weight: 500;
}

.pulse-dot {
    width: 8px; height: 8px; background-color: #10b981;
    border-radius: 50%; box-shadow: 0 0 10px #10b981; animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.quick-shortcut {
    font-size: 0.875rem; color: var(--text-muted);
    background: var(--glass-bg); padding: 8px 18px; border-radius: 20px;
    border: 1px solid var(--glass-border); backdrop-filter: var(--blur-md);
}

/* Center Content */
.center-content {
    flex: 1; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center;
    margin-bottom: 5rem; margin-top: 3rem;
}

.hero-clock {
    font-size: 8.5rem; font-weight: 700; line-height: 1; letter-spacing: -4px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: 0 24px 48px rgba(0,0,0,0.4);
}

.hero-date {
    font-size: 1.25rem; color: var(--acc-primary); margin-top: 1rem;
    font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
}

.hero-greeting {
    margin-top: 2.5rem; font-size: 2.25rem; font-weight: 300;
    color: var(--text-muted); letter-spacing: -0.5px;
}

/* Widgets Area */
.widgets-area {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem;
}

.glass-panel {
    background: var(--glass-bg); backdrop-filter: var(--blur-md); -webkit-backdrop-filter: var(--blur-md);
    border: 1px solid var(--glass-border); border-radius: 24px; padding: 1.75rem;
    position: relative; overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.glass-panel::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    opacity: 0.5;
}

.glass-panel:hover {
    transform: translateY(-6px); border-color: var(--glass-highlight);
    box-shadow: 0 24px 48px rgba(0,0,0,0.4), 0 0 20px rgba(99, 102, 241, 0.1);
}

.glass-panel h3 {
    font-size: 1.25rem; margin-bottom: 1.25rem; color: var(--text-main); font-weight: 500;
    display: flex; align-items: center; justify-content: space-between;
}

/* Widgets Specifics */
.timer-display { font-size: 3.5rem; font-family: var(--font-heading); font-weight: 600; text-align: center; margin-bottom: 1.25rem; letter-spacing: -1px;}
.glass-btn { 
    width: 100%; padding: 14px; border-radius: 12px; border: 1px solid var(--glass-border); 
    background: rgba(255,255,255,0.05); color: white; cursor: pointer;
    font-weight: 600; font-family: var(--font-ui); transition: 0.2s ease;
    backdrop-filter: blur(10px);
}
.glass-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

.w-quick-notes textarea {
    width: 100%; height: 120px; background: rgba(0,0,0,0.2); border: 1px solid var(--glass-border);
    border-radius: 14px; padding: 14px; color: var(--text-main); resize: none; 
    font-family: var(--font-ui); font-size: 0.95rem; line-height: 1.5; transition: border-color 0.3s;
}
.w-quick-notes textarea:focus { outline: none; border-color: var(--acc-primary); box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2); }
.w-quick-notes textarea::placeholder { color: var(--text-muted); }

.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool-btn {
    padding: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
    border-radius: 12px; color: var(--text-muted); cursor: pointer; transition: 0.2s; font-family: var(--font-ui); font-size: 0.85rem; font-weight: 500;
}
.tool-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-main); }

/* Command Bar Modal */
.command-bar-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    display: flex; justify-content: center; align-items: flex-start; padding-top: 15vh;
    z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}

.command-bar-overlay.show { opacity: 1; pointer-events: auto; }

.command-bar {
    width: 100%; max-width: 680px; background: rgba(15, 15, 20, 0.85);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 20px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.05);
    transform: translateY(20px) scale(0.95); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden; backdrop-filter: var(--blur-md); -webkit-backdrop-filter: var(--blur-md);
}

.command-bar-overlay.show .command-bar { transform: translateY(0) scale(1); }

.cmd-input-wrapper {
    display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cmd-icon { color: var(--text-muted); margin-right: 14px; }

#cmd-input {
    flex: 1; background: transparent; border: none; padding: 24px 0;
    font-size: 1.25rem; color: var(--text-main); font-family: var(--font-ui); font-weight: 500;
}
#cmd-input:focus { outline: none; }
#cmd-input::placeholder { color: rgba(255,255,255,0.2); }

.cmd-badge {
    background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
    border-radius: 6px; padding: 3px 8px; font-size: 10px; color: var(--text-muted); font-weight: 600;
}

.cmd-results { max-height: 400px; overflow-y: auto; padding: 12px; }
.cmd-results::-webkit-scrollbar { width: 6px; }
.cmd-results::-webkit-scrollbar-track { background: transparent; }
.cmd-results::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.cmd-group-title {
    display: block; padding: 10px 14px; font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--text-muted); font-weight: 600;
}

.cmd-item {
    width: 100%; display: flex; align-items: center; padding: 14px;
    background: transparent; border: none; border-radius: 12px;
    color: var(--text-main); cursor: pointer; transition: 0.1s;
    font-family: var(--font-ui); font-size: 1.05rem; font-weight: 500;
}

.cmd-item:hover, .cmd-item.active { background: rgba(255,255,255,0.06); }
.cmd-item-icon { margin-right: 16px; font-size: 1.25rem; opacity: 0.8; }
.cmd-item-text { flex: 1; text-align: left; }
.cmd-item-shortcut { color: var(--text-muted); background: rgba(0,0,0,0.4); padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; font-family: monospace; }

.cmd-footer {
    display: flex; justify-content: flex-end; gap: 20px; padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,0.05); background: rgba(0,0,0,0.2);
    font-size: 0.8rem; color: var(--text-muted);
}

@media (max-width: 768px) {
    .dashboard { padding: 1.5rem; }
    .hero-clock { font-size: 5rem; }
    .hero-greeting { font-size: 1.5rem; }
    .top-bar { flex-direction: column; gap: 1rem; align-items: flex-start; }
    .widgets-area { grid-template-columns: 1fr; }
}
