/* ========================================
VASUDEV AI - NEW TAB
Premium Apple-style Design System
v4.0 - Gradient BG + Omnibox + Dock+
======================================== */

/* --- CSS Variables (Light Theme) --- */
:root {
--bg: #EDEEF0;
--bg-solid: #E8E9EC;
--text: #1D1D1F;
--text-secondary: #6E6E73;
--card-bg: rgba(255, 255, 255, 0.65);
--card-border: rgba(0, 0, 0, 0.06);
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
--shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
--shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.10);
--search-bg: rgba(255, 255, 255, 0.85);
--accent: #34C759;
--accent-soft: rgba(52, 199, 89, 0.12);
--danger: #FF3B30;

/* Animated text gradient */
--text-grad-1: #2C2C2E;
--text-grad-2: #636366;
--text-grad-3: #3A3A3C;
--text-grad-4: #8E8E93;

/* 3D Floating Shadows */
--float-shadow:
inset 0 2px 4px rgba(255, 255, 255, 0.6),
inset 0 -2px 6px rgba(0, 0, 0, 0.04),
0 4px 12px rgba(0, 0, 0, 0.06),
0 12px 36px rgba(0, 0, 0, 0.08);
--float-shadow-hover:
inset 0 2px 4px rgba(255, 255, 255, 0.7),
inset 0 -2px 6px rgba(0, 0, 0, 0.03),
0 8px 20px rgba(0, 0, 0, 0.08),
0 20px 48px rgba(0, 0, 0, 0.12);
--float-shadow-active:
inset 0 2px 8px rgba(0, 0, 0, 0.06),
inset 0 -1px 2px rgba(255, 255, 255, 0.4),
0 2px 6px rgba(0, 0, 0, 0.05),
0 6px 16px rgba(0, 0, 0, 0.06);
--search-focus-glow: 0 0 0 4px rgba(52, 199, 89, 0.14), 0 0 24px rgba(52, 199, 89, 0.08);
--dock-float:
inset 0 1px 3px rgba(255, 255, 255, 0.5),
inset 0 -2px 6px rgba(0, 0, 0, 0.03),
0 6px 20px rgba(0, 0, 0, 0.07),
0 16px 48px rgba(0, 0, 0, 0.10);
--dock-float-hover:
inset 0 1px 3px rgba(255, 255, 255, 0.6),
inset 0 -2px 6px rgba(0, 0, 0, 0.02),
0 10px 28px rgba(0, 0, 0, 0.10),
0 24px 56px rgba(0, 0, 0, 0.14);
--dock-bg: rgba(255, 255, 255, 0.55);
--dock-blur: 28px;

/* Background gradient blobs - neutral warm tones */
--grad-1: rgba(186, 163, 142, 0.18);
--grad-2: rgba(163, 148, 178, 0.14);
--grad-3: rgba(142, 172, 166, 0.12);
--grad-4: rgba(200, 180, 160, 0.10);

/* Modal */
--modal-bg: rgba(255, 255, 255, 0.92);
--modal-overlay: rgba(0, 0, 0, 0.25);
--input-bg: rgba(0, 0, 0, 0.04);

/* Omnibox */
--omni-bg: rgba(255, 255, 255, 0.95);
--omni-hover: rgba(52, 199, 89, 0.08);

/* Focus ring */
--focus-ring: 0 0 0 3px rgba(52, 199, 89, 0.4);
}

/* --- Dark Theme --- */
[data-theme="dark"] {
--bg: #131316;
--bg-solid: #18181B;
--text: #F5F5F7;
--text-secondary: #86868B;
--card-bg: rgba(28, 28, 30, 0.65);
--card-border: rgba(255, 255, 255, 0.06);
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
--shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
--shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.4);
--search-bg: rgba(28, 28, 30, 0.85);
--accent: #30D158;
--accent-soft: rgba(48, 209, 88, 0.14);

--text-grad-1: #F5F5F7;
--text-grad-2: #A1A1A6;
--text-grad-3: #D1D1D6;
--text-grad-4: #8E8E93;

--float-shadow:
inset 0 1px 3px rgba(255, 255, 255, 0.06),
inset 0 -2px 6px rgba(0, 0, 0, 0.3),
0 4px 12px rgba(0, 0, 0, 0.25),
0 12px 36px rgba(0, 0, 0, 0.35);
--float-shadow-hover:
inset 0 1px 3px rgba(255, 255, 255, 0.08),
inset 0 -2px 6px rgba(0, 0, 0, 0.2),
0 8px 20px rgba(0, 0, 0, 0.3),
0 20px 48px rgba(0, 0, 0, 0.4);
--float-shadow-active:
inset 0 2px 8px rgba(0, 0, 0, 0.4),
inset 0 -1px 2px rgba(255, 255, 255, 0.04),
0 2px 6px rgba(0, 0, 0, 0.2),
0 6px 16px rgba(0, 0, 0, 0.25);
--search-focus-glow: 0 0 0 4px rgba(48, 209, 88, 0.20), 0 0 24px rgba(48, 209, 88, 0.12);
--dock-float:
inset 0 1px 2px rgba(255, 255, 255, 0.05),
inset 0 -2px 6px rgba(0, 0, 0, 0.3),
0 6px 20px rgba(0, 0, 0, 0.3),
0 16px 48px rgba(0, 0, 0, 0.4);
--dock-float-hover:
inset 0 1px 2px rgba(255, 255, 255, 0.06),
inset 0 -2px 6px rgba(0, 0, 0, 0.2),
0 10px 28px rgba(0, 0, 0, 0.35),
0 24px 56px rgba(0, 0, 0, 0.45);
--dock-bg: rgba(28, 28, 30, 0.55);

--grad-1: rgba(120, 100, 80, 0.12);
--grad-2: rgba(100, 85, 130, 0.10);
--grad-3: rgba(80, 120, 110, 0.08);
--grad-4: rgba(140, 115, 95, 0.08);

--modal-bg: rgba(28, 28, 30, 0.95);
--modal-overlay: rgba(0, 0, 0, 0.55);
--input-bg: rgba(255, 255, 255, 0.06);

--omni-bg: rgba(28, 28, 30, 0.97);
--omni-hover: rgba(48, 209, 88, 0.12);
}

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

/* ========================================
NUCLEAR CHROME KILL
======================================== */
html {
height: 100% !important;
overflow: hidden !important;
background: var(--bg) !important;
}

body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background: var(--bg) !important;
color: var(--text);
height: 100vh !important;
width: 100vw !important;
max-height: 100vh !important;
display: flex;
flex-direction: column;
align-items: center;
overflow: hidden !important;
transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
position: relative;
}

/* Nuclear: Kill Chrome's custom elements only */
body > iframe,
ntp-app, ntp-app *,
cr-most-visited, cr-most-visited *,
cr-searchbox, cr-searchbox *,
ntp-middle-slot, ntp-doodle, ntp-realbox,
#ntp-contents, #most-visited, #one-google-bar,
#customize-dialog, .customize-dialog,
#fakebox, #realbox, #logo, #attribution,
.ntp-bottom, #ntp-bottom {
display: none !important;
visibility: hidden !important;
opacity: 0 !important;
width: 0 !important;
height: 0 !important;
max-height: 0 !important;
position: fixed !important;
top: -99999px !important;
left: -99999px !important;
pointer-events: none !important;
z-index: -9999 !important;
}

/* ========================================
ANIMATED BACKGROUND GRADIENT
Neutral warm tones - looks premium
======================================== */
.vasudev-bg-gradient {
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
overflow: hidden;
}

.vasudev-bg-gradient::before,
.vasudev-bg-gradient::after {
content: '';
position: absolute;
border-radius: 50%;
filter: blur(100px);
opacity: 1;
animation-timing-function: ease-in-out;
animation-iteration-count: infinite;
animation-direction: alternate;
}

.vasudev-bg-gradient::before {
width: 700px;
height: 700px;
top: -20%;
right: -15%;
background: radial-gradient(circle, var(--grad-1) 0%, transparent 70%);
animation: blobMove1 20s infinite alternate;
}

