@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap");

:root {
  /* Updated design tokens to match the modern design brief */
  --background: #ffffff;
  --foreground: #475569;
  --card: #ecfeff;
  --card-foreground: #164e63;
  --popover: #ffffff;
  --popover-foreground: #475569;
  --primary: #164e63;
  --primary-foreground: #ffffff;
  --secondary: #f97316;
  --secondary-foreground: #ffffff;
  --muted: #fffbeb;
  --muted-foreground: #4b5563;
  --accent: #f97316;
  --accent-foreground: #ffffff;
  --destructive: #ea580c;
  --destructive-foreground: #ffffff;
  --border: #d1d5db;
  --input: #ffffff;
  --ring: rgba(22, 78, 99, 0.5);
  --chart-1: #a5b4fc;
  --chart-2: #60a5fa;
  --chart-3: #34d399;
  --chart-4: #fbbf24;
  --chart-5: #f87171;
  --radius: 0.5rem;
  --sidebar: #ffffff;
  --sidebar-foreground: #475569;
  --sidebar-primary: #f97316;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #164e63;
  --sidebar-accent-foreground: #ffffff;
  --sidebar-border: #d1d5db;
  --sidebar-ring: rgba(22, 78, 99, 0.5);
}

/* Applied DM Sans font family and modern styling */
* {
  font-family: "DM Sans", sans-serif;
  box-sizing: border-box;
}

body {
  /* Replaced animated gradient with clean modern background */
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Modern header design with professional styling */
.header-glass {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
}

/* Updated button styles to use design tokens */
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-primary:hover {
  background: #0f3a47;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 78, 99, 0.3);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Modern card design with subtle shadows */
.modern-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.modern-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* Enhanced search bar styling */
.search-container {
  position: relative;
  max-width: 400px;
}

.search-bar {
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
  width: 100%;
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.search-results {
  background: var(--popover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  max-height: 300px;
  overflow-y: auto;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  margin-top: 0.25rem;
}

/* Modern typography scale */
h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--foreground);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

/* Modern form inputs */
.form-input {
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

/* Status badges with modern styling */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-error {
  background: #fee2e2;
  color: #991b1b;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

/* Modern table styling */
.modern-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--background);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.modern-table th {
  background: var(--muted);
  color: var(--muted-foreground);
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.modern-table td {
  padding: 1rem;
  border-top: 1px solid var(--border);
  color: var(--foreground);
}

.modern-table tbody tr:hover {
  background: var(--muted);
}

/* Responsive design improvements */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .header-glass {
    padding: 0.75rem 1rem;
  }

  .search-container {
    max-width: 100%;
    margin: 0.5rem 0;
  }

  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.25rem;
  }
  h4 {
    font-size: 1.125rem;
  }

  .btn-primary,
  .btn-secondary {
    min-height: 44px;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
  }

  .modern-card {
    margin: 0.5rem 0;
    padding: 1rem;
  }

  .modern-table {
    font-size: 0.875rem;
  }

  .modern-table th,
  .modern-table td {
    padding: 0.75rem 0.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .search-container {
    max-width: 300px;
  }
}

@media (min-width: 1025px) {
  .search-container {
    max-width: 400px;
  }
}

/* Modern utility classes */
.text-muted {
  color: var(--muted-foreground);
}

.bg-muted {
  background: var(--muted);
}

.border-default {
  border-color: var(--border);
}

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

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* WhatsApp button with modern styling */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: all 0.2s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 90px;
    right: 15px;
    width: 48px;
    height: 48px;
  }
}
