/* ==========================================================================
   NovoPet - Modern Frontend Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --np-primary: #4A90D9;
  --np-primary-dark: #3670B3;
  --np-primary-light: #6AAAF0;
  --np-accent: #FF6B6B;
  --np-accent-dark: #E05555;
  --np-success: #27AE60;
  --np-success-light: #2ECC71;
  --np-warning: #F39C12;
  --np-info: #3498DB;
  --np-dark: #2C3E50;
  --np-dark-light: #34495E;
  --np-gray-900: #1a1a2e;
  --np-gray-800: #2d2d44;
  --np-gray-700: #4a4a5a;
  --np-gray-600: #6c6c80;
  --np-gray-500: #8e8ea0;
  --np-gray-400: #b0b0c0;
  --np-gray-300: #d0d0dc;
  --np-gray-200: #e8e8f0;
  --np-gray-100: #f4f4f8;
  --np-gray-50: #fafafc;
  --np-white: #ffffff;
  --np-body-bg: #f8f9fb;
  --np-card-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --np-card-shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --np-transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --np-radius: 12px;
  --np-radius-sm: 8px;
  --np-radius-lg: 16px;
  --np-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --------------------------------------------------------------------------
   Global Overrides
   -------------------------------------------------------------------------- */
body {
  font-family: var(--np-font-family);
  color: var(--np-gray-700);
  background: var(--np-body-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--np-dark);
  font-weight: 700;
}

a {
  color: var(--np-primary);
  transition: color var(--np-transition);
}

a:hover {
  color: var(--np-primary-dark);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.np-navbar {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  padding: 0.75rem 0;
  transition: all var(--np-transition);
  z-index: 1050;
}

.np-navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-light.np-navbar .logo-dark,
.np-navbar.stick .logo-dark {
  display: inline-block !important;
}

.navbar-light.np-navbar .logo-light,
.np-navbar.stick .logo-light {
  display: none !important;
}

.np-navbar .nav-link {
  color: var(--np-gray-700) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  border-radius: var(--np-radius-sm);
  transition: all var(--np-transition);
  position: relative;
}

.np-navbar .nav-link:hover,
.np-navbar .nav-link.active {
  color: var(--np-primary) !important;
  background: rgba(74, 144, 217, 0.08);
}

.np-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--np-primary);
  border-radius: 2px;
}

.np-nav-fav {
  position: relative;
}

.np-nav-fav .fav-count {
  position: absolute;
  top: -2px;
  right: 2px;
  background: var(--np-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-np-primary {
  background: linear-gradient(135deg, var(--np-primary), var(--np-primary-dark));
  color: #fff;
  border: none;
  border-radius: var(--np-radius-sm);
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--np-transition);
  box-shadow: 0 2px 8px rgba(74, 144, 217, 0.3);
}

.btn-np-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(74, 144, 217, 0.4);
  color: #fff;
}

.btn-np-accent {
  background: linear-gradient(135deg, var(--np-accent), var(--np-accent-dark));
  color: #fff;
  border: none;
  border-radius: var(--np-radius-sm);
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  transition: all var(--np-transition);
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.btn-np-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4);
  color: #fff;
}

.btn-np-outline {
  background: transparent;
  color: var(--np-primary);
  border: 2px solid var(--np-primary);
  border-radius: var(--np-radius-sm);
  padding: 0.55rem 1.5rem;
  font-weight: 600;
  transition: all var(--np-transition);
}

