:root {
  --primary: #0095DA;
  --secondary: #FFB800;
  --bg: #F9FAFB;
  --text: #1A1A1A;
  --success: #22C55E;
  --error: #EF4444;
  --radius: 12px;
  --shadow-soft: 0 10px 25px rgba(15,23,42,0.08);
}

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

a {
  text-decoration: none;
  color: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-family: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,149,218,0.35);
}

.btn-secondary {
  background: var(--secondary);
  color: #1A1A1A;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(249,250,251,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148,163,184,0.3);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-dot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fff, var(--primary));
  box-shadow: 0 8px 18px rgba(37,99,235,0.45);
}

.logo-text-main {
  font-family: 'Poppins', system-ui;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-text-sub {
  font-size: 0.8rem;
  opacity: 0.7;
}

.nav {
  display: flex;
  gap: 1rem;
  font-size: 0.92rem;
}

.nav a {
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
}

.nav a:hover {
  background: rgba(148,163,184,0.15);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero {
  max-width: 1120px;
  margin: 1.5rem auto 0;
  padding: 1.5rem 1rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
}

.hero-copy h1 {
  font-family: 'Poppins', system-ui;
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
}

.hero-copy h1 span {
  color: var(--primary);
}

.hero-copy p {
  font-size: 0.98rem;
  max-width: 420px;
  opacity: 0.82;
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-badges {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.78rem;
}

.hero-badges span {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.04);
}

.hero-visual {
  position: relative;
  border-radius: 24px;
  padding: 1.5rem;
  background: radial-gradient(circle at top left, #e0f2fe, #f9fafb);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-map {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image: radial-gradient(circle at 20% 20%, rgba(0,149,218,0.18) 0, transparent 55%),
                    radial-gradient(circle at 80% 60%, rgba(34,197,94,0.18) 0, transparent 55%);
}

.hero-card {
  position: relative;
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-soft);
}

.hero-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.hero-card p {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.8;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.chip {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.04);
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1rem 0.5rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Poppins', system-ui;
  font-size: 1.3rem;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(15,23,42,0.55);
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.card {
  border-radius: 18px;
  padding: 1rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}

.card h3 {
  margin-top: 0;
  font-size: 1rem;
}

.card-meta {
  font-size: 0.8rem;
  opacity: 0.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.services-grid .card {
  text-align: left;
}

.tracking-panel {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 1rem;
}

.input-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.input {
  flex: 1;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  font-family: inherit;
  font-size: 0.9rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.badge-success {
  background: rgba(34,197,94,0.1);
  color: #15803D;
}

.badge-soft {
  background: rgba(148,163,184,0.15);
}

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

.testimonial-quote {
  font-size: 0.86rem;
  margin-bottom: 0.5rem;
}

.testimonial-name {
  font-size: 0.8rem;
  opacity: 0.8;
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.partner-pill {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-size: 0.8rem;
}

.footer {
  margin-top: 3rem;
  background: #0f172a;
  color: #e5e7eb;
  padding: 2rem 1rem 1rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer h3,
.footer h4 {
  margin-top: 0;
}

.footer p {
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  border-top: 1px solid rgba(148,163,184,0.5);
  padding-top: 0.7rem;
  font-size: 0.78rem;
  text-align: center;
  opacity: 0.7;
}

/* Dashboards */

.layout-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 1rem 2rem;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.5rem;
}

.sidebar {
  border-radius: 18px;
  background: #0f172a;
  color: #e5e7eb;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-title {
  font-family: 'Poppins', system-ui;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.sidebar-nav a {
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  color: #e5e7eb;
  opacity: 0.9;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(15,118,110,0.65);
}

.main-panel {
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}

.chip-row-soft {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.stat-card {
  border-radius: 14px;
  padding: 0.9rem;
  background: #f9fafb;
  font-size: 0.85rem;
}

.stat-label {
  opacity: 0.7;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.table th,
.table td {
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid rgba(148,163,184,0.4);
  text-align: left;
}

.badge-status {
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
}

.badge-status.green {
  background: rgba(34,197,94,0.12);
  color: #15803D;
}

.badge-status.amber {
  background: rgba(245,158,11,0.12);
  color: #92400E;
}

.badge-status.blue {
  background: rgba(37,99,235,0.12);
  color: #1D4ED8;
}

/* Auth pages */

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: radial-gradient(circle at top left, #e0f2fe, #f9fafb);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.7rem;
}

.auth-card h1 {
  font-family: 'Poppins', system-ui;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.auth-card p {
  font-size: 0.85rem;
  opacity: 0.7;
}

.form-group {
  margin-top: 0.8rem;
}

.label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.15rem;
}

.input-full {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.7);
  font-family: inherit;
  font-size: 0.9rem;
}

.auth-footer-row {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
}

.alert {
  margin-top: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  font-size: 0.8rem;
}

.alert-error {
  background: rgba(239,68,68,0.08);
  color: #b91c1c;
}

.alert-success {
  background: rgba(22,163,74,0.08);
  color: #166534;
}

/* Responsive */

@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cards-3, .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .layout-dashboard {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    flex-direction: row;
    overflow-x: auto;
  }
  .sidebar-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
}

@media (max-width: 560px) {
  .services-grid,
  .cards-3,
  .testimonials-grid,
  .stats-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ====== NEW DASHBOARD LAYOUT ====== */

/* Body and general layout */
.dash-shell {
    display: flex;
    height: 100vh;
    font-family: 'Roboto', sans-serif;
    background-color: #F7F8FA;
}

.dash-sidebar {
    width: 240px;
    background-color: #FFFFFF;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
}

.dash-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.dash-logo-mark {
    width: 40px;
    height: 40px;
    background-color: #1C64F2;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.dash-logo-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.dash-logo-sub {
    font-size: 0.85rem;
    color: #9CA3AF;
}

.dash-nav {
    flex-grow: 1;
}

.dash-nav-item {
    padding: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    color: #4B5563;
    text-decoration: none;
}

.dash-nav-item:hover {
    background-color: #F3F4F6;
}

.dash-nav-item.active {
    background-color: #1C64F2;
    color: white;
}

.dash-nav-icon {
    font-size: 1.3rem;
}

.dash-main {
    flex-grow: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.dash-title {
    font-size: 1.6rem;
    font-weight: 700;
}

.dash-header-user {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.dash-avatar {
    width: 40px;
    height: 40px;
    background-color: #CBD5E1;
    color: #4B5563;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.dash-header-user-text {
    display: flex;
    flex-direction: column;
}

.dash-header-user-label {
    font-size: 0.85rem;
    color: #9CA3AF;
}

.dash-header-user-name {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

/* Card Styles */
.dash-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dash-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.dash-card-primary {
    background-color: #1C64F2;
    color: white;
}

.dash-card-dark {
    background-color: #111827;
    color: white;
}

.dash-card-label {
    font-size: 0.9rem;
    color: #9CA3AF;
}

.dash-card-value {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Panel for charts */
.dash-panel {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dash-panel-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.dash-panel-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.dash-panel-subtitle {
    font-size: 0.9rem;
    color: #9CA3AF;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dash-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .dash-row {
        grid-template-columns: 1fr;
    }
}





















