/* ═══════════════════════════════════════════════════
    DASHBOARD — Rounded & Separated Redesign
    ═══════════════════════════════════════════════════ */

:root {
  /* Light Mode Variables */
  --dash-bg: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
  --dash-card-bg: #ffffff;
  --dash-card-border: rgba(46, 204, 113, 0.25);
  --dash-panel-bg: rgba(255, 255, 255, 0.7);
  --dash-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  --dash-glow: rgba(46, 204, 113, 0.15);
  --ws-bg: #f6faf8;
  --pill-orange-bg: #fef5e7;
  --pill-green-bg: #eef6f2;
  --pill-blue-bg: rgba(52, 152, 219, 0.1);
  --pill-border: rgba(0, 0, 0, 0.05);
  --lc-hero-text: #ffffff;
}

[data-theme="dark"] {
  /* Dark Mode Variables - Restoring Lana Green */
  --dash-bg: linear-gradient(135deg, #0d1a0d 0%, #1a2e1a 100%);
  --dash-card-bg: rgba(34, 51, 34, 0.85);
  --dash-card-border: rgba(46, 204, 113, 0.4);
  --dash-panel-bg: rgba(26, 46, 26, 0.8);
  --dash-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  --dash-glow: rgba(46, 204, 113, 0.25);
  --ws-bg: rgba(255, 255, 255, 0.05);
  --pill-orange-bg: rgba(230, 126, 34, 0.15);
  --pill-green-bg: rgba(46, 204, 113, 0.15);
  --pill-blue-bg: rgba(52, 152, 219, 0.15);
  --pill-border: rgba(255, 255, 255, 0.1);
  --lc-hero-text: #ffffff;
}

#dashboard-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dash-bg);
  z-index: 1000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  overflow: hidden;
}

/* Redundant theme selectors removed as we now use variables */
[data-theme="dark"] #dashboard-overlay {
  background: var(--dash-bg);
}

#dashboard-overlay.show {
  display: flex;
}

/* Three-column layout — Separated & Rounded */
.dash-layout {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 2rem;
  gap: 2rem;
  box-sizing: border-box;
}

/* ─── Sidebar — Floating Rounded Card ─── */
.dash-sidebar {
  width: 280px;
  min-width: 280px;
  height: calc(100vh - 4rem);
  border-left: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  position: sticky;
  top: 2rem;
  overflow: hidden;
  background: var(--dash-panel-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 40px;
  box-shadow: var(--dash-shadow), 0 0 0 1px var(--dash-glow);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .dash-sidebar {
  border-color: rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
  text-align: center;
  padding: 1.8rem 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-nav-scroll {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0 -0.25rem;
  padding: 0 0.25rem 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(45, 106, 79, 0.34) transparent;
  scrollbar-gutter: stable;
}

.sidebar-nav-scroll::before,
.sidebar-nav-scroll::after {
  content: "";
  position: sticky;
  right: 0;
  left: 0;
  display: block;
  height: 16px;
  pointer-events: none;
  z-index: 2;
}

.sidebar-nav-scroll::before {
  top: 0;
  margin-bottom: -16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0));
}

.sidebar-nav-scroll::after {
  bottom: 0;
  margin-top: -16px;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0));
}

[data-theme="dark"] .sidebar-nav-scroll::before {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0));
}

[data-theme="dark"] .sidebar-nav-scroll::after {
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0));
}

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

.sidebar-nav-scroll::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(45, 106, 79, 0.04), rgba(45, 106, 79, 0.1));
  border-radius: 999px;
}

.sidebar-nav-scroll::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(45, 106, 79, 0.64), rgba(82, 183, 136, 0.78));
  background-clip: padding-box;
}

.sidebar-nav-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(38, 70, 83, 0.82), rgba(45, 106, 79, 0.94));
  background-clip: padding-box;
}

.nav-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Section labels like "MENU" and "GENERAL" in Donezo reference */
.nav-section-label {
  font-size: 0.7rem;
  font-weight: 900;
  color: #aaa;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 0.8rem 0.4rem;
  margin-top: 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 0.4rem;
  position: relative;
  border: none;
  background: transparent;
}

.nav-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lana-blue);
  opacity: 0;
  transform: translateX(100%);
  transition: var(--transition);
  z-index: -1;
}

/* Green left-bar indicator — Donezo style */
.nav-item::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: var(--lana-blue);
  opacity: 0;
  transition: var(--transition);
}

.nav-item:hover {
  background: rgba(46, 204, 113, 0.08);
  color: var(--lana-dark);
  transform: translateX(-4px);
}

