/* =====================================================
   SECOND LIFE AI — PREMIUM DASHBOARD DESIGN
   File: css/dashboard.css
   ===================================================== */

:root {
  --dash-green: #176b4d;
  --dash-dark: #104b37;
  --dash-light: #eaf5ee;
  --dash-bg: #f5f8f6;
  --dash-white: #ffffff;
  --dash-text: #172b23;
  --dash-muted: #75847b;
  --dash-border: #e5ece7;
  --dash-shadow: 0 12px 35px rgba(24, 67, 46, 0.07);
  --dash-radius: 20px;
}

.dashboard-page {
  margin: 0;
  color: var(--dash-text);
  background:
    radial-gradient(ellipse at top right, #e9f5ed 0, transparent 36%),
    var(--dash-bg);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}

.dashboard-page *,
.dashboard-page *::before,
.dashboard-page *::after {
  box-sizing: border-box;
}

.dashboard-page a {
  text-decoration: none;
  transition: color .2s ease, background .2s ease,
              transform .2s ease, box-shadow .2s ease;
}

/* ================= NAVBAR ================= */

.dashboard-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 86px;
  padding: 15px clamp(20px, 5vw, 76px);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(220, 232, 224, .9);
  backdrop-filter: blur(18px);
}

.dashboard-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--dash-text);
  font-family: "Manrope", sans-serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
}

.dashboard-brand-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #218b60, #104b37);
  border-radius: 15px;
  box-shadow: 0 7px 18px rgba(23, 107, 77, .22);
  font-size: 25px;
}

.dashboard-brand-name > span {
  color: var(--dash-green);
}

.dashboard-brand-name small {
  display: block;
  margin-top: 4px;
  color: var(--dash-muted);
  font-size: 9px;
  letter-spacing: 2px;
}

.dashboard-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
}

.dashboard-nav a {
  padding: 10px 13px;
  color: #617168;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
  color: var(--dash-green);
  background: var(--dash-light);
}

.dashboard-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.dashboard-login-btn,
.dashboard-add-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-login-btn {
  color: var(--dash-green);
  background: white;
  border: 1px solid #d6e5db;
}

.dashboard-login-btn:hover {
  background: var(--dash-light);
}

.dashboard-add-btn {
  color: white;
  background: linear-gradient(135deg, #21875d, #12533b);
  box-shadow: 0 6px 15px rgba(23, 107, 77, .16);
}

.dashboard-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(23, 107, 77, .22);
}

/* ================= MAIN LAYOUT ================= */

.dashboard-container {
  width: min(1440px, 100%);
  min-height: 75vh;
  margin: 0 auto;
  padding: 42px clamp(20px, 5vw, 76px) 75px;
}

/* ================= WELCOME SECTION ================= */

