/* ===== CSS VARIABLES — DARK (default) ===== */
:root {
  --bg: #080c14;
  --bg2: #0d1321;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.08);
  --border-bright: rgba(255,255,255,0.15);
  --accent: #f97316;
  --accent2: #fb923c;
  --accent-glow: rgba(249,115,22,0.25);
  --text: #f1f5f9;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --success: #22c55e;
  --danger: #ef4444;
  --sidebar-bg: rgba(8,12,20,0.95);
  --auth-card-bg: rgba(13,19,33,0.9);
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
  --bg: #f8fafc;
  --bg2: #f1f5f9;
  --surface: rgba(0,0,0,0.04);
  --surface-hover: rgba(0,0,0,0.07);
  --border: rgba(0,0,0,0.08);
  --border-bright: rgba(0,0,0,0.15);
  --accent: #ea6c00;
  --accent2: #f97316;
  --accent-glow: rgba(249,115,22,0.2);
  --text: #0f172a;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --success: #16a34a;
  --danger: #dc2626;
  --sidebar-bg: rgba(255,255,255,0.98);
  --auth-card-bg: rgba(255,255,255,0.98);
}

/* ===== EVE THEME (warm yellow - eye comfort) ===== */
[data-theme="eve"] {
  --bg: #fdf6e3;
  --bg2: #faefd0;
  --surface: rgba(180,130,40,0.08);
  --surface-hover: rgba(180,130,40,0.14);
  --border: rgba(180,130,40,0.18);
  --border-bright: rgba(180,130,40,0.3);
  --accent: #b45309;
  --accent2: #d97706;
  --accent-glow: rgba(180,83,9,0.2);
  --text: #3b2a00;
  --text-muted: #92713a;
  --text-dim: #7a5c1e;
  --success: #15803d;
  --danger: #b91c1c;
  --sidebar-bg: rgba(250,239,208,0.98);
  --auth-card-bg: rgba(253,246,227,0.98);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== AUTH PAGE ===== */
.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  width: 500px; height: 500px;
  background: rgba(249,115,22,0.12);
  top: -150px; left: -100px;
}
.glow-2 {
  width: 400px; height: 400px;
  background: rgba(99,102,241,0.08);
  bottom: -100px; right: -50px;
}

.auth-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 20px;
  animation: fadeUp 0.5s ease both;
}

.auth-card {
  background: var(--auth-card-bg);
  border: 1px solid var(--border-bright);
  border-radius: 24px;
  padding: 44px 40px;
  backdrop-filter: blur(30px);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.brand-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--accent), #fbbf24);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
}

.brand-tag {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  margin-left: 2px;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: -8px;
}

.auth-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: -8px;
  margin-bottom: 8px;
}

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

.input-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.3px;
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  opacity: 0.5;
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px 12px 40px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}

.input-wrap input:focus {
  border-color: var(--accent);
  background: rgba(249,115,22,0.05);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-wrap input::placeholder {
  color: var(--text-muted);
}

.btn-signin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), #ea580c);
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 20px;
  color: white;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 24px var(--accent-glow);
  margin-top: 4px;
}

.btn-signin:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(249,115,22,0.4);
}

.btn-signin:active {
  transform: translateY(0);
}

.btn-arrow {
  font-size: 18px;
  transition: transform var(--transition);
}

.btn-signin:hover .btn-arrow {
  transform: translateX(4px);
}

.auth-msg {
  font-size: 13px;
  text-align: center;
  color: var(--danger);
  min-height: 18px;
}

/* ===== APP LAYOUT ===== */
.app {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 240px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
}

.logo-icon {
  font-size: 22px;
  background: linear-gradient(135deg, var(--accent), #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.logo-sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-bright) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--border-bright);
  border-radius: 4px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.2px;
}

.menu-item:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.menu-item.active {
  background: rgba(249,115,22,0.12);
  color: var(--accent2);
  border: 1px solid rgba(249,115,22,0.2);
}

.menu-icon {
  font-size: 16px;
}

.nav-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 4px;
}

.nav-section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding: 4px 14px 2px;
  font-weight: 600;
}

.ext-icon {
  margin-left: auto;
  font-size: 12px;
  opacity: 0.5;
  transition: var(--transition);
}

.menu-item:hover .ext-icon {
  opacity: 1;
  color: var(--accent2);
}

.menu-item.has-sub {
  justify-content: flex-start;
  gap: 10px;
}

.menu-item.has-sub span:nth-child(2) {
  flex: 1;
}

.chevron {
  font-size: 11px;
  color: var(--text-muted);
  transition: transform var(--transition);
  margin-left: auto;
}

.chevron.open {
  transform: rotate(90deg);
}

.sub-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding-left: 16px;
  margin-top: 2px;
}

.sub-menu.open {
  display: flex;
}

.sub-item {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  border-left: 2px solid transparent;
}

.sub-item:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.sub-item.active {
  color: var(--accent2);
  border-left-color: var(--accent);
  background: rgba(249,115,22,0.08);
}

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-dim);
  word-break: break-all;
  line-height: 1.4;
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.logout-btn:hover {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.3);
  color: var(--danger);
}

/* ===== MAIN CONTENT ===== */
.content {
  flex: 1;
  padding: 36px 40px;
  max-width: calc(100vw - 240px);
  overflow-x: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.page-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.sheet-count {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
}

.search-wrap {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.4;
  font-size: 14px;
  pointer-events: none;
}

#searchInput {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 11px 20px 11px 40px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  width: 280px;
  transition: var(--transition);
  outline: none;
}

#searchInput:focus {
  border-color: var(--accent);
  background: rgba(249,115,22,0.05);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