.btn-np-outline:hover {
  background: var(--np-primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-np-success {
  background: linear-gradient(135deg, var(--np-success), var(--np-success-light));
  color: #fff;
  border: none;
  border-radius: var(--np-radius-sm);
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  transition: all var(--np-transition);
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.btn-np-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(39, 174, 96, 0.4);
  color: #fff;
}

.btn-np-white {
  background: #fff;
  color: var(--np-dark);
  border: none;
  border-radius: var(--np-radius-sm);
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  transition: all var(--np-transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-np-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-np-lg {
  padding: 0.8rem 2rem;
  font-size: 1.05rem;
}

.btn-np-sm {
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.np-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a3a5c 0%, #2C3E50 50%, #1a3a5c 100%);
}

.np-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

.np-hero .container {
  position: relative;
  z-index: 2;
}

.np-hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

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

.np-hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 2rem;
}

.np-hero-visual {
  position: relative;
}

.np-hero-visual .paw-float {
  position: absolute;
  color: rgba(255,255,255,0.1);
  animation: floatPaw 6s ease-in-out infinite;
}

.np-hero-visual .paw-float:nth-child(1) { top: 10%; left: 10%; font-size: 2rem; animation-delay: 0s; }
.np-hero-visual .paw-float:nth-child(2) { top: 30%; right: 15%; font-size: 3rem; animation-delay: 1s; }
.np-hero-visual .paw-float:nth-child(3) { bottom: 20%; left: 20%; font-size: 1.5rem; animation-delay: 2s; }
.np-hero-visual .paw-float:nth-child(4) { top: 60%; right: 30%; font-size: 2.5rem; animation-delay: 3s; }

@keyframes floatPaw {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
  50% { transform: translateY(-20px) rotate(10deg); opacity: 0.3; }
}

/* --------------------------------------------------------------------------
   Search Bar
   -------------------------------------------------------------------------- */
.np-search-bar {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border-radius: var(--np-radius-lg);
  padding: 1.25rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(255,255,255,0.15);
}

.np-search-bar select,
.np-search-bar input {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: var(--np-radius-sm);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  transition: all var(--np-transition);
}

.np-search-bar select:focus,
.np-search-bar input:focus {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
  outline: none;
}

.np-search-bar select option {
  background: var(--np-dark);
  color: #fff;
}

.np-search-bar ::placeholder {
  color: rgba(255,255,255,0.6);
}

/* --------------------------------------------------------------------------
   Stats Counter
   -------------------------------------------------------------------------- */
.np-stats {
  background: var(--np-white);
  padding: 4rem 0;
  border-bottom: 1px solid var(--np-gray-200);
}

.np-stat-item {
  text-align: center;
  padding: 1.5rem;
}

.np-stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.np-stat-icon.dogs { background: rgba(74, 144, 217, 0.12); color: var(--np-primary); }
.np-stat-icon.cats { background: rgba(255, 107, 107, 0.12); color: var(--np-accent); }
.np-stat-icon.shelters { background: rgba(39, 174, 96, 0.12); color: var(--np-success); }
.np-stat-icon.adoptions { background: rgba(243, 156, 18, 0.12); color: var(--np-warning); }

.np-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--np-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.np-stat-label {
  font-size: 0.9rem;
  color: var(--np-gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */
.np-section {
  padding: 5rem 0;
}

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

.np-section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.np-section-header p {
  font-size: 1.1rem;
  color: var(--np-gray-500);
  max-width: 600px;
  margin: 0 auto;
}

.np-section-header .np-divider {
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, var(--np-primary), var(--np-accent));
  border-radius: 3px;
  margin: 1rem auto;
}

/* --------------------------------------------------------------------------
   Cards - Animals
   -------------------------------------------------------------------------- */
.np-animal-card {
  background: var(--np-white);
  border-radius: var(--np-radius);
  overflow: hidden;
  box-shadow: var(--np-card-shadow);
  transition: all var(--np-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.np-animal-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--np-card-shadow-hover);
}

.np-animal-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.np-animal-card .card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.np-animal-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.np-animal-card .card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

.np-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
}

.np-badge-species {
  background: rgba(74, 144, 217, 0.9);
  color: #fff;
}

.np-badge-species.female {
  background: rgba(255, 107, 107, 0.9);
}

.np-badge-breed {
  background: rgba(39, 174, 96, 0.85);
  color: #fff;
}

.np-animal-card .card-fav {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--np-transition);
  color: var(--np-gray-400);
  font-size: 1rem;
  z-index: 2;
}

.np-animal-card .card-fav:hover,
.np-animal-card .card-fav.active {
  background: var(--np-accent);
  color: #fff;
  transform: scale(1.1);
}

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

.np-animal-card .card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--np-dark);
  margin-bottom: 0.3rem;
}

.np-animal-card .card-age {
  font-size: 0.85rem;
  color: var(--np-gray-500);
  margin-bottom: 0.5rem;
}