.dashboard-welcome {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  min-height: 220px;
  margin-bottom: 30px;
  padding: clamp(28px, 4vw, 48px);
  color: white;
  background:
    radial-gradient(circle at 87% 18%, rgba(255,255,255,.15) 0 70px, transparent 71px),
    radial-gradient(circle at 96% 100%, rgba(128,220,166,.19) 0 125px, transparent 126px),
    linear-gradient(120deg, #104b37, #176b4d 60%, #25865e);
  border-radius: 26px;
  box-shadow: 0 18px 42px rgba(16, 75, 55, .17);
}

.dashboard-welcome::after {
  content: "";
  position: absolute;
  right: 14%;
  bottom: -110px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  pointer-events: none;
}

.dashboard-welcome > div,
.dashboard-welcome > a {
  position: relative;
  z-index: 1;
}

.dashboard-welcome h1 {
  margin: 12px 0 10px;
  color: white;
  font-family: "Manrope", sans-serif;
  font-size: clamp(30px, 3.5vw, 43px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.2;
}

.dashboard-welcome p {
  max-width: 590px;
  margin: 0;
  color: #dcefe4;
  font-size: 15px;
}

.dashboard-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #4a9471;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.dashboard-welcome .dashboard-eyebrow {
  color: #b9e7cb;
}

.welcome-add-btn {
  min-width: 155px;
  color: var(--dash-green);
  background: white;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

.welcome-add-btn:hover {
  color: var(--dash-dark);
  background: #effaf2;
}

/* ================= STATISTICS ================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: var(--dash-white);
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  box-shadow: var(--dash-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(24, 67, 46, .12);
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -36px;
  width: 100px;
  height: 100px;
  background: #f1f7f3;
  border-radius: 50%;
}

.stat-green {
  background: linear-gradient(145deg, #ffffff, #eff9f1);
  border-color: #cfe7d6;
}

.stat-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 21px;
}

.stat-label {
  color: #68796f;
  font-size: 13px;
  font-weight: 700;
}

.stat-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  color: var(--dash-green);
  background: #eaf5ed;
  border-radius: 14px;
  font-size: 22px;
}

.stat-card:nth-child(2) .stat-icon {
  color: #bd5d7e;
  background: #fff0f5;
}

.stat-card:nth-child(3) .stat-icon {
  color: #4774c5;
  background: #eef3ff;
}

.stat-card:nth-child(4) .stat-icon {
  color: #b97830;
  background: #fff5e8;
}

.stat-card > strong {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--dash-text);
  font-family: "Manrope", sans-serif;
  font-size: clamp(30px, 3vw, 39px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.2;
}

.stat-card > p {
  position: relative;
  z-index: 1;
  margin: 11px 0 0;
  color: var(--dash-muted);
  font-size: 12px;
}

/* ================= SECTION HEADINGS ================= */

.dashboard-section {
  margin-top: 45px;
}

.dashboard-section-heading,
.recent-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.dashboard-section-heading h2,
.recent-heading h2 {
  margin: 7px 0 6px;
  color: var(--dash-text);
  font-family: "Manrope", sans-serif;
  font-size: clamp(23px, 2.4vw, 29px);
  font-weight: 800;
  letter-spacing: -.7px;
}

.dashboard-section-heading p,
.recent-heading p {
  margin: 0;
  color: var(--dash-muted);
  font-size: 14px;
}

/* ================= QUICK ACTIONS ================= */

.dashboard-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-link {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  min-height: 110px;
  padding: 22px;
  color: var(--dash-text);
  background: white;
  border: 1px solid var(--dash-border);
  border-radius: 18px;
  box-shadow: 0 5px 20px rgba(24, 67, 46, .035);
}

.dashboard-link:hover {
  transform: translateY(-4px);
  border-color: #b7d9c3;
  box-shadow: var(--dash-shadow);
}

.dashboard-link-icon {
  display: grid;
  width: 49px;
  height: 49px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 15px;
  font-size: 25px;
}

.green-icon {
  color: #176b4d;
  background: #e8f6ed;
}

.purple-icon {
  color: #7953b6;
  background: #f1eaff;
}

.blue-icon {
  color: #386fc4;
  background: #eaf2ff;
}

.pink-icon {
  color: #bd5c81;
  background: #fff0f5;
}

.orange-icon {
  color: #b7782e;
  background: #fff3e4;
}

.gray-icon {
  color: #5c6c64;
  background: #edf1ee;
}

.dashboard-link-content {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.dashboard-link-content strong {
  color: #20382c;
  font-size: 14px;
  font-weight: 800;
}

.dashboard-link-content small {
  color: var(--dash-muted);
  font-size: 12px;
  line-height: 1.5;
}

.dashboard-arrow {
  color: #9aaba0;
  font-size: 19px;
}

.dashboard-link:hover .dashboard-arrow {
  color: var(--dash-green);
  transform: translate(2px, -2px);
}

/* ================= RECENT LISTINGS ================= */

.recent-section {
  padding: 30px;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--dash-border);
  border-radius: 24px;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  color: var(--dash-green);
  background: var(--dash-light);
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
}

.view-all-link:hover {
  color: white;
  background: var(--dash-green);
}

.dashboard-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-product-grid .product-card {
  overflow: hidden;
  min-width: 0;
  background: white;
  border: 1px solid var(--dash-border);
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(24, 67, 46, .045);
  transition: transform .25s ease, box-shadow .25s ease;
}

.dashboard-product-grid .product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--dash-shadow);
}

.dashboard-product-grid .product-image,
.dashboard-product-grid .product-card img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #edf4ef;
}

.dashboard-product-grid .product-card-body,
.dashboard-product-grid .product-body {
  padding: 20px;
}

.dashboard-product-grid .product-category {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 9px;
  color: var(--dash-green);
  background: var(--dash-light);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
}

.dashboard-product-grid h3 {
  margin: 4px 0 10px;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.dashboard-product-grid h3 a {
  color: var(--dash-text);
}

.dashboard-product-grid h3 a:hover {
  color: var(--dash-green);
}

.dashboard-product-grid .product-price {
  color: var(--dash-green);
  font-size: 20px;
  font-weight: 800;
}

.dashboard-product-grid .muted,
.dashboard-product-grid .product-location {
  color: var(--dash-muted);
  font-size: 12px;
}

.dashboard-product-grid .product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.dashboard-product-grid .btn {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 12px;
}

/* ================= EMPTY STATE ================= */

.dashboard-empty {
  padding: 48px 20px;
  text-align: center;
  background: white;
  border: 1px dashed #c9dcd0;
  border-radius: 18px;
}

.dashboard-empty[hidden] {
  display: none !important;
}

.dashboard-empty-icon {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 0 auto 17px;
  place-items: center;
  color: var(--dash-green);
  background: var(--dash-light);
  border-radius: 21px;
  font-size: 30px;
}

.dashboard-empty h3 {
  margin: 0 0 8px;
  font-family: "Manrope", sans-serif;
  font-size: 21px;
}

.dashboard-empty p {
  margin: 0 0 20px;
  color: var(--dash-muted);
  font-size: 14px;
}

/* ================= FOOTER ================= */

.dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  padding: 28px clamp(20px, 5vw, 76px);
  background: #ffffff;
  border-top: 1px solid var(--dash-border);
}