.nav-item.active {
  background: #fff;
  color: var(--lana-dark);
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.nav-item.active::after {
  opacity: 1;
}

.nav-item.active::before {
  opacity: 0;
}

.nav-item .nav-icon {
  display: flex;
}

.nav-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--danger);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 900;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.nav-badge.hidden {
  display: none;
}

.sidebar-profile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 24px;
  transition: var(--transition);
  margin-top: auto;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(241, 248, 244, 0.96)),
    rgba(246, 250, 248, 0.85);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.sidebar-profile:hover {
  transform: none;
}

.sidebar-profile-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  cursor: pointer;
}

.sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lana-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 900;
  flex-shrink: 0;
}

.sidebar-profile-info {
  flex: 1;
  overflow: hidden;
}

.sidebar-profile-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-profile-type {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ─── Profile Logout Button (Always Visible) ─── */
.profile-logout-btn {
  position: static;
  width: 100%;
  min-height: 46px;
  margin-top: 0.15rem;
  border: none;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95));
  backdrop-filter: blur(10px);
  color: white;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  opacity: 1;
  transform: none;
  transition: all 0.25s ease;
  border-radius: 16px;
  box-shadow: 0 12px 20px rgba(220, 38, 38, 0.18);
}

.profile-logout-btn:hover {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.98), rgba(185, 28, 28, 0.98));
  box-shadow: 0 14px 24px rgba(220, 38, 38, 0.24);
}

/* ─── Mobile Elements Hidden on Desktop ─── */
.mobile-nav {
  display: none;
}

.mobile-more-grid {
  display: none;
}

.dash-main {
  flex: 1;
  min-width: 0;
  height: calc(100vh - 4rem);
  overflow-y: auto;
  border-left: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: var(--dash-card-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  animation: slideUpFade 0.4s cubic-bezier(0, 0, 0.2, 1) both;
  border-radius: 42px;
  box-shadow: var(--dash-shadow), 0 0 0 1px var(--dash-glow);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .dash-main {
  border-color: rgba(255, 255, 255, 0.1);
}

.dash-main::-webkit-scrollbar,
.dash-widgets::-webkit-scrollbar {
  display: none;
  width: 0;
}

.dash-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.9rem 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border-radius: 28px 28px 0 0;
}

[data-theme="dark"] .dash-header {
  background: rgba(34, 51, 34, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.dash-header h2 {
  font-size: 1.3rem;
  color: var(--text-primary);
  font-weight: 900;
  margin: 0;
}

.dash-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dash-header-actions.is-empty {
  display: none;
}

.dash-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border: 1px solid rgba(45, 106, 79, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 244, 0.96));
  color: var(--text-primary);
  font-family: 'Cairo', sans-serif;
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: all 0.25s ease;
}

.dash-header-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 106, 79, 0.28);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.dash-header-btn-back {
  background: linear-gradient(135deg, rgba(233, 248, 239, 0.95), rgba(255, 255, 255, 0.98));
}

.dash-header-btn-icon {
  font-size: 1rem;
  line-height: 1;
}

.dash-content {
  padding: 0;
}

