/* ============================================================
   AniCure - Global CSS Design System
   Animal Rescue & Care Platform
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
  --clr-primary: #EF9934;
  --clr-primary-dark: #d47e1d;
  --clr-primary-light: #f4b264;
  --clr-primary-glow: rgba(239, 153, 52, 0.15);

  --clr-accent: #1E83C5;
  --clr-accent-dark: #156da6;
  --clr-danger: #ef4444;
  --clr-warning: #EF9934;
  --clr-info: #1E83C5;
  --clr-success: #1E83C5;

  --bg-dark: #0d0f12;
  --bg-card: #12151a;
  --bg-card-hover: #181b22;
  --bg-glass: rgba(18, 21, 26, 0.85);
  --bg-nav: rgba(13, 15, 18, 0.95);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-body: #cbd5e1;

  --border: rgba(30, 131, 197, 0.12);
  --border-hover: rgba(30, 131, 197, 0.3);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(239, 153, 52, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

input,
textarea,
select {
  outline: none;
  font-family: var(--font-sans);
}

ul {
  list-style: none;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--clr-primary-dark);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--clr-primary);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: absolute;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 1200px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 0.65rem 1.75rem;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.navbar-brand .brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.navbar-brand span {
  color: var(--clr-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(30, 131, 197, 0.08);
}

.nav-link.active {
  color: var(--clr-accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(239, 153, 52, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px rgba(239, 153, 52, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

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

.btn-outline:hover {
  background: var(--clr-primary-glow);
  border-color: var(--clr-primary);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-body);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-accent {
  background: rgba(30, 131, 197, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(30, 131, 197, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(30, 131, 197, 0.15), inset 0 0 12px rgba(30, 131, 197, 0.05);
}

.btn-accent:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(30, 131, 197, 0.2);
  border-color: rgba(30, 131, 197, 0.8);
  box-shadow: 0 10px 25px rgba(30, 131, 197, 0.35), inset 0 0 20px rgba(30, 131, 197, 0.15);
  color: #fff;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

.btn-xl {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-control {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  width: 100%;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--clr-primary);
  background: rgba(34, 197, 94, 0.04);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

select.form-control {
  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 fill='%2386efac' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* ============================================================
   SECTIONS & LAYOUT
   ============================================================ */
.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--clr-primary-glow);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--clr-primary);
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--clr-primary);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   GRIDS
   ============================================================ */
.grid {
  display: grid;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.grid-auto {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.rewards-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .rewards-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ============================================================
   BADGE / STATUS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-info {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-muted {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

/* ============================================================
   STATS CARDS
   ============================================================ */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-icon.green {
  background: rgba(34, 197, 94, 0.15);
}

.stat-icon.amber {
  background: rgba(245, 158, 11, 0.15);
}

.stat-icon.blue {
  background: rgba(59, 130, 246, 0.15);
}

.stat-icon.red {
  background: rgba(239, 68, 68, 0.15);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   NOTIFICATION TOAST
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 360px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: slideInRight 0.35s ease;
  box-shadow: var(--shadow-lg);
}

.toast.success {
  border-left: 3px solid var(--clr-primary);
}

.toast.error {
  border-left: 3px solid var(--clr-danger);
}

.toast.warning {
  border-left: 3px solid var(--clr-warning);
}

.toast.info {
  border-left: 3px solid var(--clr-info);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ============================================================
   LOADER
   ============================================================ */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--clr-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
  animation: blobPulse 12s ease-in-out infinite;
}

@keyframes blobPulse {

  0%,
  100% {
    transform: scale(1) translate(0, 0);
  }

  50% {
    transform: scale(1.15) translate(40px, -30px);
  }
}

@keyframes floatImg {
  0%, 100% { transform: translateY(0) rotate(0); box-shadow: 0 30px 60px rgba(0,0,0,0.6); }
  50% { transform: translateY(-15px) rotate(1deg); box-shadow: 0 45px 80px rgba(0,0,0,0.8); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulseStatus {
  0% { transform: scale(1); opacity: 1; box-shadow: 0 0 10px #10b981; }
  50% { transform: scale(1.2); opacity: 0.8; box-shadow: 0 0 20px #10b981; }
  100% { transform: scale(1); opacity: 1; box-shadow: 0 0 10px #10b981; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 68px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(239, 153, 52, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(30, 131, 197, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, #0d0f12 0%, #11151a 50%, #0d0f12 100%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(239, 153, 52, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 153, 52, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 153, 52, 0.08);
  border: 1px solid rgba(239, 153, 52, 0.2);
  color: var(--clr-primary);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: fadeInUp 0.6s ease;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.08;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 540px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.3rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-primary), transparent);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--clr-primary-glow), rgba(34, 197, 94, 0.05));
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   REPORT CARD
   ============================================================ */
.report-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.report-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.report-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-card-hover);
}

.report-card-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--bg-card-hover), rgba(34, 197, 94, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.report-card-body {
  padding: 1.25rem;
}

.report-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.report-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.report-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================================
   ADOPTION CARD
   ============================================================ */
.adoption-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.adoption-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.1);
  transform: translateY(-4px);
}

.adoption-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  position: relative;
}

.adoption-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}

