/* @import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Plus+Jakarta+Sans:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap'); */

@import url('fonts.css');
/* ?? 1. Reset ??????????????????????????????????????????????? */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ul, ol  { list-style: none; }
a       { text-decoration: none; color: inherit; }
button  { cursor: pointer; border: none; background: none; font: inherit; }

/* ?? 2. :root variables ?????????????????????????????????????? */
:root {
  --color-sidebar-bg:        #1C1C1E;
  --color-sidebar-text:      rgba(255, 255, 255, 0.75);
  --color-sidebar-active-bg: #3A3A3C;
  --color-content-bg:        #f4f4f6;
  --color-card-bg:           #ffffff;
  --color-accent:            #95D5B2;
  --color-accent-dark:       #2D6A4F;
  --color-text-primary:      #111111;
  --color-text-secondary:    #6c6c70;
  --color-badge-pink:        #e91e8c;
  --color-badge-pink-light:  #f8bbd0;
  --neutral-900:            hsl(152, 7%, 12%);
  --neutral-700:            hsl(152, 3%, 24%);
  --neutral-500:            hsl(152, 4%, 44%);
  --neutral-300:            hsl(152, 2%, 70%);
  --neutral-100:            hsl(152, 2%, 92%);
  --neutral-50:            hsl(152, 2%, 97%);
  --neutral-20:            hsl(152, 1%, 98%);
  --primary-50:            hsl(132, 18%, 94%);
  --primary-100:            hsl(129, 11%, 95%);
  --primary-300:            hsl(147, 30%, 84%);
  --primary-500:            hsl(152, 55%, 72%);
  --primary-700:            hsl(153 58% 42%);
  --primary-900:            hsl(147, 57%, 24%);
  --font-base:               'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display:            'DM Serif Display', Georgia, serif;
  --font-mono:               'DM Mono', Georgia, serif;
  --radius-card:             16px;
  --radius-card-lg:          24px;
  --shadow-card:             0 2px 12px rgba(0, 0, 0, 0.07);
  --sidebar-width:           240px;
  --topbar-height:           64px;

  /* Spaces */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  12px;
  --sp-lg:  16px;
  --sp-xl:  20px;
  --sp-2xl: 24px;
  --sp-3xl: 32px;
  --sp-4xl: 40px;
  --sp-5xl: 48px;

  /* Radius */
--radius-sm:    8px;
--radius-md:    16px;
--radius-lg:    24px;
--radius-xl:    32px;
--radius-xl:    32px;


  /* Typography */
  --f-14: 14px;
  --f-16: 16px;
  --f-20: 20px;
  --f-24: 24px;
  --f-32: 32px;

        /* Shadows */
  --shadow-panel: 0 4px 32px rgba(0,0,0,0.06);
  --shadow-input-focus: 0 0 0 3px rgba(82,183,136,0.18);
}



.color-black { color: var(--color-text-primary); }
.color-white { color: var(--color-card-bg); }
.color-accent { color: var(--color-accent); }
.color-accent-dark { color: var(--color-accent-dark); }

    /* ============================================================
       3. BASE TYPOGRAPHY
    ============================================================ */



body {
  font-family: var(--font-base);
  font-weight: 300;
  font-size: var(--f-16);
  line-height: 1.5;
  background-color: var(--color-content-bg);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
}
/* BEM block: dashboard*/
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: var(--topbar-height) 1fr;
  grid-template-areas:
    "sidebar topbar"
    "sidebar dashboard";
  min-height: 100vh;
}
.login-container{
      font-family: var(--font-base);
      background: var(--color-bg);
      color: var(--color-text-body);
      min-height: 100vh;
      -webkit-font-smoothing: antialiased;
}
.dm-mono-regular {
  font-family: "DM Mono", monospace;
  font-weight: 400;
  font-style: normal;
}

    /* ============================================================
       3. SIDEBAR
    ============================================================ */
.sidebar {
  grid-area: sidebar;
  background-color: var(--neutral-900);
  color: var(--color-sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 26px 20px;
  gap: var(--sp-lg);
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
}

.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.sidebar__logo-icon {
  width: 28px;
  height: 28px;
  background-color: #d9d9d9;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar__logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__logo-title {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  color: #ffffff;
}

.sidebar__logo-subtitle {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25px;
  color: #bebebe;
  text-transform: uppercase;
}

.sidebar__divider {
  height: 1px;
  background-color: var(--neutral-700);
  flex-shrink: 0;
  width: 100%;
}

.sidebar__section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--neutral-500);
}

.sidebar__footer {
  margin-top: auto;
  padding-top: var(--sp-lg);
}

.sidebar__logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: var(--sp-sm);
  border-radius: 12px;
  width: 100%;
  transition: background-color 0.15s ease;
}
.sidebar__logout:hover { background-color: rgba(255, 255, 255, 0.06); }

.sidebar__logout-avatar {
  width: 32px;
  height: 32px;
  background-color: #f7f3fd;
  color: var(--neutral-900);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar__logout-divider {
  width: 1px;
  height: 20px;
  background-color: #cbb2f1;
  flex-shrink: 0;
}

.sidebar__logout-text {
  font-size: 14px;
  line-height: 20px;
  color: var(--color-card-bg);
}

    /* ============================================================
       4. NAVIGATION
    ============================================================ */
.nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
  width: 100%;
}

.nav__item {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-md);
  border-radius: 12px;
  color: var(--neutral-300);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  transition: background-color 0.15s ease;
  width: 100%;
}
.nav__item:hover { background-color: rgba(255, 255, 255, 0.06); }

.nav__item--active {
  background-color: var(--neutral-700);
  color: #ffffff;
}

.nav__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

    /* ============================================================
       5. TOPBAR
    ============================================================ */