/* ─── Right Sidebar (Trending) — Floating Rounded Card ─── */
.dash-widgets {
  width: 320px;
  min-width: 320px;
  height: calc(100vh - 4rem);
  overflow-y: auto;
  padding: 1.5rem;
  position: sticky;
  top: 2rem;
  background: var(--dash-panel-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 40px;
  box-shadow: var(--dash-shadow), 0 0 0 1px var(--dash-glow);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .dash-widgets {
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .dash-widgets {
  background: var(--card-bg);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.widget-card {
  background: #ffffff;
  border-radius: 32px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(46, 204, 113, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease;
}

.widget-card:hover {
  transform: translateY(-3px);
}

[data-theme="dark"] .widget-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.05);
}

/* ─── Sidebar Profile Dark Mode ─── */
[data-theme="dark"] .sidebar-profile {
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.94)),
    rgba(30, 41, 59, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ─── Quick Stats Classes ─── */
.ws-stat-card {
  border-radius: 14px;
  padding: 0.75rem;
  text-align: center;
}

.ws-stat-value {
  font-size: 1.5rem;
  font-weight: 900;
}

.ws-stat-label {
  font-size: 0.7rem;
  color: #666;
  font-weight: 700;
}

[data-theme="dark"] .ws-stat-label {
  color: #a3a3a3;
}

.ws-posts-bg {
  background: #e8f8ef;
}

.ws-posts-text {
  color: var(--lana-dark, #2d6a4f);
}

[data-theme="dark"] .ws-posts-bg {
  background: rgba(45, 106, 79, 0.2);
}

[data-theme="dark"] .ws-posts-text {
  color: #86efac;
}

.ws-tasks-bg {
  background: #fff3e0;
}

.ws-tasks-text {
  color: #e67e22;
}

[data-theme="dark"] .ws-tasks-bg {
  background: rgba(230, 126, 34, 0.15);
}

[data-theme="dark"] .ws-tasks-text {
  color: #fdba74;
}

.ws-notifs-bg {
  background: #f3e8ff;
}

.ws-notifs-text {
  color: #7c3aed;
}

[data-theme="dark"] .ws-notifs-bg {
  background: rgba(124, 58, 237, 0.15);
}

[data-theme="dark"] .ws-notifs-text {
  color: #d8b4fe;
}

.ws-reports-bg {
  background: #e0f2fe;
}

.ws-reports-text {
  color: #0284c7;
}

[data-theme="dark"] .ws-reports-bg {
  background: rgba(2, 132, 199, 0.15);
}

[data-theme="dark"] .ws-reports-text {
  color: #7dd3fc;
}

/* ─── Daily Tip Classes ─── */
.widget-tip-card {
  background: linear-gradient(135deg, #e8f8ef 0%, #ccfbf1 100%);
  border: none;
}

.widget-tip-title {
  font-weight: 900;
  font-size: 0.9rem;
  color: #2d6a4f;
}

.widget-tip-text {
  font-size: 0.83rem;
  color: #444;
  line-height: 1.6;
  font-weight: 600;
  margin: 0;
}

[data-theme="dark"] .widget-tip-card {
  background: linear-gradient(135deg, rgba(45, 106, 79, 0.3) 0%, rgba(20, 184, 166, 0.1) 100%);
  border: 1px solid rgba(20, 184, 166, 0.2);
}

[data-theme="dark"] .widget-tip-title {
  color: #86efac;
}

[data-theme="dark"] .widget-tip-text {
  color: #cbd5e1;
}

/* ─── Quick Links Classes ─── */
.widget-quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ws-quick-link {
  background: #f6faf8;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  font-family: 'Cairo', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ws-quick-link:hover {
  background: #e8f8ef;
  border-color: #bee3c5;
}

[data-theme="dark"] .ws-quick-link {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

[data-theme="dark"] .ws-quick-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.widget-card h3 {
  margin-bottom: 0.8rem;
  color: var(--text-primary);
  font-weight: 900;
}

.trending-item {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

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

.trending-item:hover {
  color: var(--lana-dark);
}

.trending-tag {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.trending-count {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ═══════════════════════════════════════════════════
   BENTO DASHBOARD — Crextio-Inspired
   ═══════════════════════════════════════════════════ */

/* ─── Welcome Section ─── */
.bento-welcome {
  padding: 2.5rem 2.5rem 0.5rem;
}

.bento-welcome h1 {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
  line-height: 1.2;
  letter-spacing: -1.5px;
}

.bento-welcome p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 600;
  opacity: 0.8;
}

/* ─── Pill Stats Row ─── */
.bento-pills {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2rem;
  flex-wrap: wrap;
}

.bento-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem 0.4rem 0.4rem;
  border-radius: 50px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-body);
  transition: var(--transition);
  cursor: default;
}

/* Learning Center Glass & Animations */
.glass-panel {
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
}

[data-theme="dark"] .glass-panel {
  background: rgba(34, 51, 34, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.float-anim {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.pulse-glow {
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(46, 204, 113, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
  }
}

.lc-hero-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #27ae60 0%, #1b4332 100%);
  color: #ffffff !important;
  padding: 3rem;
  border-radius: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  box-shadow: 0 25px 60px rgba(27, 67, 50, 0.2);
  border: 4px solid rgba(255, 255, 255, 0.15);
}

/* Shadow Game Opts */
.shadow-opt {
  background: var(--dash-card-bg) !important;
  border: 3px solid var(--border);
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  aspect-ratio: 1;
}

.shadow-opt:hover {
  transform: translateY(-8px);
  border-color: var(--lana-medium);
  box-shadow: 0 15px 30px rgba(46, 204, 113, 0.15);
}

.shadow-opt img,
.shadow-opt .emoji-shadow {
  filter: brightness(0);
  opacity: 0.8;
  font-size: 5rem;
  transition: all 0.3s;
}

.shadow-opt.correct:hover {
  border-color: #2ecc71;
}

.lc-search-wrap {
  position: relative;
  margin-bottom: 2rem;
  max-width: 600px;
}

.lc-search-input {
  width: 100%;
  padding: 1.2rem 5.5rem 1.2rem 1.5rem;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: var(--dash-card-bg);
  color: var(--text-primary);
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

.lc-search-input:focus {
  outline: none;
  border-color: var(--lana-medium);
  box-shadow: 0 15px 30px rgba(46, 204, 113, 0.1);
  transform: translateY(-2px);
}

.lc-search-icon {
  position: absolute;
  left: 1.5rem;
  top: 40%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  opacity: 0.6;
}

.lc-section-title {
  font-size: 1.5rem;
  font-weight: 950;
  color: var(--text-primary);
  margin: 2.5rem 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.lc-section-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.theme-aware-pill {
  background: var(--pill-green-bg);
  color: var(--lana-medium);
  border: 1px solid var(--pill-border);
  font-weight: 900;
}

[data-theme="dark"] .theme-aware-pill {
  background: rgba(46, 204, 113, 0.2);
  color: #58d68d;
}

.lc-card {
  background: var(--dash-card-bg);
  border: 1.5px solid var(--border);
  border-radius: 28px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lc-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--lana-medium);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.show-more-card {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%) !important;
  color: white !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.show-more-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(46, 204, 113, 0.3);
}

.show-more-card h3 {
  color: #ffffff !important;
}

[data-theme="dark"] .show-more-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bento-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--card-shadow);
}

.bento-pill-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 50px;
  background: var(--lana-blue);
  color: #fff;
  font-weight: 900;
  font-size: 0.8rem;
  padding: 0 8px;
}

.bento-pill-value.accent-orange {
  background: #e67e22;
}

.bento-pill-value.accent-purple {
  background: #9b59b6;
}

.bento-pill-value.accent-blue {
  background: #3498db;
}

.bento-pill-value.accent-red {
  background: #e74c3c;
}

.bento-pill-value.accent-teal {
  background: #1abc9c;
}

/* ─── Big Number Stats ─── */
.bento-big-stats {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  padding: 0 2rem 1.2rem;
  flex-wrap: wrap;
}

.bento-big-stat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.bento-big-stat .big-icon {
  font-size: 1.3rem;
  color: var(--text-muted);
}

.bento-big-stat .big-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -1px;
}

.bento-big-stat .big-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ─── Bento Grid ─── */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: auto;
  gap: 1rem;
  padding: 0 2rem 2rem;
}

.bento-card {
  background: var(--dash-card-bg);
  border: 1px solid var(--dash-card-border);
  border-radius: 36px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .bento-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.05);
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-card.span-row-2 {
  grid-row: span 2;
}

.bento-card.span-row-3 {
  grid-row: span 3;
}

/* ─── Profile Bento Card ─── */
.bento-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
  min-height: 240px;
}

[data-theme="dark"] .bento-profile {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.bento-profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lana-blue), var(--lana-medium));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 1rem;
  border: 4px solid var(--card-bg);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.35);
}

