:root {
  --lav-light: #d0cfec;
  --green-soft: #6a8e7f;
  --purple-main: #62486b;
  --brown-deep: #4c2e05;
  --plum-dark: #2d2327;

  --bg: var(--lav-light);
  --bg-soft: #e8e7f5;
  --white: #ffffff;

  --primary: var(--green-soft);
  --primary-light: #8fb3a6;
  --primary-dark: #4f6b60;

  --accent: var(--purple-main);
  --accent-light: #7f6391;
  --accent-dark: #483656;

  --text-main: var(--plum-dark);
  --text-soft: rgba(45, 35, 39, 0.6);

  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 40px rgba(45, 35, 39, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #e9f2ff, #f6fbff);
  color: #1f2430;
}

/* shell */

.app-shell {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0.8rem;
  border-radius: 30px;
  background: var(--bg-soft);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0.9rem;
}

/* =======================
   SIDEBAR
   ======================= */

.side-panel {
  background: var(--white);
  border-radius: 30px;
  padding: 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 30px rgba(43, 69, 116, 0.18);
}

.side-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.side-avatar {
  width: 44px;
  height: 44px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffb4e6, #ffc88e);
}

.side-brand {
  display: flex;
  flex-direction: column;
}

.side-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.side-subtitle {
  font-size: 0.75rem;
  color: var(--gray-text);
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 16px;
  text-decoration: none;
  color: var(--gray-text);
  font-size: 0.85rem;
}

.side-icon {
  width: 28px;
  height: 28px;
  border-radius: 12px;
  background: #f1f5ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-link.active {
  background: linear-gradient(135deg, #5f8dff, #8fb0ff);
  color: #ffffff;
}

.side-link.active .side-icon {
  background: rgba(255, 255, 255, 0.22);
}

.side-link:hover:not(.active) {
  background: #f4f7ff;
  color: var(--blue-dark);
}

.side-label {
  white-space: nowrap;
}

.side-bottom {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.notif-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 18px;
  padding: 0.3rem 0.6rem;
  border: none;
  background: linear-gradient(135deg, var(--orange-main), #ffc47a);
  color: #ffffff;
  font-size: 0.78rem;
  cursor: pointer;
}

.side-mini-icons {
  display: flex;
  gap: 0.4rem;
}

.mini-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  border: none;
  background: #f1f5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* =======================
   MAIN PANEL
   ======================= */

.main-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* top bar */

.main-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-left {
  font-size: 0.8rem;
  color: var(--gray-text);
}

.crumb-main {
  font-weight: 500;
}

.crumb-current {
  color: var(--blue-dark);
  font-weight: 600;
}

.crumb-sep {
  margin: 0 0.25rem;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.page-tabs {
  display: flex;
  gap: 0.3rem;
}

.page-tab {
  border-radius: 999px;
  border: none;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  cursor: pointer;
  background: transparent;
  color: var(--gray-text);
}

.page-tab.active {
  background: #ffffff;
  color: var(--blue-dark);
  box-shadow: 0 6px 12px rgba(58, 96, 165, 0.2);
}

.menu-dot {
  border-radius: 999px;
  border: none;
  width: 30px;
  height: 30px;
  background: #ffffff;
  box-shadow: 0 6px 12px rgba(58, 96, 165, 0.18);
  cursor: pointer;
}

/* HERO */

.hero-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.4rem;
}

.hero-card {
  background: linear-gradient(135deg, #6689ff, #9ac4ff);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-card::before {
  content: "";
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent 70%);
  opacity: 0.35;
}

.hero-left,
.hero-right {
  position: relative;
  z-index: 1;
}

.hero-tag {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}

.hero-title {
  margin: 0 0 0.2rem;
  font-size: 2rem;
}

.hero-subtitle {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  max-width: 22rem;
}

.hero-cta {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-cta:hover {
  opacity: 0.85;
}

.hero-dots {
  display: flex;
  gap: 0.3rem;
  margin-top: 1rem;
}

.dot {
  width: 12px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}

.dot.active {
  width: 22px;
  background: #ffffff;
}

.hero-illustration {
  width: 100%;
  height: 160px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 20% 0, rgba(255, 255, 255, 0.9), transparent 55%),
    linear-gradient(135deg, #a0c5ff, #6689ff);
}

.hero-arrow {
  width: 34px;
  height: 34px;
  border-radius: 16px;
  border: none;
  background: #ffffff;
  box-shadow: 0 8px 16px rgba(58, 96, 165, 0.25);
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-arrow.left {
  align-self: center;
}

.hero-arrow.right {
  align-self: center;
}

/* LOWER GRID */

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 0.8rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1rem;
  box-shadow: 0 10px 22px rgba(48, 79, 137, 0.13);
}

.card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.card-header h2 {
  margin: 0;
  font-size: 1rem;
}

.header-arrow {
  font-size: 1.1rem;
  color: var(--gray-text);
}

/* column: artwork */

.art-grid {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.art-card {
  flex: 1;
  border-radius: var(--radius-md);
  padding: 0.5rem;
  background: #f3f6ff;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.art-thumb {
  height: 90px;
  border-radius: 18px;
  background: linear-gradient(135deg, #9ec5ff, #ffb4e6);
}

.art-credit {
  margin: 0;
  font-size: 0.75rem;
  color: var(--gray-text);
}

.btn-pill {
  border-radius: var(--radius-pill);
  border: none;
  background: #1f1f1f;
  color: #ffffff;
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

.btn-pill.wide {
  width: 100%;
}

/* column: search */

.search-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.search-row {
  border-radius: 16px;
  padding: 0.4rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f3f6ff;
  font-size: 0.8rem;
}

.search-row.dark {
  background: #252938;
  color: #ffffff;
}

.search-row.light {
  background: #ffffff;
  border: 1px solid #e1e6f5;
}

.search-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* column: info & weather */

.column-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.weather-card {
  background: linear-gradient(135deg, #f6fbff, #ffffff);
}

.weather-main h2 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.weather-temp {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.weather-place {
  margin: 0.1rem 0 0.5rem;
  font-size: 0.8rem;
  color: var(--gray-text);
}

.weather-modes {
  display: flex;
  gap: 0.4rem;
}

.mode-pill {
  border-radius: var(--radius-pill);
  border: none;
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem;
  cursor: pointer;
  background: #edf2ff;
  color: var(--gray-text);
}

.mode-pill.active {
  background: #ffb063;
  color: #ffffff;
}

/* info cards */

.info-card {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.info-icon {
  width: 38px;
  height: 38px;
  border-radius: 16px;
  background: #f3f6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-text h3 {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
}

.info-text p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--gray-text);
}

/* responsive */

@media (max-width: 1024px) {
  .app-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .hero-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .side-panel {
    flex-direction: row;
    align-items: center;
  }

  .side-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .side-bottom {
    align-items: center;
  }

  .lower-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .hero-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-illustration {
    height: 130px;
  }

  .main-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}
/* ======================================================
   COLOR THEME OVERRIDES FOR YOUR PALETTE
   ====================================================== */

/* Page background */
body {
  background: linear-gradient(135deg, var(--lav-light), #e0dfef);
  color: var(--text-main);
}

/* Sidebar */
.side-panel {
  background: var(--white);
  box-shadow: 0 16px 30px rgba(45, 35, 39, 0.15);
}

.side-avatar {
  background: var(--green-soft);
}

.side-link {
  color: var(--text-soft);
}

.side-link:hover {
  background: rgba(106, 142, 127, 0.15);
  color: var(--primary-dark);
}

.side-link.active {
  background: linear-gradient(135deg, var(--green-soft), var(--primary-light));
  color: #ffffff;
}

.side-link.active .side-icon {
  background: rgba(255, 255, 255, 0.25);
}

.side-icon {
  background: #f5f3fa;
}

/* Notification pill */
.notif-pill {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

/* Top tabs */
.page-tab.active {
  background: var(--white);
  color: var(--accent);
  box-shadow: 0 6px 12px rgba(98, 72, 107, 0.22);
}

/* Hero Card */
.hero-card {
  background: linear-gradient(135deg, var(--purple-main), var(--accent-light));
  color: #ffffff;
}

.hero-card::before {
  background: radial-gradient(circle, #ffffff, transparent 70%);
}

.hero-illustration {
  background:
    radial-gradient(circle at 20% 0, rgba(255,255,255,0.95), transparent 55%),
    linear-gradient(135deg, var(--accent-light), var(--purple-main));
}

.dot {
  background: rgba(255, 255, 255, 0.35);
}

.dot.active {
  background: #ffffff;
}

/* Artwork cards */
.art-thumb {
  background: linear-gradient(135deg, var(--green-soft), var(--accent));
}

.art-card {
  background: #f3f2f7;
}

/* Search list */
.search-row {
  background: #f2f0f6;
}

.search-row.dark {
  background: var(--plum-dark);
  color: #ffffff;
}

.search-row.light {
  background: var(--white);
  border: 1px solid #d8d4e2;
}

/* Weather + Info */
.weather-card {
  background: linear-gradient(135deg, var(--lav-light), #ffffff);
}

.mode-pill {
  background: #f2f0f6;
  color: var(--text-soft);
}

.mode-pill.active {
  background: var(--green-soft);
  color: #ffffff;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0.7rem 0.8rem;
  box-shadow: 0 8px 16px rgba(45,35,39,0.1);
}

.info-icon {
  background: #f2f0f6;
  color: var(--accent);
}

/* Buttons */
.btn-pill {
  background: var(--brown-deep);
}

.btn-pill:hover {
  background: #5d3a08;
}

/* Generic card styling */
.card {
  box-shadow: 0 10px 22px rgba(45, 35, 39, 0.18);
}