.np-animal-card .card-desc {
  font-size: 0.9rem;
  color: var(--np-gray-600);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.np-animal-card .card-footer-custom {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--np-gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.np-animal-card .card-entity {
  font-size: 0.8rem;
  color: var(--np-gray-500);
}

.np-animal-card .card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--np-primary);
}

/* --------------------------------------------------------------------------
   Cards - Entities
   -------------------------------------------------------------------------- */
.np-entity-card {
  background: var(--np-white);
  border-radius: var(--np-radius);
  overflow: hidden;
  box-shadow: var(--np-card-shadow);
  transition: all var(--np-transition);
  height: 100%;
}

.np-entity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--np-card-shadow-hover);
}

.np-entity-card .entity-img {
  height: 200px;
  overflow: hidden;
}

.np-entity-card .entity-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.np-entity-card:hover .entity-img img {
  transform: scale(1.05);
}

.np-entity-card .entity-body {
  padding: 1.25rem;
}

.np-entity-card .entity-type {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(74, 144, 217, 0.1);
  color: var(--np-primary);
  margin-bottom: 0.5rem;
}

.np-entity-card .entity-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--np-dark);
  margin-bottom: 0.5rem;
}

.np-entity-card .entity-location {
  font-size: 0.85rem;
  color: var(--np-gray-500);
  margin-bottom: 0.75rem;
}

.np-entity-card .entity-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--np-success);
  background: rgba(39, 174, 96, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
}

/* --------------------------------------------------------------------------
   How It Works
   -------------------------------------------------------------------------- */
.np-how-it-works {
  background: var(--np-gray-50);
}

.np-step {
  text-align: center;
  padding: 2rem 1.5rem;
}

.np-step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--np-primary), var(--np-primary-dark));
  box-shadow: 0 4px 15px rgba(74, 144, 217, 0.3);
}

.np-step h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.np-step p {
  font-size: 0.9rem;
  color: var(--np-gray-600);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Features Section
   -------------------------------------------------------------------------- */
.np-feature-card {
  background: var(--np-white);
  border-radius: var(--np-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--np-card-shadow);
  transition: all var(--np-transition);
  height: 100%;
  border: 1px solid var(--np-gray-200);
}

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

.np-feature-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--np-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
}