.adoption-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.adoption-card-body .btn {
  margin-top: auto !important;
}

.adoption-card-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.adoption-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.75rem 0;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}

/* ============================================================
   DASHBOARD LAYOUT
   ============================================================ */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  padding-top: 68px;
}

.sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 2rem 1rem;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
}

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

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.sidebar-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
  color: var(--clr-primary);
  background: rgba(34, 197, 94, 0.1);
}

.sidebar-link .icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.dashboard-main {
  padding: 2rem;
}

/* ============================================================
   MAP SECTION
   ============================================================ */
#map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* ============================================================
   FILE UPLOAD
   ============================================================ */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.upload-area:hover,
.upload-area.drag-over {
  border-color: var(--clr-primary);
  background: rgba(34, 197, 94, 0.04);
}

.upload-area input[type="file"] {
  display: none;
}

.upload-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.upload-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.upload-hint {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ============================================================
   PROGRESS / STATUS TRACKER
   ============================================================ */
.status-tracker {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.status-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card-hover);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.status-dot.done {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
}

.status-dot.active {
  background: rgba(34, 197, 94, 0.15);
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

.status-line {
  height: 2px;
  background: var(--border);
  flex: 1;
  margin-top: 15px;
  transition: var(--transition);
}

.status-line.done {
  background: var(--clr-primary);
}

.status-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulse-border {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.3);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease;
}

.animate-pulse-border {
  animation: pulse-border 2s infinite;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  padding: 2rem;
  animation: fadeInUp 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  background: transparent;
  color: var(--text-muted);
  font-size: 1.3rem;
  padding: 0.25rem;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-primary);
}

/* ============================================================
   TABLE
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: var(--bg-card-hover);
  padding: 0.85rem 1.2rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
}

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

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
  }

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

  .hero-stats {
    display: none;
  }

  .section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .dashboard-main {
    padding: 1rem;
  }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--clr-primary);
}

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

.text-white {
  color: var(--text-primary);
}

.text-sm {
  font-size: 0.85rem;
}

.text-lg {
  font-size: 1.1rem;
}

.font-bold {
  font-weight: 700;
}

.font-display {
  font-family: var(--font-display);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

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

.flex-1 {
  flex: 1;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.w-full {
  width: 100%;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.rounded-full {
  border-radius: var(--radius-full);
}

.overflow-hidden {
  overflow: hidden;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.sticky-top {
  position: sticky;
  top: 68px;
}

/* ============================================================
   FOOTER REDESIGN
   ============================================================ */
.footer {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(30, 131, 197, 0.02) 50%, rgba(239, 153, 52, 0.03) 100%);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.25rem;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: rgba(239, 153, 52, 0.05);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.footer::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -50px;
  width: 250px;
  height: 250px;
  background: rgba(30, 131, 197, 0.04);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  margin-bottom: 1rem;
  display: inline-flex;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 1.25rem;
}

.footer-socials {
  display: flex;
  gap: 0.65rem;
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
  background: var(--clr-primary-glow);
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(239, 153, 52, 0.15);
}

.footer-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-link:hover {
  color: var(--clr-primary);
  transform: translateX(4px);
}

.footer-newsletter {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  backdrop-filter: blur(10px);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.newsletter-input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  flex: 1;
  transition: 0.2s;
}

.newsletter-input:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 2px rgba(239, 153, 52, 0.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-link {
  color: var(--text-muted);
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-legal-link:hover {
  color: var(--text-primary);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }
}