.vasudev-bg-gradient::after {
width: 600px;
height: 600px;
bottom: -15%;
left: -15%;
background: radial-gradient(circle, var(--grad-2) 0%, transparent 70%);
animation: blobMove2 25s infinite alternate;
}

/* Third blob via child div */
.vasudev-bg-gradient .blob3 {
position: absolute;
width: 550px;
height: 550px;
top: 35%;
left: 55%;
transform: translate(-50%, -50%);
border-radius: 50%;
background: radial-gradient(circle, var(--grad-3) 0%, transparent 70%);
filter: blur(100px);
opacity: 1;
animation: blobMove3 22s ease-in-out infinite alternate;
pointer-events: none;
}

/* Fourth blob */
.vasudev-bg-gradient .blob4 {
position: absolute;
width: 500px;
height: 500px;
top: 60%;
left: 20%;
transform: translate(-50%, -50%);
border-radius: 50%;
background: radial-gradient(circle, var(--grad-4) 0%, transparent 70%);
filter: blur(110px);
opacity: 0.8;
animation: blobMove4 28s ease-in-out infinite alternate;
pointer-events: none;
}

@keyframes blobMove1 {
0% { transform: translate(0, 0) scale(1); }
33% { transform: translate(-80px, 50px) scale(1.15); }
66% { transform: translate(40px, -40px) scale(0.95); }
100% { transform: translate(-30px, 70px) scale(1.08); }
}

@keyframes blobMove2 {
0% { transform: translate(0, 0) scale(1); }
33% { transform: translate(60px, -50px) scale(1.1); }
66% { transform: translate(-50px, 40px) scale(0.92); }
100% { transform: translate(40px, -60px) scale(1.06); }
}

@keyframes blobMove3 {
0% { transform: translate(-50%, -50%) scale(1); }
50% { transform: translate(-35%, -65%) scale(1.2); }
100% { transform: translate(-65%, -35%) scale(0.88); }
}

@keyframes blobMove4 {
0% { transform: translate(-50%, -50%) scale(1); }
50% { transform: translate(-60%, -40%) scale(1.1); }
100% { transform: translate(-40%, -60%) scale(0.95); }
}

/* ========================================
TOP BAR
======================================== */
.top-bar {
position: fixed;
top: 0;
right: 0;
padding: 20px 28px;
display: flex;
gap: 10px;
z-index: 200;
}

.icon-btn {
width: 38px;
height: 38px;
border-radius: 12px;
border: 1px solid var(--card-border);
background: var(--card-bg);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
color: var(--text);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
box-shadow: var(--shadow-sm);
position: relative;
overflow: hidden;
}

.icon-btn::after {
content: '';
position: absolute;
inset: 0;
background: radial-gradient(circle at center, var(--accent-soft) 0%, transparent 70%);
opacity: 0;
transition: opacity 0.3s ease;
}

.icon-btn:hover {
transform: translateY(-2px) scale(1.08);
box-shadow: var(--shadow);
}

.icon-btn:hover::after {
opacity: 1;
}

.icon-btn:active {
transform: scale(0.92);
transition-duration: 0.1s;
}

.icon-btn svg {
width: 18px;
height: 18px;
position: relative;
z-index: 1;
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-btn:hover svg {
transform: rotate(15deg);
}

/* --- Keyboard Shortcut Hints --- */
.key-hint {
position: absolute;
bottom: -20px;
left: 50%;
transform: translateX(-50%) scale(0.8);
font-size: 9px;
font-weight: 600;
font-family: 'Inter', sans-serif;
color: var(--text-secondary);
background: var(--card-bg);
border: 1px solid var(--card-border);
padding: 1px 5px;
border-radius: 4px;
opacity: 0;
transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
pointer-events: none;
white-space: nowrap;
z-index: 1;
backdrop-filter: blur(8px);
}

.icon-btn:hover .key-hint {
  opacity: 0.8;
  transform: translateX(-50%) scale(1);
  bottom: -24px;
}

/* ========================================
GMAIL PROFILE (top right)
========================================*/
.gmail-profile {
  position: fixed;
  top: 16px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 200;
}

.apps-menu {
  position: fixed;
  top: 16px;
  right: 85px;
  z-index: 201;
}

.apps-grid-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.25s ease;
}

.apps-grid-btn:hover {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.apps-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  min-width: 200px;
  padding: 8px;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  z-index: 300;
}

.apps-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 6px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.app-item:hover {
  background: var(--hover-bg);
  transform: translateY(-2px);
}

.app-item:active {
  transform: translateY(0);
}

.app-favicon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
}

.app-favicon-fallback {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.app-name {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: center;
}

.gmail-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 10px;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gmail-link:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow);
}

.gmail-icon {
  width: 24px;
  height: 24px;
}

.gmail-fallback {
  width: 24px;
  height: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.profile-pic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: none;
}

.profile-pic:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow);
}

.profile-pic.visible {
  display: block;
}

/* Dock buttons */
.dock-btn {
  width: 36px;
  height: 36px;
}

.dock-btn svg {
  width: 16px;
  height: 16px;
}

/* ====================================
BOTTOM CONTROLS (bottom right)
======================================== */
.bottom-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 200;
}

/* ====================================
MAIN CONTAINER
======================================== */
.main-container {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40px 24px 120px;
width: 100%;
max-width: 740px;
overflow-y: auto;
overflow-x: hidden;
position: relative;
z-index: 1;
}

.main-container::-webkit-scrollbar {
width: 4px;
}
.main-container::-webkit-scrollbar-track {
background: transparent;
}
.main-container::-webkit-scrollbar-thumb {
background: var(--text-secondary);
border-radius: 4px;
opacity: 0.3;
}

/* ========================================
TIME & GREETING - ANIMATED GRADIENT TEXT
======================================== */
.time-section {
display: none;
}

.time {
font-size: clamp(72px, 12vw, 108px);
font-weight: 200;
letter-spacing: -3px;
line-height: 1;
font-variant-numeric: tabular-nums;
user-select: none;
transition: transform 0.3s ease;
/* Animated gradient text */
background: linear-gradient(
135deg,
var(--text-grad-1) 0%,
var(--text-grad-2) 25%,
var(--text-grad-1) 50%,
var(--text-grad-4) 75%,
var(--text-grad-1) 100%
);
background-size: 300% 300%;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
animation: textShimmer 8s ease-in-out infinite;
}

.time:hover {
transform: scale(1.02);
}

.time-colon {
opacity: 0.4;
animation: pulse 2s ease-in-out infinite;
display: inline-block;
}

.date {
font-size: 15px;
font-weight: 400;
color: var(--text-secondary);
margin-top: 10px;
letter-spacing: 0.3px;
opacity: 0;
animation: fadeUp 0.5s ease 0.3s forwards;
}

.greeting {
font-size: 17px;
font-weight: 400;
margin-top: 4px;
opacity: 0;
animation: fadeUp 0.5s ease 0.4s forwards;
/* Animated gradient */
background: linear-gradient(
90deg,
var(--text-grad-2) 0%,
var(--text-grad-3) 50%,
var(--text-grad-2) 100%
);
background-size: 200% 200%;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
animation: fadeUp 0.5s ease 0.4s forwards, textShimmer 6s ease-in-out infinite;
}

/* ========================================
BRANDING - CINZEL DECORATIVE + ANIMATED GRADIENT
======================================== */
.branding {
margin-top: 0;
margin-bottom: 32px;
opacity: 0;
transform: translateY(20px) scale(0.96);
animation: heroIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
position: relative;
}

.brand-name {
font-family: 'Cinzel Decorative', serif;
font-size: clamp(30px, 5.5vw, 46px);
font-weight: 900;
letter-spacing: 3px;
background: linear-gradient(
135deg,
var(--text-grad-1) 0%,
var(--text-grad-2) 20%,
var(--text-grad-3) 40%,
var(--text-grad-4) 60%,
var(--text-grad-1) 80%,
var(--text-grad-2) 100%
);
background-size: 300% 300%;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
user-select: none;
animation: textShimmer 6s ease-in-out infinite;
transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
cursor: default;
text-transform: uppercase;
position: relative;
}