.topbar {
  grid-area: topbar;
  background-color: var(--color-card-bg);
  border-bottom: 1px solid #e5e5ea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-2xl);
  height: var(--topbar-height);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar__stats {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
}

.topbar__user {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.topbar__user-divider {
  width: 1px;
  height: 20px;
  background-color: #6c6c70;
  flex-shrink: 0;
}

.topbar__user-name {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 20px;
}

/* ?? BEM block: stat-chip ?????????????????????????????????????? */
.stat-chip {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.stat-chip__avatars {
  display: flex;
  align-items: center;
}

.stat-chip__avatar {
  width: 32px;
  height: 32px;
  background-color: var(--neutral-900);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  flex-shrink: 0;
  border: 2px solid #ffffff;
}
.stat-chip__avatar + .stat-chip__avatar { margin-left: -10px; }

.stat-chip__badge {
  width: 32px;
  height: 32px;
  background-color: var(--neutral-900);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-card-bg);
  flex-shrink: 0;
}

.stat-chip__divider {
  width: 1px;
  height: 20px;
  background-color: var(--neutral-500);
  flex-shrink: 0;
}

.stat-chip__label {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 20px;
  white-space: nowrap;
}

/* ?? BEM block: birthday-chip ????????????????????????????????? */
.birthday-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  background-color: #fff5f9;
  border: 1px solid #fac3da;
  border-radius: 8px;
  padding: 4px var(--sp-sm);
  height: 32px;
}

.birthday-chip__icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
  color: var(--color-badge-pink-light);
}

.birthday-chip__badge {
  font-family: var(--font-mono);
  width: 16px;
  height: 16px;
  background-color: var(--color-badge-pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  color: #fafafa;
  flex-shrink: 0;

}

/* ?? BEM block: avatar ???????????????????????????????????????? */
.avatar {
  width: 32px;
  height: 32px;
  background-color: var(--neutral-900);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

/* ?? BEM block: dashboard ????????????????????????????????????? */
.dashboard {
  grid-area: dashboard;
  background-color: var(--color-content-bg);
  padding: var(--sp-2xl);
  min-height: calc(100vh - var(--topbar-height));
}

.dashboard__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: var(--sp-2xl);
}

/* ?? BEM block: card ?????????????????????????????????????????? */
.card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-card-lg);
  box-shadow: var(--shadow-card);
  height: 300px;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 24px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.11);
  transform: translateY(-2px);
}

.card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card__label {
  font-size: 16px;
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: 20px;
}

.card__icon {
  position: absolute;
  top: 24px;
  right: 20px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icono{
  width: 100%;
  height: 100%;
  fill: var(--primary-500);
  color: var(--primary-500);
}
.card__metric {
  font-size: 96px;
  font-weight: 600;
  line-height: 1;
  color: #1c1c1e;
  margin-top: var(--sp-sm);
  flex: 1;
  display: flex;
  align-items: flex-start;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--sp-lg);
}

.card__footer-link {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  color: #1c1008;
  font-size: 16px;
  font-weight: 400;
  transition: opacity 0.15s ease;
}
.card__footer-link:hover { opacity: 0.7; }
.card__footer-link i{color: var(--neutral-300); flex-shrink: 0;}
/* .card__footer-icon {
  color: #aeaeb2;
  flex-shrink: 0;
} */

/* ?? BEM element: card__cta ??????????????????????????????????? */
.card__cta {
  width: 32px;
  height: 32px;
  background-color: var(--primary-900);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-card-bg);
  font-size: 16px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.card__cta:hover {
  background-color: #1d4f38;
  transform: scale(1.1);
}

/* ?? 5. Responsive overrides ?????????????????????????????????? */

/* Mobile < 768px */
@media (max-width: 767px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: var(--topbar-height) 1fr;
    grid-template-areas:
      "topbar"
      "dashboard";
  }

  .sidebar {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: var(--sp-sm) var(--sp-lg);
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 200;
  }

  .sidebar__logo,
  .sidebar__divider,
  .sidebar__section-label,
  .sidebar__footer { display: none; }

  .nav {
    flex-direction: row;
    gap: 0;
    width: auto;
    flex: 1;
    justify-content: space-around;
  }

  .nav__item {
    flex-direction: column;
    gap: 3px;
    padding: 6px 8px;
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
    border-radius: 8px;
    min-width: 48px;
  }

  .nav__icon { width: 20px; height: 20px; }

  .topbar { padding: 0 var(--sp-lg); }

  .stat-chip__label { display: none; }

  .dashboard {
    padding: var(--sp-lg);
    padding-bottom: 80px;
  }

  .dashboard__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .card { height: 240px; padding: 22px 20px 20px; }
  .card__metric { font-size: 72px; }
  .card__icon {  right: 12px; top: 18px; }
}

/* Tablet 768px ? 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: var(--topbar-height) 1fr;
    grid-template-areas:
      "topbar"
      "dashboard";
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 300;
  }

  .topbar { padding: 0 var(--sp-2xl); }

  .dashboard { padding: var(--sp-2xl); }

  .dashboard__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-xl);
  }

  .card { height: 280px; padding: 26px 24px 22px; }
  .card__metric { font-size: 80px; }
}

/* Desktop ? 1024px */
@media (min-width: 1024px) {
  .layout {
    grid-template-columns: var(--sidebar-width) 1fr;
    grid-template-areas:
      "sidebar topbar"
      "sidebar dashboard";
  }

  .sidebar { transform: translateX(0); }
}

/* ////// TYPOGRAPHIC */
.f-12 { font-size: 12px; }
.f-14 { font-size: 14px; }  
.f-16 { font-size: 16px; }
.f-20 { font-size: 20px; }
.f-24 { font-size: 24px; }
.f-32 { font-size: 32px; }
.f-40 { font-size: 40px; }