* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #07111f;
  --sidebar: #0b1626;
  --card: #101d2e;
  --card-hover: #14243a;
  --border: #203149;
  --text: #f4f7fb;
  --muted: #8fa1b8;
  --primary: #35d07f;
  --primary-dark: #24ae67;
  --danger: #ff6262;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Arial, sans-serif;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

/* APP */

#app {
  min-height: 100vh;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
  width: 250px;
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;

  display: flex;
  flex-direction: column;

  padding: 24px 16px;

  background: var(--sidebar);
  border-right: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-bottom: 32px;
}

.logo-icon {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: var(--primary);
  color: #05140c;

  font-size: 22px;
  font-weight: 800;
}

.logo strong {
  display: block;
  font-size: 17px;
}

.logo small {
  display: block;
  margin-top: 2px;

  color: var(--muted);
  font-size: 11px;
}

/* NAVIGATION */

.nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.nav-item {
  width: 100%;

  border: 0;
  border-radius: 10px;

  padding: 12px 14px;

  background: transparent;
  color: var(--muted);

  text-align: left;
  font-weight: 600;

  cursor: pointer;

  transition: 0.2s ease;
}

.nav-item:hover {
  background: var(--card);
  color: var(--text);
}

.nav-item.active {
  background: rgba(53, 208, 127, 0.12);
  color: var(--primary);
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px;

  color: var(--muted);

  border-top: 1px solid var(--border);
}

/* MAIN */

.main {
  width: calc(100% - 250px);
  margin-left: 250px;

  padding: 42px;
}

.mobile-header {
  display: none;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 28px;
}

.page-header h1 {
  margin-top: 3px;

  font-size: 32px;
  line-height: 1.15;
}

.eyebrow {
  color: var(--primary);

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 1.5px;
}

.muted {
  color: var(--muted);
}

/* CARDS */

.card {
  padding: 22px;

  background: var(--card);

  border: 1px solid var(--border);
  border-radius: 16px;

  transition: 0.2s ease;
}

.card h3 {
  margin-bottom: 18px;
}

.stat-card small {
  display: block;

  margin-top: 7px;

  color: var(--muted);
}

/* GRIDS */

.stats-grid {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 16px;

  margin-bottom: 20px;
}

.grid-2 {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 20px;
}

.form-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 18px;
}

/* METRICS */

.metric {
  margin-top: 4px;

  font-size: 30px;
  font-weight: 800;

  letter-spacing: -1px;
}

.green {
  color: var(--primary);
}

.red {
  color: var(--danger);
}

/* FORMS */

label {
  display: block;

  margin-bottom: 7px;

  color: var(--muted);

  font-size: 13px;
  font-weight: 600;
}

input {
  width: 100%;

  padding: 12px 13px;

  border: 1px solid var(--border);
  border-radius: 10px;

  outline: none;

  background: #091525;
  color: var(--text);

  transition: 0.2s ease;
}

input::placeholder {
  color: #63758d;
}

input:focus {
  border-color: var(--primary);

  box-shadow: 0 0 0 3px rgba(53, 208, 127, 0.1);
}

/* BUTTONS */

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 10px 15px;

  border: 1px solid var(--border);
  border-radius: 9px;

  background: #132238;
  color: var(--text);

  font-weight: 700;

  cursor: pointer;

  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);

  background: #192b45;
}

.btn-primary {
  border-color: var(--primary);

  background: var(--primary);
  color: #04130b;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

/* LIST */

.list {
  display: flex;
  flex-direction: column;
}

.list-item {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 15px;

  padding: 15px 0;

  border-bottom: 1px solid var(--border);
}

.list-item:first-child {
  padding-top: 0;
}

.list-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

/* PROGRESS */

.progress-block {
  margin-top: 10px;
}

.progress-label {
  display: flex;

  justify-content: space-between;

  margin-bottom: 9px;
}

.progress {
  width: 100%;
  height: 9px;

  overflow: hidden;

  border-radius: 100px;

  background: #07111f;
}

.progress-fill {
  height: 100%;

  border-radius: inherit;

  background: var(--primary);

  transition: width 0.4s ease;
}

/* GOALS */

.goal-header {
  display: flex;

  justify-content: space-between;
  align-items: flex-start;

  gap: 20px;

  margin-bottom: 15px;
}

.goal-header h3 {
  margin-bottom: 3px;
}

/* TABLET */

@media (max-width: 1050px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main {
    padding: 30px;
  }
}

/* MOBILE */

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: relative;

    width: 100%;
    min-height: auto;

    padding: 15px;

    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .logo {
    margin-bottom: 14px;
  }

  .sidebar-footer {
    display: none;
  }

  .nav {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 6px;
  }

  .nav-item {
    padding: 9px 5px;

    text-align: center;

    font-size: 12px;
  }

  .main {
    width: 100%;

    margin-left: 0;

    padding: 22px 15px 40px;
  }

  .mobile-header {
    display: none;
  }

  .page-header {
    margin-bottom: 20px;
  }

  .page-header h1 {
    font-size: 27px;
  }

  .stats-grid,
  .grid-2,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .grid-2 {
    gap: 12px;
  }

  .card {
    padding: 18px;
  }

  .metric {
    font-size: 27px;
  }

  .list-item {
    flex-wrap: wrap;
  }
}

/* SMALL PHONES */

@media (max-width: 430px) {
  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logo-icon {
    width: 38px;
    height: 38px;

    font-size: 19px;
  }

  .main {
    padding: 20px 12px 35px;
  }