.np-feature-card h5 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.np-feature-card p {
  font-size: 0.9rem;
  color: var(--np-gray-600);
  line-height: 1.6;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.np-cta {
  background: linear-gradient(135deg, var(--np-primary) 0%, var(--np-dark) 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.np-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.np-cta h2 {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.np-cta p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.np-footer {
  background: var(--np-gray-900);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.np-footer h6 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.np-footer a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  display: block;
  padding: 0.25rem 0;
  transition: all var(--np-transition);
}

.np-footer a:hover {
  color: #fff;
  padding-left: 4px;
}

.np-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.np-pagination .page-item .page-link {
  border: none;
  border-radius: var(--np-radius-sm);
  margin: 0 3px;
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--np-gray-600);
  background: var(--np-white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: all var(--np-transition);
}

.np-pagination .page-item .page-link:hover {
  background: var(--np-primary);
  color: #fff;
  transform: translateY(-1px);
}

.np-pagination .page-item.active .page-link {
  background: var(--np-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(74, 144, 217, 0.3);
}

.np-pagination .page-item.disabled .page-link {
  opacity: 0.5;
  background: var(--np-gray-100);
}

/* --------------------------------------------------------------------------
   Animal Detail Page
   -------------------------------------------------------------------------- */
.np-animal-detail-hero {
  padding: 6rem 0 3rem;
  background: linear-gradient(135deg, #f8f9fb 0%, #e8ecf4 100%);
}

.np-animal-detail-img {
  border-radius: var(--np-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.np-animal-detail-img img {
  width: 100%;
  height: auto;
  display: block;
}

.np-detail-info {
  background: var(--np-white);
  border-radius: var(--np-radius);
  padding: 2rem;
  box-shadow: var(--np-card-shadow);
}

.np-detail-info .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--np-gray-100);
}

.np-detail-info .info-row:last-child {
  border-bottom: none;
}

.np-detail-info .info-label {
  font-weight: 600;
  color: var(--np-gray-600);
  font-size: 0.9rem;
}

.np-detail-info .info-value {
  font-weight: 500;
  color: var(--np-dark);
  font-size: 0.9rem;
}

.np-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--np-gray-100);
  color: var(--np-gray-600);
  font-size: 1rem;
  transition: all var(--np-transition);
  border: none;
  margin: 0 4px;
}

.np-share-btn:hover {
  color: #fff;
  transform: translateY(-2px);
}

.np-share-btn.facebook:hover { background: #3b5998; }
.np-share-btn.whatsapp:hover { background: #25D366; }
.np-share-btn.email:hover { background: var(--np-primary); }

/* --------------------------------------------------------------------------
   Entity Detail
   -------------------------------------------------------------------------- */
.np-entity-detail-header {
  padding: 6rem 0 3rem;
  background: linear-gradient(135deg, #f8f9fb 0%, #e8ecf4 100%);
  text-align: center;
}

.np-donation-card {
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.08), rgba(46, 204, 113, 0.05));
  border: 1px solid rgba(39, 174, 96, 0.2);
  border-radius: var(--np-radius);
  padding: 1.5rem 2rem;
}

/* --------------------------------------------------------------------------
   Favorites Page
   -------------------------------------------------------------------------- */
.np-favorites-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.np-favorites-empty .empty-icon {
  font-size: 4rem;
  color: var(--np-gray-300);
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   Search / Filter Bar (inner pages)
   -------------------------------------------------------------------------- */
.np-filter-bar {
  background: var(--np-white);
  border-radius: var(--np-radius);
  padding: 1.5rem;
  box-shadow: var(--np-card-shadow);
  margin-bottom: 2rem;
}

.np-filter-bar select,
.np-filter-bar input {
  border: 1px solid var(--np-gray-300);
  border-radius: var(--np-radius-sm);
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  transition: all var(--np-transition);
}

.np-filter-bar select:focus,
.np-filter-bar input:focus {
  border-color: var(--np-primary);
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.12);
  outline: none;
}

/* --------------------------------------------------------------------------
   Page Header (inner pages)
   -------------------------------------------------------------------------- */
.np-page-header {
  padding: 6rem 0 3rem;
  text-align: center;
}

.np-page-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--np-dark);
  margin-bottom: 0.75rem;
}

.np-page-header p {
  font-size: 1.1rem;
  color: var(--np-gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Toast / Alerts
   -------------------------------------------------------------------------- */
.np-alert {
  border: none;
  border-radius: var(--np-radius-sm);
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.np-alert-success {
  background: rgba(39, 174, 96, 0.1);
  color: #1e8449;
  border-left: 4px solid var(--np-success);
}

.np-alert-warning {
  background: rgba(243, 156, 18, 0.1);
  color: #b7770d;
  border-left: 4px solid var(--np-warning);
}

.np-alert-info {
  background: rgba(52, 152, 219, 0.1);
  color: #2471a3;
  border-left: 4px solid var(--np-info);
}

.np-alert-danger {
  background: rgba(255, 107, 107, 0.1);
  color: #c0392b;
  border-left: 4px solid var(--np-accent);
}

/* --------------------------------------------------------------------------
   Modal Overrides
   -------------------------------------------------------------------------- */
.np-modal .modal-content {
  border: none;
  border-radius: var(--np-radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.np-modal .modal-header {
  border-bottom: 1px solid var(--np-gray-200);
  padding: 1.5rem 2rem;
}

.np-modal .modal-body {
  padding: 2rem;
}

.np-modal .modal-footer {
  border-top: 1px solid var(--np-gray-200);
  padding: 1rem 2rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .np-hero-title { font-size: 2.4rem; }
  .np-hero { min-height: 70vh; }
  .np-stat-number { font-size: 2rem; }
}

@media (max-width: 767px) {
  .np-hero-title { font-size: 1.8rem; }
  .np-hero { min-height: auto; padding: 5rem 0 3rem; }
  .np-hero-subtitle { font-size: 1rem; }
  .np-section { padding: 3rem 0; }
  .np-section-header h2 { font-size: 1.6rem; }
  .np-stat-number { font-size: 1.75rem; }
  .np-search-bar { padding: 1rem; }
}

@media (max-width: 575px) {
  .np-hero-title { font-size: 1.5rem; }
  .np-search-bar select,
  .np-search-bar input { font-size: 0.85rem; padding: 0.5rem 0.75rem; }
}

/* --------------------------------------------------------------------------
   Backoffice Overrides
   -------------------------------------------------------------------------- */
.bo-wrapper {
  background: var(--np-body-bg);
}

.bo-kpi-card {
  background: var(--np-white);
  border-radius: var(--np-radius);
  padding: 1.5rem;
  box-shadow: var(--np-card-shadow);
  transition: all var(--np-transition);
  border: 1px solid var(--np-gray-200);
}

.bo-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--np-card-shadow-hover);
}

.bo-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--np-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.bo-kpi-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--np-dark);
  line-height: 1;
}

.bo-kpi-label {
  font-size: 0.8rem;
  color: var(--np-gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bo-panel {
  background: var(--np-white);
  border-radius: var(--np-radius);
  box-shadow: var(--np-card-shadow);
  border: 1px solid var(--np-gray-200);
  overflow: hidden;
}

.bo-panel-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--np-gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bo-panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--np-dark);
  margin: 0;
}

.bo-panel-body {
  padding: 1.25rem 1.5rem;
}

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

.bo-table th {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--np-gray-500);
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--np-gray-200);
}

.bo-table td {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--np-gray-100);
  color: var(--np-gray-700);
}

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

.bo-table tr:hover td {
  background: var(--np-gray-50);
}

.bo-quick-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.bo-quick-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--np-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--np-transition);
  border: 1px solid var(--np-gray-200);
  background: var(--np-white);
  color: var(--np-gray-700);
  text-decoration: none;
}