.dashboard-footer > a {
  color: var(--dash-green);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.dashboard-footer p,
.dashboard-footer span {
  margin: 0;
  color: var(--dash-muted);
  font-size: 12px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {
  .dashboard-navbar {
    flex-wrap: wrap;
    gap: 14px;
  }

  .dashboard-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .dashboard-nav a {
    white-space: nowrap;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .dashboard-navbar {
    padding: 14px 18px;
  }

  .dashboard-brand {
    font-size: 16px;
  }

  .dashboard-brand-icon {
    width: 40px;
    height: 40px;
  }

  .dashboard-nav-actions {
    width: 100%;
  }

  .dashboard-nav-actions > a {
    flex: 1;
  }

  .dashboard-container {
    padding: 25px 16px 45px;
  }

  .dashboard-welcome {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 28px 22px;
    border-radius: 21px;
  }

  .dashboard-welcome h1 {
    font-size: 31px;
  }

  .dashboard-welcome p {
    font-size: 13px;
  }

  .stats-grid {
    gap: 12px;
    margin-bottom: 38px;
  }

  .stat-card {
    padding: 17px;
    border-radius: 16px;
  }

  .stat-top {
    align-items: flex-start;
    flex-direction: column-reverse;
    margin-bottom: 14px;
  }

  .stat-icon {
    width: 37px;
    height: 37px;
  }

  .stat-card > strong {
    font-size: 30px;
  }

  .stat-card > p {
    font-size: 11px;
  }

  .dashboard-section {
    margin-top: 35px;
  }

  .dashboard-section-heading h2,
  .recent-heading h2 {
    font-size: 23px;
  }

  .dashboard-links {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .dashboard-link {
    min-height: 88px;
    padding: 17px;
  }

  .recent-section {
    padding: 18px 13px;
    border-radius: 19px;
  }

  .recent-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-product-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-product-grid .product-image,
  .dashboard-product-grid .product-card img {
    height: 220px;
  }

  .dashboard-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 25px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-page *,
  .dashboard-page *::before,
  .dashboard-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* =========================================
   SECOND LIFE AI - PREMIUM FOOTER
========================================= */

.sl-footer {
  margin-top: 80px;
  padding: 0 6%;
  background: #071c16;
  color: #e8f5ee;
  font-family: inherit;
}

.sl-footer-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 64px 0 48px;

  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 42px;
}

/* Brand */
.sl-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 21px;
  font-weight: 800;
  text-decoration: none;
}

.sl-footer-logo-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;

  border-radius: 13px;
  background: #078260;
  color: #ffffff;
  font-size: 23px;
}

.sl-footer-green {
  color: #45d6a5;
}

.sl-footer-logo small {
  display: block;
  margin-top: 4px;
  color: #8da99b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.sl-footer-brand > p {
  max-width: 340px;
  margin: 22px 0;
  color: #a9bdb3;
  font-size: 14px;
  line-height: 1.9;
}

.sl-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 17px;

  border: 1px solid #248b6c;
  border-radius: 9px;
  background: #0a3428;
  color: #ffffff;

  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.sl-footer-cta:hover {
  background: #078260;
}

.sl-footer-cta span {
  font-size: 18px;
}

/* Link columns */
.sl-footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.sl-footer-column h3 {
  margin: 5px 0 10px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 750;
}

.sl-footer-column a {
  color: #a9bdb3;
  font-size: 13px;
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.2s ease, transform 0.2s ease;
}

.sl-footer-column a:hover {
  color: #45d6a5;
  transform: translateX(3px);
}

/* Footer bottom */
.sl-footer-bottom {
  max-width: 1400px;
  min-height: 75px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  border-top: 1px solid rgba(210, 240, 225, 0.12);
}

.sl-footer-bottom p {
  margin: 0;
  color: #91a99c;
  font-size: 11px;
  line-height: 1.7;
}

.sl-footer-tagline span {
  color: #45d6a5;
}

.sl-footer-back-top {
  color: #d9eee3;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.sl-footer-back-top:hover {
  color: #45d6a5;
}

/* Tablet */
@media screen and (max-width: 900px) {
  .sl-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 28px;
  }

  .sl-footer-brand {
    grid-column: 1 / -1;
  }

  .sl-footer-brand > p {
    max-width: 480px;
  }
}

/* Mobile */
@media screen and (max-width: 600px) {
  .sl-footer {
    margin-top: 48px;
    padding: 0 20px;
  }

  .sl-footer-main {
    padding: 42px 0 30px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 20px;
  }

  .sl-footer-brand {
    grid-column: 1 / -1;
  }

  .sl-footer-logo {
    font-size: 19px;
  }

  .sl-footer-logo-icon {
    width: 40px;
    height: 40px;
  }

  .sl-footer-brand > p {
    margin: 17px 0;
    font-size: 13px;
  }

  .sl-footer-column {
    gap: 13px;
  }

  .sl-footer-column h3 {
    font-size: 14px;
  }

  .sl-footer-column a {
    font-size: 12px;
  }

  .sl-footer-bottom {
    padding: 20px 0 28px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .sl-footer-bottom p {
    font-size: 11px;
  }
}