.bento-profile-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.bento-profile-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.bento-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  background: var(--lana-blue);
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* ─── Progress Bento Card ─── */
.bento-progress {
  display: flex;
  flex-direction: column;
}

.bento-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.bento-card-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-primary);
}

.bento-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--lana-lightest);
  border: 2px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.bento-card-icon:hover {
  background: var(--lana-blue);
  color: #fff;
}

.bento-progress-big {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.bento-progress-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Bar chart visual */
.bento-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  margin-top: auto;
}

.bento-bar {
  flex: 1;
  border-radius: 6px 6px 4px 4px;
  background: var(--lana-lightest);
  transition: var(--transition);
  min-height: 8px;
  position: relative;
}

.bento-bar.active {
  background: var(--lana-blue);
  box-shadow: 0 0 10px rgba(39, 174, 96, 0.3);
}

.bento-bar:hover {
  filter: brightness(1.1);
  transform: scaleY(1.05);
  transform-origin: bottom;
}

.bento-bar-label {
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 700;
}

/* ─── Circular Progress (like Time Tracker) ─── */
.bento-circle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bento-circle {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0.5rem 0;
}

.bento-circle svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.bento-circle-bg {
  fill: none;
  stroke: var(--lana-lightest);
  stroke-width: 10;
}

.bento-circle-fill {
  fill: none;
  stroke: var(--lana-blue);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-circle-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bento-circle-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.bento-circle-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ─── Dark Accent Card (like Onboarding) ─── */
.bento-dark {
  background: #1a2332;
  border-color: #2a3a4a;
  color: #e0e8f0;
  min-height: 250px;
}

[data-theme="dark"] .bento-dark {
  background: #0d1520;
  border-color: #1a2a3a;
}

.bento-dark .bento-card-title {
  color: #fff;
}

.bento-dark .bento-card-icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.bento-dark-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.bento-dark-fraction {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
}

.bento-task-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.bento-task-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bento-task-dot.green {
  background: var(--lana-medium);
}

.bento-task-dot.blue {
  background: #3498db;
}

.bento-task-dot.purple {
  background: #9b59b6;
}

.bento-task-dot.orange {
  background: #e67e22;
}

.bento-task-dot.red {
  background: #e74c3c;
}

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

.bento-task-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #dce4ec;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bento-task-time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
}