.bo-quick-action:hover {
  border-color: var(--np-primary);
  color: var(--np-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-decoration: none;
}

.bo-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.bo-status-badge.quarantine { background: rgba(255,107,107,0.1); color: #e74c3c; }
.bo-status-badge.isolation { background: rgba(243,156,18,0.1); color: #f39c12; }
.bo-status-badge.internment { background: rgba(52,152,219,0.1); color: #3498db; }
.bo-status-badge.adopted { background: rgba(39,174,96,0.1); color: #27ae60; }
.bo-status-badge.active { background: rgba(74,144,217,0.1); color: #4a90d9; }

/* Sidebar modernization */
.px-nav {
  background: var(--np-gray-900) !important;
}

.px-nav .px-nav-item > a {
  color: rgba(255,255,255,0.7) !important;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 6px;
  margin: 2px 8px;
  transition: all var(--np-transition);
}

.px-nav .px-nav-item > a:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.08) !important;
}

.px-nav .px-nav-item.active > a {
  color: #fff !important;
  background: var(--np-primary) !important;
}

.px-nav .px-nav-icon {
  opacity: 0.8;
}

.px-nav .label {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

/* Navbar top bar */
.px-navbar {
  background: var(--np-white) !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
  border-bottom: 1px solid var(--np-gray-200) !important;
}

/* Form improvements */
.px-content .form-control {
  border-radius: var(--np-radius-sm);
  border-color: var(--np-gray-300);
  padding: 0.55rem 1rem;
  transition: all var(--np-transition);
}

.px-content .form-control:focus {
  border-color: var(--np-primary);
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.12);
}

/* Chart containers */
.bo-chart-container {
  position: relative;
  padding: 1rem;
}

/* Welcome banner */
.bo-welcome {
  background: linear-gradient(135deg, var(--np-primary), var(--np-dark));
  border-radius: var(--np-radius);
  padding: 2rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

.bo-welcome h3 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bo-welcome p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 0;
}

/* Alert bar for today's actions */
.bo-alert-bar {
  background: rgba(243, 156, 18, 0.08);
  border: 1px solid rgba(243, 156, 18, 0.2);
  border-radius: var(--np-radius);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bo-alert-bar .alert-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(243, 156, 18, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--np-warning);
  font-size: 1.1rem;
  flex-shrink: 0;
}

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