.brand-name:hover {
transform: scale(1.04) translateY(-2px);
filter: brightness(1.1);
}

.branding::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 120%;
height: 200%;
background: radial-gradient(ellipse at center, var(--accent-soft) 0%, transparent 70%);
opacity: 0;
transition: opacity 0.5s ease;
pointer-events: none;
z-index: -1;
}

.branding:hover::after {
opacity: 1;
}

/* ========================================
SEARCH BAR - 3D FLOATING
======================================== */
.search-container {
width: 100%;
max-width: 560px;
margin-bottom: 40px;
opacity: 0;
transform: translateY(20px) scale(0.96);
animation: heroIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

.search-wrapper {
position: relative;
width: 100%;
transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.search-wrapper:hover {
transform: none;
}

.search-icon {
position: absolute;
left: 22px;
top: 50%;
transform: translateY(-50%);
width: 18px;
height: 18px;
color: var(--text-secondary);
pointer-events: none;
transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
z-index: 2;
}

.search-bar {
width: 100%;
padding: 18px 24px 18px 54px;
font-size: 15px;
font-family: 'Inter', sans-serif;
font-weight: 400;
border: 1px solid var(--card-border);
border-radius: 20px;
background: var(--search-bg);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
color: var(--text);
box-shadow: var(--float-shadow);
outline: none;
transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
position: relative;
z-index: 1;
}

.search-bar::placeholder {
color: var(--text-secondary);
font-weight: 400;
transition: color 0.3s ease;
}

.search-bar:hover {
box-shadow: var(--float-shadow-hover);
}

.search-bar:focus {
transform: scale(1.015);
box-shadow: var(--float-shadow-hover);
border-color: var(--card-border);
}

.search-bar:focus::placeholder {
color: transparent;
}

.search-bar:focus ~ .search-icon {
color: var(--text);
transform: translateY(-50%) scale(1.15) rotate(-8deg);
}

/* When omnibox is open, remove bottom radius */
.search-wrapper.omni-open .search-bar {
  border-radius: 20px 20px 0 0;
}

/* ========================================
SEARCH STYLES
======================================== */
/* Minimal Search */
[data-search="minimal"] .search-bar {
  border-radius: 8px;
  background: var(--input-bg);
  box-shadow: none;
  border: 1px solid var(--card-border);
}
[data-search="minimal"] .search-wrapper:hover .search-bar,
[data-search="minimal"] .search-bar:focus {
  box-shadow: none;
  border-color: var(--accent);
}

/* Rounded Search */
[data-search="rounded"] .search-bar {
  border-radius: 50px;
  padding-left: 60px;
}
[data-search="rounded"] .search-wrapper.omni-open .search-bar {
  border-radius: 50px 50px 0 0;
}

/* Pill Search */
[data-search="pill"] .search-bar {
  border-radius: 999px;
  padding-left: 60px;
  background: var(--bg);
}
[data-search="pill"] .search-wrapper {
  max-width: 700px;
}
[data-search="pill"] .search-wrapper::before {
  display: none;
}
[data-search="pill"] .search-bar:focus {
  transform: none;
}

/* Floating reflection line on search bar */
.search-wrapper::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
  border-radius: 20px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.6;
}

/* ========================================
SEARCH STYLES - Omnibox Matching
======================================== */
/* Minimal style */
[data-search="minimal"] .search-wrapper:hover .search-bar,
[data-search="minimal"] .search-bar:focus {
  box-shadow: none;
  border-color: var(--accent);
}
[data-search="minimal"] .omnibox-dropdown {
  border-radius: 0 0 8px 8px;
}

/* Rounded style */
[data-search="rounded"] .search-bar {
  border-radius: 50px;
  padding-left: 60px;
}
[data-search="rounded"] .search-wrapper.omni-open .search-bar {
  border-radius: 50px 50px 0 0;
}
[data-search="rounded"] .omnibox-dropdown {
  border-radius: 0 0 50px 50px;
}

/* Pill style */
[data-search="pill"] .search-bar {
  border-radius: 999px;
  padding-left: 60px;
  background: var(--bg);
}
[data-search="pill"] .search-wrapper {
  max-width: 700px;
}
[data-search="pill"] .search-wrapper::before {
  display: none;
}
[data-search="pill"] .search-bar:focus {
  transform: none;
}
[data-theme="dark"] .search-wrapper::before {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
}

/* Search shortcut hint */
.search-hint {
position: absolute;
right: 18px;
top: 50%;
transform: translateY(-50%);
font-size: 11px;
color: var(--text-secondary);
opacity: 0.4;
pointer-events: none;
transition: opacity 0.3s ease;
z-index: 2;
}

.search-hint kbd {
display: inline-block;
padding: 1px 6px;
font-family: 'Inter', sans-serif;
font-size: 10px;
font-weight: 600;
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: 4px;
box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.search-bar:focus ~ .search-hint {
opacity: 0;
}

/* Search shortcut hints on hover */
.search-shortcut-hints {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 2;
}

.search-shortcut-hints.visible {
  opacity: 1;
}

.shortcut-hint {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--text-secondary);
  opacity: 0.7;
}

.shortcut-hint kbd {
  display: inline-block;
  padding: 1px 5px;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* ========================================
OMNIBOX SUGGESTIONS DROPDOWN - 3D FLOATING
======================================== */
.omnibox-dropdown {
position: absolute;
top: 100%;
left: 0;
right: 0;
background: var(--omni-bg);
backdrop-filter: blur(28px);
-webkit-backdrop-filter: blur(28px);
border: 1px solid var(--card-border);
border-top: 1px solid rgba(0, 0, 0, 0.03);
border-radius: 0 0 20px 20px;
box-shadow:
inset 0 2px 8px rgba(0, 0, 0, 0.03),
inset 0 -1px 3px rgba(255, 255, 255, 0.4),
0 8px 24px rgba(0, 0, 0, 0.08),
0 20px 48px rgba(0, 0, 0, 0.10);
z-index: 100;
display: none;
overflow: hidden;
max-height: 320px;
overflow-y: auto;
}

[data-theme="dark"] .omnibox-dropdown {
border-top-color: rgba(255, 255, 255, 0.03);
box-shadow:
inset 0 2px 8px rgba(0, 0, 0, 0.25),
inset 0 -1px 3px rgba(255, 255, 255, 0.03),
0 8px 24px rgba(0, 0, 0, 0.3),
0 20px 48px rgba(0, 0, 0, 0.4);
}

/* Bottom reflection line inside dropdown */
.omnibox-dropdown::after {
content: '';
position: absolute;
bottom: 1px;
left: 24px;
right: 24px;
height: 1px;
background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
border-radius: 20px;
pointer-events: none;
}

[data-theme="dark"] .omnibox-dropdown::after {
background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
}

.omnibox-dropdown.visible {
display: block;
animation: omniReveal 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.omnibox-dropdown::-webkit-scrollbar {
width: 4px;
}
.omnibox-dropdown::-webkit-scrollbar-thumb {
background: var(--text-secondary);
border-radius: 4px;
opacity: 0.2;
}

.omni-item {
display: flex;
align-items: center;
gap: 14px;
padding: 13px 22px;
cursor: pointer;
transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
border-bottom: 1px solid rgba(0, 0, 0, 0.03);
position: relative;
}

[data-theme="dark"] .omni-item {
border-bottom-color: rgba(255, 255, 255, 0.03);
}

.omni-item:last-child {
border-bottom: none;
}

.omni-item:hover,
.omni-item.active {
background: var(--omni-hover);
padding-left: 26px;
}

.omni-item:hover .omni-item-icon,
.omni-item.active .omni-item-icon {
color: var(--accent);
opacity: 1;
transform: scale(1.1);
}

.omni-item-icon {
width: 18px;
height: 18px;
color: var(--text-secondary);
flex-shrink: 0;
opacity: 0.5;
}

.omni-item-text {
font-size: 14px;
color: var(--text);
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.omni-item-text strong {
font-weight: 600;
}

.omni-item-type {
font-size: 11px;
color: var(--text-secondary);
opacity: 0.5;
flex-shrink: 0;
}

@keyframes omniReveal {
from {
opacity: 0;
transform: translateY(-4px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

/* ========================================
WIDGETS
======================================== */
.widgets-container {
width: 100%;
max-width: 640px;
display: none;
gap: 16px;
grid-template-columns: repeat(3, 1fr);
margin-bottom: 40px;
}

.widgets-container.visible {
display: grid;
animation: widgetsReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.widget {
background: var(--card-bg);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid var(--card-border);
border-radius: 16px;
padding: 18px;
box-shadow: var(--shadow-sm);
transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
will-change: transform;
}

.widget:hover {
transform: translateY(-4px) scale(1.01);
box-shadow: var(--shadow-hover);
}

.widget:active {
transform: translateY(-1px) scale(0.99);
transition-duration: 0.1s;
}

.widget-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 14px;
}

.widget-icon {
width: 20px;
height: 20px;
color: var(--text-secondary);
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.widget:hover .widget-icon {
transform: scale(1.15) rotate(-5deg);
color: var(--accent);
}

.widget-title {
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.8px;
color: var(--text-secondary);
flex: 1;
}

/* --- Notes --- */
.notes-input {
width: 100%;
min-height: 80px;
max-height: 150px;
padding: 12px;
font-size: 13px;
font-family: 'Inter', sans-serif;
line-height: 1.6;
border: 1px solid var(--card-border);
border-radius: 10px;
background: var(--input-bg);
color: var(--text);
outline: none;
resize: vertical;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.notes-input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-soft);
}

/* --- Tasks --- */
.clear-done-btn {
font-size: 11px;
font-family: 'Inter', sans-serif;
font-weight: 500;
color: var(--accent);
background: none;
border: none;
cursor: pointer;
padding: 2px 8px;
border-radius: 6px;
transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.clear-done-btn:hover {
background: var(--accent-soft);
transform: scale(1.05);
}

.clear-done-btn:active {
transform: scale(0.95);
}

.task-list {
list-style: none;
max-height: 120px;
overflow-y: auto;
}

.task-list::-webkit-scrollbar {
width: 3px;
}
.task-list::-webkit-scrollbar-thumb {
background: var(--text-secondary);
border-radius: 3px;
opacity: 0.3;
}

.task-item {
display: flex;
align-items: center;
gap: 10px;
padding: 7px 0;
border-bottom: 1px solid var(--card-border);
cursor: default;
transition: opacity 0.3s ease;
animation: taskSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.task-item:last-child {
border-bottom: none;
}

.task-checkbox {
width: 18px;
height: 18px;
min-width: 18px;
border-radius: 50%;
border: 2px solid var(--text-secondary);
cursor: pointer;
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
display: flex;
align-items: center;
justify-content: center;
position: relative;
}

.task-checkbox:hover {
border-color: var(--accent);
transform: scale(1.15);
}

.task-checkbox:active {
transform: scale(0.85);
}

.task-checkbox.checked {
background: var(--accent);
border-color: var(--accent);
animation: checkPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.task-checkbox.checked::after {
content: '';
width: 6px;
height: 6px;
background: white;
border-radius: 50%;
}

.task-text {
font-size: 13px;
line-height: 1.3;
word-break: break-word;
transition: all 0.3s ease;
}

.task-text.completed {
text-decoration: line-through;
color: var(--text-secondary);
opacity: 0.5;
}

.task-add {
margin-top: 10px;
}

.task-input {
width: 100%;
padding: 10px 12px;
font-size: 13px;
font-family: 'Inter', sans-serif;
border: 1px solid var(--card-border);
border-radius: 10px;
background: var(--input-bg);
color: var(--text);
outline: none;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.task-input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-soft);
}

/* --- Calendar --- */
.calendar-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 2px;
text-align: center;
}

.cal-head {
font-size: 10px;
font-weight: 600;
color: var(--text-secondary);
padding: 4px 0;
letter-spacing: 0.5px;
text-transform: uppercase;
}

.cal-day {
font-size: 12px;
padding: 5px 0;
border-radius: 8px;
color: var(--text-secondary);
transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
cursor: default;
}

.cal-day:hover {
background: var(--accent-soft);
transform: scale(1.15);
}

.cal-day.today {
background: var(--accent);
color: #FFFFFF;
font-weight: 600;
box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.cal-day.today:hover {
transform: scale(1.2);
}

.cal-day.empty {
pointer-events: none;
}

/* ========================================
DOCK - ICONS ONLY, COMPACT, + BUTTON
======================================== */
.dock {
position: fixed;
bottom: 20px;
left: 0;
right: 0;
margin: 0 auto;
width: fit-content;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 8px 14px;
background: var(--dock-bg);
backdrop-filter: blur(var(--dock-blur));
-webkit-backdrop-filter: blur(var(--dock-blur));
border-radius: 18px;
box-shadow: var(--dock-float);
border: 1px solid var(--card-border);
z-index: 100;
opacity: 0;
transform: translateY(24px);
animation: dockIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
transition: box-shadow 0.4s ease, transform 0.3s ease;
}

/* Reflection line on dock top edge */
.dock::before {
content: '';
position: absolute;
top: 1px;
left: 18px;
right: 18px;
height: 1px;
background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%);
border-radius: 18px;
pointer-events: none;
}

[data-theme="dark"] .dock::before {
background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
}

.dock:hover {
box-shadow: var(--dock-float-hover);
}

/* Dock separator line */
.dock-separator {
width: 1px;
height: 28px;
background: var(--card-border);
margin: 0 4px;
border-radius: 1px;
opacity: 0.6;
}

.dock-item {
display: flex;
align-items: center;
justify-content: center;
padding: 5px;
border-radius: 12px;
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
cursor: pointer;
text-decoration: none;
color: var(--text);
position: relative;
background: none;
border: none;
}

.dock-item:hover {
transform: translateY(-6px) scale(1.2);
}

.dock-item:active {
transform: translateY(-3px) scale(1.0);
transition-duration: 0.1s;
}

/* Dot indicator on hover */
.dock-item::after {
content: '';
position: absolute;
bottom: -4px;
left: 50%;
transform: translateX(-50%) scale(0);
width: 3px;
height: 3px;
border-radius: 50%;
background: var(--text-secondary);
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dock-item:hover::after {
transform: translateX(-50%) scale(1);
}

/* Tooltip on hover */
.dock-item .dock-tooltip {
position: absolute;
bottom: calc(100% + 10px);
left: 50%;
transform: translateX(-50%) scale(0.8);
font-size: 11px;
font-weight: 500;
font-family: 'Inter', sans-serif;
color: var(--text);
background: var(--card-bg);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid var(--card-border);
padding: 4px 10px;
border-radius: 8px;
white-space: nowrap;
opacity: 0;
pointer-events: none;
transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dock-item:hover .dock-tooltip {
opacity: 1;
transform: translateX(-50%) scale(1);
}

.dock-icon {
width: 32px;
height: 32px;
border-radius: 8px;
object-fit: cover;
background: var(--card-bg);
transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
box-shadow:
inset 0 1px 2px rgba(255, 255, 255, 0.3),
0 2px 6px rgba(0, 0, 0, 0.08),
0 4px 12px rgba(0, 0, 0, 0.06);
}

.dock-icon-fallback {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--card-bg);
  box-shadow:
  inset 0 1px 2px rgba(255, 255, 255, 0.3),
  0 2px 6px rgba(0, 0, 0, 0.08),
  0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dock-item:hover .dock-icon-fallback {
  box-shadow:
  inset 0 1px 2px rgba(255, 255, 255, 0.4),
  0 4px 12px rgba(0, 0, 0, 0.1),
  0 12px 24px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .dock-icon {
box-shadow:
inset 0 1px 2px rgba(255, 255, 255, 0.04),
0 2px 8px rgba(0, 0, 0, 0.3),
0 6px 16px rgba(0, 0, 0, 0.25);
}

.dock-item:hover .dock-icon {
box-shadow:
inset 0 1px 2px rgba(255, 255, 255, 0.4),
0 4px 12px rgba(0, 0, 0, 0.1),
0 12px 24px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .dock-item:hover .dock-icon {
box-shadow:
inset 0 1px 2px rgba(255, 255, 255, 0.06),
0 4px 12px rgba(0, 0, 0, 0.35),
0 12px 24px rgba(0, 0, 0, 0.35);
}

/* + button SVG icon in dock */
.dock-icon-svg {
width: 32px;
height: 32px;
padding: 5px;
border-radius: 8px;
color: var(--text-secondary);
background: var(--input-bg);
border: 1.5px dashed var(--card-border);
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dock-add-btn:hover .dock-icon-svg {
color: var(--accent);
border-color: var(--accent);
background: var(--accent-soft);
transform: rotate(90deg);
}

/* Remove button on dock items */
.dock-remove-btn {
position: absolute;
top: -4px;
right: -4px;
width: 16px;
height: 16px;
border-radius: 50%;
background: var(--danger);
border: 2px solid var(--bg);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transform: scale(0.5);
transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
z-index: 5;
padding: 0;
}

.dock-remove-btn svg {
width: 8px;
height: 8px;
color: white;
stroke-width: 3;
}

.dock-item:hover .dock-remove-btn {
opacity: 1;
transform: scale(1);
}

.dock-remove-btn:hover {
transform: scale(1.2) !important;
}

/* ========================================
ADD WEBSITE MODAL
======================================== */
.modal-overlay {
position: fixed;
inset: 0;
background: var(--modal-overlay);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
z-index: 1000;
display: none;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.25s ease;
}

.modal-overlay.visible {
display: flex;
opacity: 1;
}

.modal-card {
background: var(--modal-bg);
backdrop-filter: blur(40px);
-webkit-backdrop-filter: blur(40px);
border: 1px solid var(--card-border);
border-radius: 20px;
width: 380px;
max-width: 90vw;
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
transform: scale(0.9) translateY(20px);
transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
opacity: 0;
}

.modal-overlay.visible .modal-card {
transform: scale(1) translateY(0);
opacity: 1;
}

.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px 24px 0;
}

.modal-title {
font-size: 17px;
font-weight: 600;
color: var(--text);
}

.modal-close {
width: 28px;
height: 28px;
border-radius: 50%;
border: none;
background: var(--input-bg);
color: var(--text-secondary);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}

.modal-close svg {
width: 14px;
height: 14px;
}

.modal-close:hover {
background: var(--accent-soft);
color: var(--accent);
transform: rotate(90deg);
}

.modal-body {
padding: 20px 24px;
}

.modal-label {
display: block;
font-size: 12px;
font-weight: 600;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.6px;
margin-bottom: 6px;
margin-top: 14px;
}

.modal-label:first-child {
margin-top: 0;
}

.modal-input {
width: 100%;
padding: 12px 16px;
font-size: 14px;
font-family: 'Inter', sans-serif;
border: 1px solid var(--card-border);
border-radius: 12px;
background: var(--input-bg);
color: var(--text);
outline: none;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-soft);
}

.modal-input::placeholder {
color: var(--text-secondary);
opacity: 0.5;
}

.modal-footer {
display: flex;
gap: 10px;
padding: 0 24px 20px;
justify-content: flex-end;
}

.modal-btn {
padding: 10px 22px;
font-size: 14px;
font-family: 'Inter', sans-serif;
font-weight: 500;
border-radius: 12px;
border: none;
cursor: pointer;
transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-btn-cancel {
background: var(--input-bg);
color: var(--text-secondary);
}

.modal-btn-cancel:hover {
background: var(--card-border);
}

.modal-btn-add {
background: var(--accent);
color: #FFFFFF;
}

.modal-btn-add:hover {
transform: scale(1.04);
box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.modal-btn-add:active {
transform: scale(0.97);
}

/* ========================================
GITHUB OPEN SOURCE BADGE
======================================== */
.github-badge {
position: fixed;
bottom: 20px;
left: 20px;
display: flex;
align-items: center;
gap: 7px;
padding: 7px 14px 7px 10px;
background: var(--card-bg);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid var(--card-border);
border-radius: 12px;
text-decoration: none;
color: var(--text-secondary);
opacity: 0.3;
z-index: 100;
transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
box-shadow: var(--shadow-sm);
cursor: pointer;
animation: fadeUp 0.5s ease 0.5s forwards;
overflow: hidden;
}

.github-badge::before {
content: '';
position: absolute;
inset: 0;
background: radial-gradient(circle at center, var(--accent-soft) 0%, transparent 70%);
opacity: 0;
transition: opacity 0.3s ease;
}

.github-badge:hover {
opacity: 1;
transform: translateY(-3px) scale(1.05);
box-shadow: var(--shadow-hover);
color: var(--text);
}

.github-badge:hover::before {
opacity: 1;
}

.github-badge:active {
transform: translateY(-1px) scale(0.97);
transition-duration: 0.1s;
}

.github-badge-icon {
width: 18px;
height: 18px;
flex-shrink: 0;
position: relative;
z-index: 1;
transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.github-badge:hover .github-badge-icon {
transform: rotate(-15deg) scale(1.15);
}

.github-badge-text {
font-size: 11px;
font-weight: 600;
font-family: 'Inter', sans-serif;
letter-spacing: 0.3px;
position: relative;
z-index: 1;
white-space: nowrap;
}

/* ========================================
FOOTER
======================================== */
.footer {
position: fixed;
bottom: 58px;
left: 50%;
transform: translateX(-50%);
font-size: 11px;
color: var(--text-secondary);
opacity: 0.25;
transition: all 0.35s ease;
white-space: nowrap;
z-index: 50;
letter-spacing: 0.2px;
}

.footer:hover {
opacity: 0.6;
transform: translateX(-50%) translateY(-1px);
}

.footer a {
color: inherit;
text-decoration: none;
}

/* ========================================
ANIMATIONS
======================================== */
@keyframes heroIn {
from {
opacity: 0;
transform: translateY(24px) scale(0.95);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}

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

@keyframes dockIn {
from {
opacity: 0;
transform: translateY(32px) scale(0.92);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}

@keyframes pulse {
0%, 100% { opacity: 0.3; transform: scaleY(1); }
50% { opacity: 1; transform: scaleY(1.1); }
}

@keyframes textShimmer {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}

@keyframes widgetsReveal {
from {
opacity: 0;
transform: translateY(16px) scale(0.97);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}

@keyframes checkPop {
0% { transform: scale(1); }
40% { transform: scale(1.3); }
100% { transform: scale(1); }
}

@keyframes taskSlideIn {
from {
opacity: 0;
transform: translateX(-8px);
}
to {
opacity: 1;
transform: translateX(0);
}
}

/* Ripple Effect */
.ripple {
position: relative;
overflow: hidden;
}

.ripple-wave {
position: absolute;
border-radius: 50%;
background: var(--accent-soft);
transform: scale(0);
animation: rippleOut 0.6s ease-out forwards;
pointer-events: none;
z-index: 0;
}

@keyframes rippleOut {
to {
transform: scale(4);
opacity: 0;
}
}

/* Tilt hover */
.tilt-hover {
transition: transform 0.15s ease-out;
will-change: transform;
}

/* ========================================
RESPONSIVE
======================================== */
@media (max-width: 680px) {
.widgets-container {
grid-template-columns: 1fr;
gap: 12px;
}
}

@media (max-width: 480px) {
.time-section {
display: none;
}
.branding {
margin-top: 0;
margin-bottom: 24px;
}
.brand-name {
font-size: 32px;
letter-spacing: 4px;
font-weight: 900;
}
.main-container {
padding: 30px 16px 100px;
justify-content: center;
}
.search-container {
width: 100%;
max-width: 100%;
margin-bottom: 30px;
}
.search-bar {
padding: 16px 18px 16px 46px;
font-size: 15px;
border-radius: 16px;
box-shadow: var(--float-shadow);
}
.search-icon {
left: 18px;
}
.search-hint {
display: none;
}
.dock {
gap: 4px;
padding: 6px 10px;
border-radius: 14px;
}
.dock-item {
padding: 4px;
}
.dock-icon {
width: 28px;
height: 28px;
border-radius: 7px;
}
.dock-icon-svg {
width: 28px;
height: 28px;
}
.footer {
bottom: 52px;
font-size: 10px;
}
.vasudev-bg-gradient::before {
width: 350px;
height: 350px;
}
.vasudev-bg-gradient::after {
width: 300px;
height: 300px;
}
.github-badge {
top: 14px;
left: 14px;
bottom: auto;
padding: 4px 8px 4px 6px;
border-radius: 8px;
gap: 5px;
opacity: 0.4;
}
.github-badge-icon {
width: 12px;
height: 12px;
}
.github-badge-text {
font-size: 8px;
letter-spacing: 0.2px;
}
}

/* ========================================
SETTINGS MODAL - Center Popup Card Style
Category-based with sidebar
======================================== */
.settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.settings-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.settings-modal {
  width: 800px;
  max-width: 95vw;
  max-height: 85vh;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  box-shadow: 
    0 50px 120px rgba(0, 0, 0, 0.25),
    0 25px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] .settings-modal {
  background: var(--bg);
  box-shadow: 
    0 50px 120px rgba(0, 0, 0, 0.4),
    0 25px 60px rgba(0, 0, 0, 0.25);
}

.settings-overlay.visible .settings-modal {
  transform: scale(1) translateY(0);
}

/* ========================================
SETTINGS MAIN CONTENT & SIDEBAR
======================================== */
.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: transparent;
  border-bottom: none;
  flex-shrink: 0;
}

.settings-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.settings-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--input-bg);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.settings-close:hover {
  background: var(--accent-soft);
  color: var(--accent);
  transform: rotate(90deg);
}

.settings-close svg {
  width: 16px;
  height: 16px;
}

/* Main Content Area */
.settings-main {
  display: flex;
  height: calc(85vh - 66px);
  max-height: calc(85vh - 66px);
  background: transparent;
}

/* Left Sidebar */
.settings-sidebar {
  width: 170px;
  min-width: 170px;
  padding: 16px 12px;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.settings-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.settings-tab:hover {
  background: var(--input-bg);
  color: var(--text);
}

.settings-tab.active {
  background: var(--input-bg);
  color: var(--text);
}

.settings-tab.active .tab-icon {
  stroke: var(--text);
}

.settings-tab .tab-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.settings-tab .tab-label {
  white-space: nowrap;
}

/* Right Content */
.settings-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--text-secondary) transparent;
  border-radius: 0 20px 20px 0;
  background: var(--input-bg);
}

.settings-category {
  display: none;
  padding: 0 20px;
  animation: fadeIn 0.2s ease;
}

.settings-category.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.settings-body::-webkit-scrollbar {
width: 4px;
}

.settings-body::-webkit-scrollbar-thumb {
background: var(--text-secondary);
border-radius: 4px;
opacity: 0.3;
}

.settings-section {
  padding: 16px 20px;
  border-bottom: none;
}

.settings-section:last-child {
  border-bottom: none;
}

.settings-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.settings-label {
display: block;
font-size: 12px;
font-weight: 500;
color: var(--text-secondary);
margin-bottom: 6px;
}

.settings-row {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
}

.settings-row:last-child {
margin-bottom: 0;
}

.settings-input {
width: 100%;
padding: 10px 14px;
font-size: 13px;
font-family: inherit;
border: 1px solid var(--card-border);
border-radius: 10px;
background: var(--input-bg);
color: var(--text);
outline: none;
}

.settings-input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 2px var(--accent-soft);
}

.settings-input-sm {
flex: 1;
margin-right: 8px;
}

.settings-toggle {
position: relative;
display: inline-block;
width: 42px;
height: 24px;
}

.settings-toggle input {
opacity: 0;
width: 0;
height: 0;
}

.toggle-slider {
position: absolute;
cursor: pointer;
inset: 0;
background: rgba(0, 0, 0, 0.15);
border-radius: 24px;
transition: background 0.2s ease;
}

[data-theme="dark"] .toggle-slider {
background: rgba(255, 255, 255, 0.15);
}

.toggle-slider::before {
position: absolute;
content: "";
height: 20px;
width: 20px;
left: 2px;
bottom: 2px;
background: white;
border-radius: 50%;
transition: transform 0.2s ease;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.settings-toggle input:checked + .toggle-slider {
background: var(--accent);
}

.settings-toggle input:checked + .toggle-slider::before {
transform: translateX(18px);
}

.settings-color-row {
display: flex;
gap: 8px;
flex-wrap: wrap;
align-items: center;
}

.color-swatch {
width: 28px;
height: 28px;
border-radius: 50%;
cursor: pointer;
border: 2px solid transparent;
transition: transform 0.15s ease, border-color 0.15s ease;
}

.color-swatch.active {
border-color: var(--text);
transform: scale(1.15);
}

.color-custom {
width: 28px;
height: 28px;
padding: 0;
border: none;
border-radius: 50%;
cursor: pointer;
overflow: hidden;
}

.color-custom::-webkit-color-swatch-wrapper {
padding: 0;
}

.color-custom::-webkit-color-swatch {
border: none;
}

.settings-preset-row {
display: flex;
gap: 6px;
flex-wrap: wrap;
}

.preset-btn {
padding: 6px 12px;
font-size: 11px;
font-weight: 500;
border-radius: 8px;
border: 1px solid var(--card-border);
background: var(--input-bg);
color: var(--text-secondary);
cursor: pointer;
}

.preset-btn.active {
background: var(--accent);
color: white;
border-color: var(--accent);
}

.settings-select {
  display: none;
}

.custom-dropdown {
  position: relative;
  width: 100%;
}

.dropdown-selected {
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--input-bg);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dropdown-selected::after {
  content: '';
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23808080' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.dropdown-selected:hover {
  border-color: var(--accent);
}

.dropdown-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 100;
  overflow: hidden;
}

[data-theme="light"] .dropdown-options {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
}

.custom-dropdown.open .dropdown-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-option {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}

.dropdown-option:hover {
  background: var(--accent-soft);
}

.dropdown-option.selected {
  background: var(--accent);
  color: #fff;
}

.settings-btn-row {
display: flex;
gap: 8px;
}

.settings-btn {
flex: 1;
padding: 10px 16px;
font-size: 12px;
font-weight: 500;
border-radius: 10px;
border: 1px solid var(--card-border);
background: var(--input-bg);
color: var(--text);
cursor: pointer;
}

.settings-btn-sm {
padding: 8px 16px;
height: auto;
border-radius: 8px;
border: 1px solid var(--card-border);
background: rgba(255, 59, 48, 0.15);
color: #FF3B30;
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
}
.settings-btn-sm:hover {
background: rgba(255, 59, 48, 0.25);
}

.settings-btn-danger {
background: rgba(255, 59, 48, 0.1);
color: #FF3B30;
border-color: rgba(255, 59, 48, 0.2);
}

.quicklink-inputs {
display: flex;
gap: 6px;
margin-bottom: 8px;
}

.ql-list {
list-style: none;
max-height: 80px;
overflow-y: auto;
}

.ql-list li {
display: flex;
justify-content: space-between;
padding: 6px 0;
font-size: 12px;
color: var(--text);
}

.ql-list li button {
background: none;
border: none;
color: #FF3B30;
cursor: pointer;
font-size: 12px;
}

.settings-hint {
font-size: 11px;
color: var(--text-secondary);
margin-bottom: 6px;
}

.shortcuts-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.45);
backdrop-filter: blur(8px);
z-index: 3001;
display: none;
align-items: center;
justify-content: center;
}

.shortcuts-overlay.visible {
display: flex;
}

.shortcuts-modal {
width: 420px;
max-width: 90vw;
background: var(--card-bg);
backdrop-filter: blur(40px);
border-radius: 20px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 40px 100px rgba(0, 0, 0, 0.15), inset 0 2px 6px rgba(255, 255, 255, 0.4), inset 0 -2px 6px rgba(0, 0, 0, 0.06);
border: 1px solid var(--card-border);
overflow: hidden;
}

.shortcuts-body {
padding: 20px 24px;
}

.shortcuts-grid {
display: grid;
grid-template-columns: auto 1fr;
gap: 10px 16px;
align-items: center;
}

.shortcuts-grid kbd {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 28px;
padding: 4px 8px;
font-family: inherit;
font-size: 12px;
font-weight: 600;
background: var(--input-bg);
border: 1px solid var(--card-border);
border-radius: 6px;
color: var(--text);
}

.shortcuts-grid-lg {
font-size: 13px;
}

.quotes-widget {
position: fixed;
top: 100px;
left: 24px;
width: 240px;
padding: 16px;
background: var(--card-bg);
backdrop-filter: blur(16px);
border-radius: 16px;
border: 1px solid var(--card-border);
box-shadow: var(--shadow);
display: none;
z-index: 50;
}

.quotes-widget.visible {
display: block;
}

.quote-text {
font-size: 14px;
line-height: 1.5;
font-style: italic;
color: var(--text);
margin-bottom: 8px;
}

.quote-text::before {
content: '"';
color: var(--accent);
font-size: 20px;
}

.quote-author {
font-size: 12px;
color: var(--text-secondary);
display: block;
text-align: right;
}

.weather-widget {
position: fixed;
top: 100px;
right: 24px;
display: none;
align-items: center;
gap: 12px;
padding: 14px 18px;
background: var(--card-bg);
backdrop-filter: blur(16px);
border-radius: 16px;
border: 1px solid var(--card-border);
box-shadow: var(--shadow);
z-index: 50;
}

.weather-widget.visible {
display: flex;
}

.weather-icon {
width: 40px;
height: 40px;
font-size: 28px;
}

.weather-info {
display: flex;
flex-direction: column;
}

.weather-temp {
font-size: 20px;
font-weight: 600;
color: var(--text);
}

.weather-desc {
font-size: 11px;
color: var(--text-secondary);
text-transform: capitalize;
}

.weather-city {
font-size: 10px;
color: var(--text-secondary);
opacity: 0.7;
}

.pomodoro-widget {
position: fixed;
bottom: 100px;
left: 24px;
padding: 14px 18px;
background: var(--card-bg);
backdrop-filter: blur(16px);
border-radius: 16px;
border: 1px solid var(--card-border);
box-shadow: var(--shadow);
display: none;
flex-direction: column;
align-items: center;
z-index: 50;
}

.pomodoro-widget.visible {
display: flex;
}

.pomo-display {
font-size: 32px;
font-weight: 200;
font-family: 'JetBrains Mono', monospace;
letter-spacing: 2px;
color: var(--text);
line-height: 1;
}

.pomo-label {
font-size: 10px;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--accent);
margin: 4px 0 8px;
}

.pomo-controls {
display: flex;
gap: 8px;
}

.pomo-btn {
width: 36px;
height: 36px;
border-radius: 50%;
border: 1px solid var(--card-border);
background: var(--input-bg);
color: var(--text);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
}

.pomo-btn:hover {
background: var(--accent-soft);
}

.habit-widget {
position: fixed;
bottom: 100px;
right: 24px;
width: 200px;
padding: 14px;
background: var(--card-bg);
backdrop-filter: blur(16px);
border-radius: 16px;
border: 1px solid var(--card-border);
box-shadow: var(--shadow);
display: none;
z-index: 50;
}

.habit-widget.visible {
display: block;
}

.habit-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}

.habit-title {
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-secondary);
}

.habit-add-btn {
width: 24px;
height: 24px;
border-radius: 50%;
border: 1px solid var(--card-border);
background: var(--input-bg);
color: var(--text);
cursor: pointer;
font-size: 14px;
line-height: 1;
}

.habit-list {
list-style: none;
}

.habit-list li {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 0;
font-size: 12px;
}

.habit-checkbox {
width: 18px;
height: 18px;
border-radius: 4px;
border: 2px solid var(--text-secondary);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
}

.habit-checkbox.checked {
background: var(--accent);
border-color: var(--accent);
}

.habit-checkbox.checked::after {
content: '';
width: 6px;
height: 6px;
background: white;
border-radius: 2px;
}

.quicklinks-widget {
position: fixed;
top: 50%;
left: 24px;
transform: translateY(-50%);
width: 180px;
padding: 14px;
background: var(--card-bg);
backdrop-filter: blur(16px);
border-radius: 16px;
border: 1px solid var(--card-border);
box-shadow: var(--shadow);
display: none;
z-index: 50;
}

.quicklinks-widget.visible {
display: block;
}

.quicklinks-header {
margin-bottom: 10px;
}

.quicklinks-title {
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-secondary);
}

.quicklinks-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 8px;
}

.quicklinks-grid a {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
padding: 10px 6px;
background: var(--input-bg);
border-radius: 10px;
text-decoration: none;
color: var(--text);
font-size: 11px;
text-align: center;
}

.quicklinks-grid img {
width: 24px;
height: 24px;
border-radius: 6px;
}

.ambient-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 50;
  min-width: 200px;
  display: none;
  overflow: hidden;
}

[data-theme="light"] .ambient-widget {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.ambient-widget.visible {
  display: block;
}

.ambient-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .ambient-player {
  border-color: rgba(0, 0, 0, 0.1);
}

.ambient-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
  flex-shrink: 0;
}

.ambient-play-btn:hover {
  transform: scale(1.05);
}

.ambient-play-btn svg {
  width: 16px;
  height: 16px;
}

.ambient-play-btn .pause-icon {
  display: none;
}

.ambient-play-btn.playing .play-icon {
  display: none;
}

.ambient-play-btn.playing .pause-icon {
  display: block;
}

.ambient-info {
  flex: 1;
  min-width: 0;
}

.ambient-sound-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ambient-progress-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

[data-theme="light"] .ambient-progress-bar {
  background: rgba(0, 0, 0, 0.1);
}

.ambient-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s;
}

.ambient-sound-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.ambient-sound-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ambient-sound-btn svg {
  width: 14px;
  height: 14px;
}

.ambient-sound-menu {
  padding: 8px;
  display: none;
}

.ambient-sound-menu.open {
  display: block;
}

.sound-option {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.sound-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sound-option.active {
  background: var(--accent);
  color: #fff;
}

.ambient-volume-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .ambient-volume-row {
  border-color: rgba(0, 0, 0, 0.1);
}

.volume-icon {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.ambient-volume {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  cursor: pointer;
}

[data-theme="light"] .ambient-volume {
  background: rgba(0, 0, 0, 0.15);
}

.ambient-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ambient-volume::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}

.volume-percent {
  font-size: 11px;
  color: var(--text-secondary);
  min-width: 32px;
  text-align: right;
}

.analytics-display {
display: flex;
gap: 24px;
margin-top: 10px;
}

.analytics-stat {
display: flex;
flex-direction: column;
align-items: center;
}

.analytics-num {
font-size: 20px;
font-weight: 600;
color: var(--accent);
}

.analytics-label {
font-size: 10px;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
}

.wallpaper-layer {
position: fixed;
inset: 0;
z-index: -5;
background-size: cover;
background-position: center;
opacity: 0;
transition: opacity 0.5s ease;
}

.wallpaper-layer.visible {
opacity: 1;
}

.wallpaper-layer.dim::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.wallpaper-upload-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.wallpaper-upload-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.wallpaper-upload-btn:hover {
  opacity: 0.85;
}

.wallpaper-upload-btn:active {
  transform: scale(0.97);
}

.wallpaper-clear-btn {
  padding: 8px 12px;
  background: var(--card-border);
  color: var(--text);
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.wallpaper-clear-btn:hover {
  background: var(--danger);
  color: #fff;
}

/* ========================================
FOCUS MODE - Search Only (Smooth Transitions)
Press 'F' key
======================================== */
body.focus-mode #vasudevDock,
body.focus-mode #vasudevFooter,
body.focus-mode #bottomControls,
body.focus-mode #githubBadge,
body.focus-mode #focusOverlay,
body.focus-mode .branding,
body.focus-mode .time-section,
body.focus-mode .widgets-container,
body.focus-mode .ntp-bottom,
body.focus-mode [data-ntpid="bottom"] {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.focus-mode .search-container,
body.focus-mode .search-wrapper {
  display: flex !important;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 99999 !important;
  animation: focusSearchIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes focusSearchIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

body.focus-mode .search-container,
body.focus-mode .search-wrapper {
  display: flex !important;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 99999 !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

@media (max-width: 480px) {
.quotes-widget, .weather-widget, .pomodoro-widget, .habit-widget, .quicklinks-widget, .ambient-widget {
position: static;
width: 100%;
margin-bottom: 12px;
display: none;
}
.quotes-widget.visible, .weather-widget.visible, .pomodoro-widget.visible, .habit-widget.visible, .quicklinks-widget.visible, .ambient-widget.visible {
display: flex;
}
}

[data-preset="midnight"] {
--grad-1: rgba(60, 40, 100, 0.25);
--grad-2: rgba(40, 60, 120, 0.2);
--grad-3: rgba(80, 40, 80, 0.15);
--grad-4: rgba(50, 50, 90, 0.12);
}

[data-preset="ocean"] {
--grad-1: rgba(0, 120, 180, 0.25);
--grad-2: rgba(0, 160, 140, 0.18);
--grad-3: rgba(40, 100, 180, 0.15);
--grad-4: rgba(0, 140, 160, 0.1);
}

[data-preset="sunset"] {
--grad-1: rgba(255, 100, 50, 0.25);
--grad-2: rgba(255, 60, 120, 0.18);
--grad-3: rgba(255, 140, 0, 0.15);
--grad-4: rgba(200, 50, 100, 0.1);
}

[data-preset="forest"] {
--grad-1: rgba(60, 140, 60, 0.25);
--grad-2: rgba(80, 160, 100, 0.18);
--grad-3: rgba(40, 120, 80, 0.15);
--grad-4: rgba(60, 100, 60, 0.12);
}

[data-preset="monochrome"] {
--grad-1: rgba(100, 100, 100, 0.15);
--grad-2: rgba(150, 150, 150, 0.1);
--grad-3: rgba(80, 80, 80, 0.08);
--grad-4: rgba(120, 120, 120, 0.06);
}

/* ========================================
RESPONSIVE - MOBILE SETTINGS
======================================== */
@media (max-width: 768px) {
  .settings-modal {
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
  
  .settings-main {
    flex-direction: column;
    height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);
    background: transparent;
  }
  
  .settings-sidebar {
    width: 100%;
    min-width: 100%;
    flex-direction: row;
    padding: 8px 12px;
    gap: 6px;
    background: transparent;
    border: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .settings-sidebar::-webkit-scrollbar {
    display: none;
  }
  
  .settings-tab {
    flex-direction: row;
    padding: 8px 14px;
    gap: 8px;
    min-width: fit-content;
    text-align: left;
  }
  
  .settings-tab .tab-label {
    font-size: 12px;
  }
  
  .settings-tab .tab-icon {
    width: 18px;
    height: 18px;
  }
  
  .settings-content {
    padding: 16px 20px;
    border-radius: 0 20px 20px 0;
    background: var(--input-bg);
  }
  
  .settings-category {
    padding: 0 20px;
  }
  
  .settings-section {
    padding: 16px 20px;
  }
  
  .settings-section-title {
    font-size: 12px;
  }
  
  .settings-color-row {
    gap: 6px;
  }
  
  .color-swatch {
    width: 24px;
    height: 24px;
  }
  
  .settings-preset-row {
    flex-wrap: wrap;
  }
  
  .preset-btn {
    padding: 5px 10px;
    font-size: 10px;
  }
  
  .settings-btn-row {
    flex-direction: column;
  }
  
  .settings-btn {
    width: 100%;
  }
  
  .quicklink-inputs {
    flex-wrap: wrap;
  }
  
  .settings-input-sm {
    min-width: 45%;
  }
  
  .analytics-display {
    gap: 16px;
  }
  
  .wallpaper-upload-row {
    flex-direction: column;
  }
}

/* ========================================
ACCESSIBILITY - Focus Visible States
======================================== */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

.icon-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

.dock-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 12px;
}

.search-bar:focus {
  outline: none;
  box-shadow: var(--float-shadow-hover);
}

.modal-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.color-swatch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.preset-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.task-checkbox:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ========================================
REDUCED MOTION
======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .vasudev-bg-gradient::before,
  .vasudev-bg-gradient::after,
  .vasudev-bg-gradient .blob3,
  .vasudev-bg-gradient .blob4 {
    animation: none !important;
    filter: blur(60px);
    opacity: 0.6;
  }

  .time {
    animation: none !important;
  }

  .brand-name {
    animation: none !important;
  }

  .greeting {
    animation: fadeUp 0.3s ease forwards !important;
  }

  .dock {
    animation: none !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  .github-badge {
    animation: none !important;
    opacity: 0.5 !important;
  }

  .widgets-container.visible {
    animation: none !important;
  }

  .pulse,
  .time-colon {
    animation: none !important;
    opacity: 0.6;
  }

  .textShimmer {
    animation: none !important;
  }
}

/* ========================================
CONTRAST FIXES
======================================== */
.search-hint {
  opacity: 0.7;
}

.github-badge {
  opacity: 0.5;
}

.github-badge:hover {
  opacity: 1;
}

.footer {
  opacity: 0.4;
}

.footer:hover {
  opacity: 0.8;
}

.omni-item-type {
  opacity: 0.7;
}

/* ========================================
TOUCH TARGETS - 44x44px minimum
======================================== */
.icon-btn {
  width: 44px;
  height: 44px;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.settings-toggle {
  width: 44px;
  height: 28px;
}

.toggle-slider::before {
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
}

.settings-toggle input:checked + .toggle-slider::before {
  transform: translateX(16px);
}

.cal-day {
  padding: 8px 0;
  font-size: 13px;
}

.color-swatch {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
}

.habit-add-btn {
  width: 32px;
  height: 32px;
}

.modal-close {
  width: 32px;
  height: 32px;
}

.clear-done-btn {
  padding: 4px 10px;
  min-height: 28px;
}

/* ========================================
CUSTOM CONFIRM MODAL (replaces prompt/alert)
======================================== */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: var(--modal-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.confirm-overlay.visible {
  display: flex;
}

.confirm-card {
  background: var(--modal-bg);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  width: 360px;
  max-width: 90vw;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  padding: 24px;
  animation: confirmIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes confirmIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.confirm-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.confirm-message {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.confirm-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  margin-bottom: 16px;
}

.confirm-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.confirm-btn {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.confirm-btn-cancel {
  background: var(--input-bg);
  color: var(--text-secondary);
}

.confirm-btn-cancel:hover {
  background: var(--card-border);
}

.confirm-btn-ok {
  background: var(--accent);
  color: #FFFFFF;
}

.confirm-btn-ok:hover {
  transform: scale(1.04);
}

/* ========================================
TOAST NOTIFICATIONS
======================================== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-width: 320px;
}

.toast.toast-out {
  animation: toastOut 0.25s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(20px); }
}

/* ========================================
SYNCED BOOKMARKS
======================================== */
.synced-bookmarks {
  margin-top: 20px;
}

.synced-bookmarks-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  opacity: 0.7;
}

.synced-bookmarks-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.synced-bookmark-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-sm);
  min-height: 44px;
}

.synced-bookmark-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.synced-bookmark-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}

.synced-bookmark-fallback {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  flex-shrink: 0;
}

.synced-bookmark-name {
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}