#searchInput::placeholder {
  color: var(--text-muted);
}

/* ===== SECTIONS ===== */
.section {
  margin-bottom: 48px;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.section-header h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.section-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== PINNED GRID ===== */
.pinned-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.pinned-card {
  background: linear-gradient(135deg, rgba(249,115,22,0.08), rgba(251,146,60,0.04));
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pinned-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.pinned-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249,115,22,0.4);
  box-shadow: 0 16px 40px rgba(249,115,22,0.15);
}

.pinned-card-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.pinned-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.pinned-open {
  font-size: 11px;
  color: var(--accent2);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.unpin-btn {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--danger);
  font-size: 11px;
  cursor: pointer;
  transition: var(--transition);
}

.unpin-btn:hover {
  background: rgba(239,68,68,0.2);
}

/* ===== SHEET LIST ===== */
.sheet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sheet-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition);
  cursor: pointer;
}

.sheet-item:hover {
  background: var(--surface-hover);
  border-color: var(--border-bright);
  transform: translateX(4px);
}

.sheet-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.sheet-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sheet-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.meta-item {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  white-space: nowrap;
}

.sheet-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.6;
}

.sheet-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.open-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.open-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.pin-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.pin-btn:hover {
  background: rgba(249,115,22,0.1);
  border-color: rgba(249,115,22,0.3);
  color: var(--accent);
}

/* ===== EMPTY STATES ===== */
.empty-state {
  background: var(--surface);
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ===== LOADING ===== */
.loading-skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-hover) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
  height: 52px;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 13px;
  color: var(--text);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  z-index: 9999;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.section {
  animation: fadeUp 0.4s ease both;
}
.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }

/* ===== THEME SWITCHER ===== */
.theme-switcher {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
}

.theme-btn {
  flex: 1;
  padding: 6px 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  letter-spacing: 0.3px;
  text-align: center;
}

.theme-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

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

/* Eve theme overrides for grid/glows */
[data-theme="eve"] .bg-grid {
  background-image:
    linear-gradient(rgba(180,130,40,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180,130,40,0.07) 1px, transparent 1px);
}
[data-theme="eve"] .glow-1 { background: rgba(180,83,9,0.1); }
[data-theme="eve"] .glow-2 { background: rgba(120,80,0,0.07); }

/* Light theme overrides for grid/glows */
[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
}
[data-theme="light"] .glow-1 { background: rgba(249,115,22,0.08); }
[data-theme="light"] .glow-2 { background: rgba(99,102,241,0.05); }

/* Light/Eve: fix pinned card gradient */
[data-theme="light"] .pinned-card,
[data-theme="eve"] .pinned-card {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* Toast theme fix */
[data-theme="light"] .toast,
[data-theme="eve"] .toast {
  background: var(--bg2);
  color: var(--text);
}

/* ===== SHEET TILES ===== */
.sheet-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.sheet-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
}

.sheet-tile:hover {
  background: var(--surface-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.tile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.tile-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.tile-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid;
  letter-spacing: 0.3px;
}

.tile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

/* Pinned card icon */
.pinned-card-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

/* Pinned grid bigger */
.pinned-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* ===== BIGGER TILES & CATEGORY BADGES ===== */

/* Pinned grid - bigger cards */
.pinned-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 20px !important;
}

.pinned-card {
  padding: 24px !important;
  min-height: 180px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  justify-content: space-between !important;
}

.pinned-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.pinned-sheet-icon {
  font-size: 28px;
  line-height: 1;
}

.pinned-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.pinned-card-name {
  font-family: var(--font-display) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: var(--text) !important;
  flex: 1 !important;
}

/* Sheet list - bigger rows */
.sheet-item {
  padding: 18px 22px !important;
  min-height: 72px !important;
  align-items: center !important;
}

.sheet-icon-wrap {
  font-size: 22px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-name {
  font-size: 14px !important;
  font-weight: 600 !important;
}

.sheet-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Category Badge */
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* Logo image fix */
.logo-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

[data-theme="light"] .logo-icon img {
  filter: none;
}

[data-theme="eve"] .logo-icon img {
  filter: brightness(0) saturate(100%) sepia(60%);
}

/* =========================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================= */

/* Hide mobile toggle button on desktop */
.mobile-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 20px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Sidebar Backdrop for mobile */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 999;
}

/* TABLET (Max-width: 1024px) */
@media (max-width: 1024px) {
  .summary-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns instead of 4 */
  }
  .chart-row {
    flex-direction: column; /* Stack charts vertically */
  }
  .chart-card {
    width: 100% !important; 
    min-width: unset !important;
  }
}

/* MOBILE (Max-width: 768px) */
@media (max-width: 768px) {
  /* Show Mobile Toggle */
  .mobile-toggle {
    display: block;
  }

  /* Off-canvas Sidebar */
  .sidebar {
    position: fixed;
    top: 0;
    left: -280px; /* Hide off-screen initially */
    height: 100%;
    z-index: 1000;
    transition: left 0.3s ease;
  }
  .sidebar.open {
    left: 0; /* Slide in */
  }
  .sidebar-backdrop.show {
    display: block; /* Show dark overlay */
  }

  /* Single Column Layouts */
  .summary-grid {
    grid-template-columns: 1fr !important; /* 1 column */
  }
  .dash-wrap {
    padding: 16px; /* Less padding on mobile */
  }

  /* Filters styling for mobile */
  .dash-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .filters-bar, .center-filter-wrap {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .filter-group, .center-search-wrap, .center-tags-wrap {
    width: 100%;
  }
}