.bento-task-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: transparent;
  flex-shrink: 0;
  transition: var(--transition);
}

.bento-task-check.done {
  background: var(--lana-medium);
  border-color: var(--lana-medium);
  color: #fff;
}

/* ─── Quick Actions (Compact Grid) ─── */
.bento-actions-title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-primary);
  padding: 0 2rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bento-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.8rem;
  padding: 0 2rem 2rem;
}

.bento-action {
  background: var(--dash-card-bg);
  border: 1px solid var(--dash-card-border);
  border-radius: 28px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .bento-action {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.bento-action:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--card-shadow);
  border-color: var(--lana-medium);
}

.bento-action:hover .bento-action-icon {
  transform: scale(1.15) rotate(5deg);
}

.bento-action-icon {
  font-size: 2rem;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  line-height: 1;
}

.bento-action-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Action accent borders and soft fills */
.bento-action[data-accent="blue"] {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}

.bento-action[data-accent="purple"] {
  background: #faf5ff;
  border-color: #e9d5ff;
  color: #7e22ce;
}

.bento-action[data-accent="orange"] {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.bento-action[data-accent="red"] {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.bento-action[data-accent="teal"] {
  background: #f0fdfa;
  border-color: #ccfbf1;
  color: #0f766e;
}

.bento-action[data-accent="pink"] {
  background: #fdf2f8;
  border-color: #fbcfe8;
  color: #be185d;
}

[data-theme="dark"] .bento-action[data-accent] {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════════
   DASHBOARD RESPONSIVENESS
   ═══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .dash-widgets {
    display: none;
  }

  .dash-layout {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bento-card.span-2 {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .dash-layout {
    flex-direction: column;
    padding: 0;
    gap: 0;
  }

  .dash-sidebar {
    display: none;
    /* Hide desktop sidebar completely on mobile */
  }

  /* ─── Mobile Bottom Navigation ─── */
  .mobile-nav {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--card-bg);
    border-top: 2px solid var(--border);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 0.5rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom));
    border-radius: 0;
  }

  .mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 12px;
    flex: 1;
    position: relative;
  }

  .mobile-nav-item:hover,
  .mobile-nav-item:active {
    background: var(--lana-lightest);
    color: var(--lana-blue);
  }

  .mobile-nav-item.active {
    color: var(--lana-blue);
  }

  .mobile-nav-item .nav-icon {
    font-size: 1.4rem;
  }

  .mobile-nav-item .nav-badge {
    top: 0;
    right: calc(50% - 20px);
  }


  .dash-main {
    border-left: none;
    padding-bottom: 70px;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }

  .dash-header {
    padding: 1rem 1.2rem;
    border-radius: 0;
  }

  .dash-header h2 {
    font-size: 1.15rem;
  }

  /* Bento responsive */
  .bento-welcome {
    padding: 1.2rem 1.2rem 0;
  }

  .bento-welcome h1 {
    font-size: 1.5rem;
  }

  .bento-pills {
    padding: 0.8rem 1.2rem;
    gap: 0.5rem;
  }

  .bento-pill {
    font-size: 0.78rem;
    padding: 0.3rem 0.8rem 0.3rem 0.3rem;
  }

  .bento-pill-value {
    min-width: 26px;
    height: 26px;
    font-size: 0.7rem;
  }

  .bento-big-stats {
    padding: 0 1.2rem 0.8rem;
    gap: 1.2rem;
  }

  .bento-big-stat .big-number {
    font-size: 2rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    padding: 0 1.2rem 1.2rem;
  }

  .bento-card.span-2 {
    grid-column: span 1;
  }

  .bento-card.span-row-2 {
    grid-row: span 1;
  }

  .bento-actions-title {
    padding: 0 1.2rem;
  }

  .bento-actions {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 1.2rem 1.5rem;
    gap: 0.6rem;
  }

  .bento-action {
    padding: 1rem 0.5rem;
  }

  .bento-action-icon {
    font-size: 1.6rem;
  }

  .bento-action-label {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .bento-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-big-stats {
    gap: 0.8rem;
  }

  .bento-big-stat .big-number {
    font-size: 1.6rem;
  }
}
