
:root {
  --ink: #202629;
  --muted: #687276;
  --lime: #b7d62a;
  --lime-dark: #8eaa12;
  --line: #e4e9e8;
  --surface: #ffffff;
  --bg: #f4f6f5;
  --shadow: 0 8px 28px rgba(28,39,36,.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

button, input {
  font: inherit;
}

/* TOP NAVIGATION */

.topbar {
  min-height: 76px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px max(22px, calc((100vw - 1120px)/2));
  border-bottom: 4px solid var(--lime);
  gap: 15px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .08em;
}

.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: .18em;
  color: #cbd2d0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 23px;
  font-weight: 900;
}

/* MAIN LAYOUT */

.main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 22px 65px;
  min-height: calc(100vh - 145px);
}

.footer {
  text-align: center;
  padding: 22px;
  color: #89918f;
  font-size: 12px;
}

/* LOGIN */

.auth-wrap {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(100%, 440px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .15em;
  font-weight: 800;
  color: var(--lime-dark);
  text-transform: uppercase;
}

h1 {
  font-size: 32px;
  line-height: 1.15;
  margin: 10px 0;
  font-weight: 800;
}

h2 {
  font-size: 21px;
}

h3 {
  font-size: 17px;
}

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

.small {
  font-size: 12px;
  margin-top: 18px;
}

/* FORMS */

label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin: 18px 0 7px;
}

input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cfd7d4;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}

input:focus {
  outline: 3px solid rgba(183,214,42,.25);
  border-color: var(--lime-dark);
}

/* BUTTONS */

.button {
  border: 0;
  border-radius: 9px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.button-primary {
  background: var(--lime);
  color: var(--ink);
}

.button-primary:hover {
  background: #c7e34b;
  transform: translateY(-1px);
}

.button-full {
  width: 100%;
  margin-top: 24px;
}

.button-quiet {
  background: transparent;
  color: #fff;
  border: 1px solid #5d6668;
}

.button-quiet:hover {
  background: #343e41;
}

/* NOTIFICATIONS */

.alert {
  padding: 13px 15px;
  border-radius: 9px;
  margin: 16px 0;
  font-size: 13px;
}

.alert-error {
  background: #fff0ef;
  color: #9d2922;
  border: 1px solid #f2c7c3;
}

.alert-success {
  background: #f2f8df;
  color: #40540b;
  border: 1px solid #d9e8a5;
}

/* DASHBOARD WELCOME */

.welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  background: #fff;
  padding: 25px 28px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.welcome h1 {
  font-size: 34px;
}

.role-pill,
.coming {
  display: inline-block;
  border-radius: 99px;
  background: #edf4d2;
  color: #50630d;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

/* DASHBOARD NOTICE */

.notice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--lime);
  border-radius: 10px;
  padding: 17px 19px;
  margin: 24px 0 34px;
  box-shadow: 0 3px 12px rgba(28,39,36,.03);
}

.section-heading {
  margin-bottom: 18px;
}

/* DASHBOARD MODULES */

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

.module-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 23px;
  min-height: 190px;
  box-shadow: 0 3px 12px rgba(28,39,36,.03);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: var(--lime);
  box-shadow: 0 12px 28px rgba(28,39,36,.09);
}

.module-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 11px;
  background: #f0f5d9;
  color: #52670b;
  font-size: 22px;
  font-weight: 800;
}

.module-card h3 {
  margin: 15px 0 5px;
}

.module-card p {
  color: var(--muted);
  font-size: 13px;
  min-height: 40px;
  margin-bottom: 10px;
}

.coming {
  font-size: 10px;
  padding: 5px 9px;
}

/* TABLES - FOR FUTURE MODULES */

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

th, td {
  padding: 13px 15px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

th {
  background: #edf1ef;
  font-weight: 800;
}

tr:hover td {
  background: #f8faef;
}

/* LOGOUT */

.logout-form {
  margin: 0;
}

/* MOBILE AND TABLET */

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

  .main {
    padding-top: 28px;
  }
}

@media (max-width: 760px) {
  .main {
    padding: 24px 16px 45px;
  }

  .topbar {
    padding: 12px 16px;
    min-height: 68px;
  }

  .welcome {
    align-items: flex-start;
    flex-direction: column;
    padding: 21px;
  }

  .welcome h1 {
    font-size: 27px;
  }

  .module-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .module-card {
    min-height: 160px;
  }

  .auth-card {
    padding: 25px 21px;
  }

  h1 {
    font-size: 28px;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 13px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .topbar {
    padding-left: 11px;
    padding-right: 11px;
  }
}
