/* mujo Hub design system */

@font-face {
  font-family: "Indarung";
  src: url("/assets/Indarung-ae08f7af.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Quicksand";
  src: url("/assets/Quicksand-836c8f42.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest: #0C4129;
  --lime: #EFF860;
  --lime-deep: #E4EE3C;
  --hairline: rgba(0, 0, 0, .08);
  --glass: rgba(255, 255, 255, .5);
  --glass-border: rgba(255, 255, 255, .62);
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Quicksand", ui-rounded, sans-serif;
  font-weight: 500;
  color: var(--forest);
  background: linear-gradient(160deg, #DACEFD 0%, #D2BFFB 55%, #CCB7F9 100%) fixed;
}

h1, h2, h3 {
  font-family: "Indarung", "Quicksand", sans-serif;
  font-weight: 400;
  margin: 0 0 10px;
}

h1 { font-size: 34px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }

p { line-height: 1.55; }

a { color: var(--forest); }

/* Shell */

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

.hub-sidebar {
  width: 252px;
  flex-shrink: 0;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: rgba(255, 255, 255, .38);
  border-right: 1px solid var(--glass-border);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.hub-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px;
}

.hub-logo svg {
  height: 20px;
  width: auto;
  display: block;
}

.hub-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.hub-nav-link {
  display: block;
  padding: 10px 16px;
  border-radius: 50px;
  color: var(--forest);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: background .15s ease;
}

.hub-nav-link:hover {
  background: rgba(255, 255, 255, .45);
}

.hub-nav-link.is-active {
  background: rgba(255, 255, 255, .6);
  border-color: var(--glass-border);
  font-weight: 700;
}

.hub-sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hub-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 50px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

.hub-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.hub-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.hub-user-meta strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-user-meta small {
  font-size: 11px;
  opacity: .7;
}

.hub-main {
  flex: 1;
  min-width: 0;
  padding: 34px 38px 60px;
}

.hub-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.auth-brand svg {
  height: 22px;
  width: auto;
  display: block;
}

/* Cards */

.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 22px 55px -6px rgba(0, 0, 0, .10);
  padding: 26px 28px;
}

.card-flush {
  padding: 10px 16px;
}

.card-narrow {
  max-width: 560px;
}

.card-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.grid-cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.stack > * + * { margin-top: 20px; }
.stack-sm > * + * { margin-top: 14px; }
.mt-gap { margin-top: 20px; }

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: .65;
}

.stat-value {
  font-family: "Indarung", "Quicksand", sans-serif;
  font-size: 40px;
  line-height: 1;
}

/* Buttons: always pill */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 50px;
  text-transform: uppercase;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  padding: 12px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #EFF860, #E4EE3C);
  border: 1.5px solid #000;
  color: #000;
}

.btn-primary:hover {
  background: #0C4129;
  color: #EFF860;
}

.btn-secondary {
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--hairline);
  color: var(--forest);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, .85);
}

.btn-block {
  width: 100%;
}

form.button_to {
  display: contents;
}

/* Chips */

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--hairline);
  white-space: nowrap;
}

.chip-lime {
  background: linear-gradient(180deg, #EFF860, #E4EE3C);
  border-color: rgba(0, 0, 0, .25);
  color: #000;
}

.chip-forest {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--lime);
}

/* Page structure */

.page-head {
  margin-bottom: 24px;
}

.page-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-sub {
  margin: 2px 0 0;
  opacity: .72;
  font-size: 14px;
}

.filter-bar {
  margin-bottom: 16px;
}

/* Tables */

.hub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.hub-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: .6;
  padding: 12px;
  border-bottom: 1px solid var(--hairline);
}

.hub-table td {
  padding: 12px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
}

.hub-table tr:last-child td {
  border-bottom: none;
}

.table-link {
  font-weight: 700;
  text-decoration: none;
}

.table-link:hover {
  text-decoration: underline;
}

.empty-state {
  padding: 40px 20px;
  text-align: center;
  opacity: .75;
}

/* Forms */

.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.field-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, .7);
  font-family: "Quicksand", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--forest);
}

.input:focus {
  outline: 2px solid var(--forest);
  outline-offset: 1px;
}

.input-inline {
  width: auto;
  min-width: 200px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
}

/* Detail lists */

.detail-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 10px;
}

.detail-list > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-list dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: .6;
}

.detail-list dd {
  margin: 0;
  font-size: 14px;
  text-align: right;
}

/* Timeline */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
}

.timeline li:last-child {
  border-bottom: none;
}

.timeline-time {
  float: right;
  opacity: .55;
  font-size: 12px;
}

/* Flash */

.flash {
  padding: 12px 20px;
  border-radius: 18px;
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, .6);
  border: 1px solid var(--glass-border);
}

.flash-alert {
  background: rgba(255, 226, 226, .75);
  border-color: rgba(200, 60, 60, .25);
  color: #7C2222;
}

.flash-notice {
  background: rgba(232, 250, 220, .75);
  border-color: rgba(12, 65, 41, .2);
}

/* Mobile */

@media (max-width: 840px) {
  .hub-shell {
    flex-direction: column;
  }

  .hub-sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }

  .hub-main {
    padding: 20px 16px 48px;
  }

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