/* MAIN CONTENT */
@import url("main-content.css");

@import url("https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&family=Jost:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");


/* ── iTRiders Ocean Teal Design System ── */
:root {
  --bg: #f6f8f9;
  --surface: #ffffff;
  --surface2: #f0f4f7;
  --border: #e0e8ed;
  --text: #162028;
  --muted: #6b7c8a;
  --soft: #aabac5;
  --accent: #0e7fa8;
  --accent2: #e6f4fa;
  --accent3: #b3dced;
  --hero-top: #0b2535;
  --hero-bot: #0e4a6e;
  --amber: #c47b1a;
  --amber-bg: #fef4e3;
  --red: #c0392b;
  --red-bg: #fdecea;
  --green: #1a7a4a;
  --green-bg: #e6f5ed;
  --indigo: #4f46e5;
  --indigo-bg: #eeecfd;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow: 0 2px 14px rgba(14, 127, 168, 0.08), 0 6px 24px rgba(0, 0, 0, 0.05);
  --radius: 13px;
  --font-family-primary: "Raleway", sans-serif;
  --font-family-secondary: "Open Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family-primary);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.55;
}

/* CARDS */
.card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
  display: block;
}

/* STAT CARDS */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}

.stat-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

.stat-val {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.stat-lbl {
  font-size: 0.76rem;
  color: var(--muted);
}

.stat-change {
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

.stat-up {
  color: var(--green);
}

.stat-down {
  color: var(--red);
}

/* TAGS */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.62rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}

.tag-neutral {
  background: #e8edf0;
  color: var(--muted);
}

.tag-green {
  background: var(--green-bg);
  color: var(--green);
}

.tag-blue {
  background: var(--accent2);
  color: var(--accent);
}

.tag-amber {
  background: var(--amber-bg);
  color: var(--amber);
}

.tag-red {
  background: var(--red-bg);
  color: var(--red);
}

.tag-indigo {
  background: var(--indigo-bg);
  color: var(--indigo);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  padding: 0.52rem 1.2rem;
  border-radius: 9px;
  font-family: var(--font-family-primary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(14, 127, 168, 0.25);
}

.btn-accent:hover:not(:disabled) {
  background: #0a6a8e;
  transform: translateY(-1px);
}

.btn-accent:disabled, .btn-accent.disabled {
  background: var(--accent);
  color: #fff;
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent2);
}

.btn-outline:disabled, .btn-outline.disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background: transparent;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  background: var(--surface2);
  color: var(--text);
}

.btn-danger {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid #f5c6c2;
}

.btn-danger:hover {
  background: var(--red);
  color: #fff;
}

.btn-sm {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  border-radius: 7px;
}

.btn-lg {
  padding: 0.68rem 1.5rem;
  font-size: 0.96rem;
  border-radius: 10px;
}

/* FORMS */
.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 0.38rem;
  letter-spacing: 0.2px;
}

.form-input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-family: var(--font-family-primary);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--surface2);
  outline: none;
  transition: all 0.18s;
}

.form-input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 127, 168, 0.1);
}

textarea.form-input {
  resize: vertical;
  min-height: 90px;
}

.form-select {
  width: 100%;
  padding: 0.7rem 2.2rem 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-family: var(--font-family-primary);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--surface2);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7c8a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  transition: all 0.18s;
}

.form-select:focus {
  border-color: var(--accent);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(14, 127, 168, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

/* TABLES */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

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

.data-table tr:hover td {
  background: var(--surface2);
}

/* SECTION HEADING */
.sec-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.sec-heading h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

/* PROGRESS BAR */
.prog-wrap {
  height: 6px;
  background: var(--border);
  border-radius: 50px;
  overflow: hidden;
  margin-top: 0.3rem;
}

.prog-fill {
  height: 100%;
  border-radius: 50px;
  background: var(--accent);
}

/* AVATAR */
.avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* TOGGLE */
.toggle {
  width: 36px;
  height: 20px;
  background: var(--border);
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.toggle::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle.on {
  background: var(--accent);
}

.toggle.on::after {
  transform: translateX(16px);
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.28s;
  pointer-events: none;
  z-index: 9999;
  box-shadow: var(--shadow);
}

.toast.show {
  opacity: 1;
  transform: none;
}

.toast.success {
  background: var(--green);
}

.toast.error {
  background: var(--red);
}

/* DIVIDER */
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.2rem 0;
}