/* ==========================================================================
   miniERP - Design System
   Modular ERP for small businesses
   ========================================================================== */

/* --- CSS Custom Properties (V1 Palette) --- */
:root {
  /* Layout */
  --vs-sidebar-width: 250px;
  --vs-sidebar-collapsed: 68px;
  --vs-topbar-height: 60px;

  /* V1 Color Palette */
  --vs-primary: #4e73df;
  --vs-primary-dark: #3a56b0;
  --vs-primary-light: #7c9af5;
  --vs-teal: #4a90a4;
  --vs-teal-light: #6bb3c9;
  --vs-success: #1cc88a;
  --vs-success-light: #d4edda;
  --vs-warning: #f6c23e;
  --vs-warning-light: #fff3cd;
  --vs-danger: #e74a3b;
  --vs-danger-light: #f8d7da;
  --vs-info: #36b9cc;

  /* Neutrals */
  --vs-dark: #2d3748;
  --vs-dark-deep: #1a202c;
  --vs-gray-100: #f8f9fc;
  --vs-gray-200: #eaecf4;
  --vs-gray-300: #d1d5db;
  --vs-gray-400: #9ca3af;
  --vs-gray-500: #6b7280;
  --vs-gray-600: #4b5563;
  --vs-gray-700: #374151;
  --vs-text: #2d3748;
  --vs-text-muted: #6b7280;

  /* Surfaces */
  --vs-bg: #f8f9fc;
  --vs-card-bg: #ffffff;
  --vs-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --vs-card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
  --vs-card-radius: 12px;
  --vs-input-radius: 8px;

  /* Transitions */
  --vs-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --vs-transition-fast: 0.15s ease;
  --vs-transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode overrides */
[data-bs-theme="dark"] {
  --vs-bg: #1a1d23;
  --vs-card-bg: #22252b;
  --vs-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  --vs-card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.35);
  --vs-text: #e2e8f0;
  --vs-text-muted: #a0aec0;
  --vs-gray-100: #2d3748;
  --vs-gray-200: #374151;
}


/* ==========================================================================
   Global / Base
   ========================================================================== */

body {
  background: var(--vs-bg);
  color: var(--vs-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: background var(--vs-transition-slow), color var(--vs-transition-slow);
}

*,
*::before,
*::after {
  transition-property: none; /* prevent accidental transitions - we add them explicitly */
}

::selection {
  background: var(--vs-primary-light);
  color: #fff;
}


/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes pulse-alert {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes ring-bell {
  0%   { transform: rotate(0); }
  10%  { transform: rotate(15deg); }
  20%  { transform: rotate(-15deg); }
  30%  { transform: rotate(10deg); }
  40%  { transform: rotate(-10deg); }
  50%  { transform: rotate(0); }
  100% { transform: rotate(0); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in-right {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes slide-out-right {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(100%); opacity: 0; }
}

@keyframes scale-in {
  from { transform: translate(-50%, -50%) scale(0.9); opacity: 0; }
  to   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes progress-shrink {
  from { width: 100%; }
  to   { width: 0%; }
}

@keyframes skeleton-pulse {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes flash-green {
  0%   { background-color: var(--vs-success-light); }
  100% { background-color: transparent; }
}

@keyframes count-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}


/* ==========================================================================
   Sidebar
   ========================================================================== */

.vs-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--vs-sidebar-width);
  height: 100vh;
  background: linear-gradient(180deg, #2d3748, #1a202c);
  display: flex;
  flex-direction: column;
  transition: width var(--vs-transition);
  z-index: 1040;
  overflow-x: hidden;
  overflow-y: auto;
}

.vs-sidebar.collapsed {
  width: var(--vs-sidebar-collapsed);
}

/* Brand */
.vs-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  min-height: var(--vs-topbar-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.vs-sidebar__logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  transition: transform var(--vs-transition);
}

.vs-sidebar__brand:hover .vs-sidebar__logo {
  transform: scale(1.1);
}

.vs-sidebar__brand-text {
  font-weight: 800;
  font-size: 1.2rem;
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

/* Toggle button */
.vs-sidebar__toggle {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
  transition: all var(--vs-transition-fast);
}

.vs-sidebar__toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.vs-sidebar__toggle i {
  transition: transform var(--vs-transition);
}

.vs-sidebar.collapsed .vs-sidebar__toggle i {
  transform: rotate(180deg);
}

/* Collapsed state: hide text elements */
.vs-sidebar.collapsed .vs-sidebar__brand-text,
.vs-sidebar.collapsed .vs-sidebar__brand-sub,
.vs-sidebar.collapsed .vs-sidebar__link span,
.vs-sidebar.collapsed .vs-sidebar__section-title,
.vs-sidebar.collapsed .vs-sidebar__section-label,
.vs-sidebar.collapsed .vs-sidebar__footer .overflow-hidden {
  display: none;
}

.vs-sidebar.collapsed .vs-sidebar__brand {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.vs-sidebar.collapsed .vs-sidebar__toggle {
  position: absolute;
  right: -14px;
  top: 22px;
  width: 28px;
  height: 28px;
  background: var(--vs-sidebar-bg, #1e293b);
  border-radius: 50%;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.vs-sidebar.collapsed .vs-sidebar__link {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.vs-sidebar.collapsed .vs-sidebar__footer .d-flex {
  justify-content: center;
}

.vs-sidebar.collapsed .vs-sidebar__nav {
  padding-left: 6px;
  padding-right: 6px;
}

/* Nav */
.vs-sidebar__nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
}

.vs-sidebar__section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.35);
  padding: 16px 14px 6px;
  font-weight: 600;
}

.vs-sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--vs-transition-fast);
  white-space: nowrap;
  margin-bottom: 2px;
  position: relative;
  border-left: 3px solid transparent;
}

.vs-sidebar__link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-left-color: rgba(255, 255, 255, 0.3);
}

.vs-sidebar__link.active {
  color: #ffffff;
  background: rgba(78, 115, 223, 0.25);
  border-left-color: var(--vs-primary-light);
  font-weight: 600;
}

.vs-sidebar__link i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity var(--vs-transition-fast);
}

.vs-sidebar__link:hover i,
.vs-sidebar__link.active i {
  opacity: 1;
}

/* Footer */
.vs-sidebar__footer {
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}


/* ==========================================================================
   Main Content Area
   ========================================================================== */

.vs-main {
  margin-left: var(--vs-sidebar-width);
  min-height: 100vh;
  transition: margin-left var(--vs-transition);
  background: var(--vs-bg);
}

.vs-sidebar.collapsed ~ .vs-main {
  margin-left: var(--vs-sidebar-collapsed);
}

.vs-content {
  padding: 24px 28px;
  animation: fade-in-up 0.35s ease;
}


/* ==========================================================================
   Topbar
   ========================================================================== */

.vs-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--vs-topbar-height);
  padding: 0 24px;
  background: var(--vs-card-bg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: background var(--vs-transition-slow), box-shadow var(--vs-transition);
}

.vs-topbar__toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--vs-text);
  padding: 4px 8px;
  border-radius: 6px;
  transition: background var(--vs-transition-fast);
}

.vs-topbar__toggle:hover {
  background: var(--vs-gray-200);
}

.vs-topbar__breadcrumb {
  font-size: 0.9rem;
  color: var(--vs-text-muted);
}

.vs-topbar__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vs-topbar__btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--vs-text-muted);
  padding: 8px;
  border-radius: 50%;
  transition: all var(--vs-transition-fast);
  position: relative;
}

.vs-topbar__btn:hover {
  background: var(--vs-gray-200);
  color: var(--vs-primary);
}

.vs-topbar__btn .vs-notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--vs-danger);
  border-radius: 50%;
  border: 2px solid var(--vs-card-bg);
}

.vs-topbar__user {
  background: none;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--vs-text);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 24px;
  transition: background var(--vs-transition-fast);
}

.vs-topbar__user:hover {
  background: var(--vs-gray-200);
}

.vs-topbar__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vs-primary), var(--vs-primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.vs-topbar__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}


/* ==========================================================================
   Cards (Generic)
   ========================================================================== */

.vs-card {
  background: var(--vs-card-bg);
  border-radius: var(--vs-card-radius);
  box-shadow: var(--vs-card-shadow);
  border: 1px solid transparent;
  padding: 20px;
  transition: transform var(--vs-transition), box-shadow var(--vs-transition);
  animation: fade-in-up 0.4s ease both;
}

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

/* Color accent variants */
.vs-card--success {
  border-left: 4px solid var(--vs-success);
}

.vs-card--warning {
  border-left: 4px solid var(--vs-warning);
}

.vs-card--danger {
  border-left: 4px solid var(--vs-danger);
}

.vs-card--primary {
  border-left: 4px solid var(--vs-primary);
}

.vs-card--teal {
  border-left: 4px solid var(--vs-teal);
}

.vs-card--info {
  border-left: 4px solid var(--vs-info);
}

/* Card header with gradient */
.vs-card__header {
  background: linear-gradient(135deg, var(--vs-primary), var(--vs-primary-dark));
  color: #fff;
  padding: 14px 20px;
  margin: -20px -20px 16px -20px;
  border-radius: var(--vs-card-radius) var(--vs-card-radius) 0 0;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vs-card__header--teal {
  background: linear-gradient(135deg, var(--vs-teal), #3a7a8f);
}

.vs-card__header--success {
  background: linear-gradient(135deg, var(--vs-success), #17a673);
}

.vs-card__header--warning {
  background: linear-gradient(135deg, var(--vs-warning), #d4a012);
  color: var(--vs-dark);
}

.vs-card__header--danger {
  background: linear-gradient(135deg, var(--vs-danger), #c0392b);
}


/* ==========================================================================
   Pet Cards
   ========================================================================== */

.vs-pet-card {
  background: var(--vs-card-bg);
  border-radius: var(--vs-card-radius);
  box-shadow: var(--vs-card-shadow);
  padding: 20px;
  text-align: center;
  transition: all var(--vs-transition);
  animation: fade-in-up 0.4s ease both;
  cursor: pointer;
  text-decoration: none;
  color: var(--vs-text);
  display: block;
  position: relative;
  overflow: hidden;
}

.vs-pet-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--vs-card-shadow-hover);
  color: var(--vs-text);
}

.vs-pet-card__photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  border: 3px solid var(--vs-gray-200);
  transition: border-color var(--vs-transition), transform var(--vs-transition);
}

.vs-pet-card:hover .vs-pet-card__photo {
  border-color: var(--vs-primary);
  transform: scale(1.05);
}

/* Paw print fallback when no photo */
.vs-pet-card__photo-fallback {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--vs-gray-200), var(--vs-gray-100));
  border: 3px solid var(--vs-gray-200);
  transition: all var(--vs-transition);
}

.vs-pet-card__photo-fallback i {
  font-size: 2rem;
  color: var(--vs-gray-400);
  transition: color var(--vs-transition);
}

.vs-pet-card:hover .vs-pet-card__photo-fallback {
  border-color: var(--vs-primary);
  background: linear-gradient(135deg, rgba(78, 115, 223, 0.1), rgba(78, 115, 223, 0.05));
}

.vs-pet-card:hover .vs-pet-card__photo-fallback i {
  color: var(--vs-primary);
}

.vs-pet-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--vs-text);
}

.vs-pet-card__breed {
  font-size: 0.82rem;
  color: var(--vs-text-muted);
  margin-bottom: 8px;
}

.vs-pet-card__species-icon {
  font-size: 0.85rem;
  margin-right: 4px;
  opacity: 0.7;
}

/* Pet card status indicator dot */
.vs-pet-card__status {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.vs-pet-card__status--healthy {
  background: var(--vs-success);
  box-shadow: 0 0 6px rgba(28, 200, 138, 0.4);
}

.vs-pet-card__status--warning {
  background: var(--vs-warning);
  box-shadow: 0 0 6px rgba(246, 194, 62, 0.4);
}

.vs-pet-card__status--critical {
  background: var(--vs-danger);
  box-shadow: 0 0 6px rgba(231, 74, 59, 0.4);
  animation: pulse-alert 1.5s ease-in-out infinite;
}


/* ==========================================================================
   Status Badges
   ========================================================================== */

.vs-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  line-height: 1.4;
  transition: transform var(--vs-transition-fast);
}

.vs-badge:hover {
  transform: scale(1.05);
}

/* Applied / Healthy / Complete */
.vs-badge--applied,
.vs-badge--healthy,
.vs-badge--complete {
  background: var(--vs-success);
  color: #fff;
}

/* Pending / Scheduled */
.vs-badge--pending,
.vs-badge--scheduled {
  background: var(--vs-warning);
  color: var(--vs-dark);
}

/* Overdue / Critical - PULSING */
.vs-badge--overdue,
.vs-badge--critical {
  background: var(--vs-danger);
  color: #fff;
  animation: pulse-alert 1.5s ease-in-out infinite;
}

/* Cancelled / Inactive */
.vs-badge--cancelled,
.vs-badge--inactive {
  background: var(--vs-gray-400);
  color: #fff;
}

/* In Progress */
.vs-badge--in-progress {
  background: var(--vs-primary);
  color: #fff;
}

/* Hospitalized */
.vs-badge--hospitalized {
  background: var(--vs-teal);
  color: #fff;
}

/* Outline variants for softer look */
.vs-badge--outline-success {
  background: transparent;
  color: var(--vs-success);
  border: 2px solid var(--vs-success);
}

.vs-badge--outline-warning {
  background: transparent;
  color: #b8860b;
  border: 2px solid var(--vs-warning);
}

.vs-badge--outline-danger {
  background: transparent;
  color: var(--vs-danger);
  border: 2px solid var(--vs-danger);
}


/* ==========================================================================
   Stat Cards
   ========================================================================== */

.vs-stat {
  background: var(--vs-card-bg);
  border-radius: var(--vs-card-radius);
  box-shadow: var(--vs-card-shadow);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid var(--vs-primary);
  transition: all var(--vs-transition);
  animation: fade-in-up 0.4s ease both;
}

.vs-stat:hover {
  box-shadow: var(--vs-card-shadow-hover);
  transform: translateY(-2px);
}

.vs-stat__content {
  flex: 1;
}

.vs-stat__number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--vs-text);
  line-height: 1.1;
  margin-bottom: 2px;
}

.vs-stat__label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--vs-text-muted);
}

.vs-stat__icon {
  font-size: 2.2rem;
  color: var(--vs-gray-300);
  opacity: 0.5;
  transition: opacity var(--vs-transition);
}

.vs-stat:hover .vs-stat__icon {
  opacity: 0.8;
}

/* Stat color variants */
.vs-stat--primary { border-left-color: var(--vs-primary); }
.vs-stat--primary .vs-stat__number { color: var(--vs-primary); }

.vs-stat--success { border-left-color: var(--vs-success); }
.vs-stat--success .vs-stat__number { color: var(--vs-success); }

.vs-stat--warning { border-left-color: var(--vs-warning); }
.vs-stat--warning .vs-stat__number { color: var(--vs-warning); }

.vs-stat--danger { border-left-color: var(--vs-danger); }
.vs-stat--danger .vs-stat__number { color: var(--vs-danger); }

.vs-stat--info { border-left-color: var(--vs-info); }
.vs-stat--info .vs-stat__number { color: var(--vs-info); }

.vs-stat--teal { border-left-color: var(--vs-teal); }
.vs-stat--teal .vs-stat__number { color: var(--vs-teal); }


/* ==========================================================================
   Critical Alert Banner
   ========================================================================== */

.vs-alert-critical {
  background: linear-gradient(135deg, var(--vs-danger), #c0392b);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--vs-card-radius);
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  animation: pulse-alert 2s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(231, 74, 59, 0.3);
  margin-bottom: 20px;
}

.vs-alert-critical__icon {
  font-size: 1.6rem;
  animation: ring-bell 2s ease-in-out infinite;
  flex-shrink: 0;
}

.vs-alert-critical__text {
  flex: 1;
  font-size: 0.95rem;
}

.vs-alert-critical__text strong {
  font-weight: 700;
}

.vs-alert-critical__action {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--vs-transition-fast);
  white-space: nowrap;
}

.vs-alert-critical__action:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #fff;
}


/* ==========================================================================
   Search Input
   ========================================================================== */

.vs-search {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.vs-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--vs-gray-400);
  font-size: 1.1rem;
  pointer-events: none;
  transition: color var(--vs-transition-fast);
}

.vs-search__input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 2px solid var(--vs-gray-200);
  border-radius: 50px;
  font-size: 0.95rem;
  background: var(--vs-card-bg);
  color: var(--vs-text);
  transition: all var(--vs-transition);
  outline: none;
}

.vs-search__input::placeholder {
  color: var(--vs-gray-400);
}

.vs-search__input:focus {
  border-color: var(--vs-primary);
  box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.15);
}

.vs-search__input:focus ~ .vs-search__icon {
  color: var(--vs-primary);
}

/* Small search variant */
.vs-search--sm .vs-search__input {
  padding: 8px 12px 8px 38px;
  font-size: 0.85rem;
}

.vs-search--sm .vs-search__icon {
  left: 14px;
  font-size: 0.95rem;
}


/* ==========================================================================
   Tables (when needed)
   ========================================================================== */

.vs-table-container {
  background: var(--vs-card-bg);
  border-radius: var(--vs-card-radius);
  box-shadow: var(--vs-card-shadow);
  overflow: hidden;
  animation: fade-in-up 0.4s ease both;
}

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

.vs-table thead {
  background: linear-gradient(135deg, var(--vs-gray-100), var(--vs-gray-200));
}

[data-bs-theme="dark"] .vs-table thead {
  background: linear-gradient(135deg, #2d3748, #374151);
}

.vs-table thead th {
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--vs-text-muted);
  border-bottom: 2px solid var(--vs-gray-200);
  text-align: left;
}

.vs-table tbody tr {
  transition: background var(--vs-transition-fast);
}

.vs-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.015);
}

[data-bs-theme="dark"] .vs-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.vs-table tbody tr:hover {
  background: rgba(78, 115, 223, 0.04);
}

.vs-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--vs-gray-200);
  vertical-align: middle;
}

[data-bs-theme="dark"] .vs-table tbody td {
  border-bottom-color: var(--vs-gray-200);
}

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


/* ==========================================================================
   Forms
   ========================================================================== */

.vs-form-group {
  margin-bottom: 18px;
}

.vs-form-group label,
.vs-form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--vs-text);
  margin-bottom: 6px;
}

.vs-form-input,
.vs-form-select,
.vs-form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--vs-gray-200);
  border-radius: var(--vs-input-radius);
  font-size: 0.9rem;
  background: var(--vs-card-bg);
  color: var(--vs-text);
  transition: all var(--vs-transition);
  outline: none;
}

.vs-form-input:focus,
.vs-form-select:focus,
.vs-form-textarea:focus {
  border-color: var(--vs-primary);
  box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.12);
}

.vs-form-input.is-invalid,
.vs-form-select.is-invalid,
.vs-form-textarea.is-invalid {
  border-color: var(--vs-danger);
  box-shadow: 0 0 0 3px rgba(231, 74, 59, 0.1);
}

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

/* Enhance Bootstrap form-control to match */
.form-control,
.form-select {
  border-radius: var(--vs-input-radius);
  border: 2px solid var(--vs-gray-200);
  padding: 10px 14px;
  transition: border-color var(--vs-transition), box-shadow var(--vs-transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--vs-primary);
  box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.12);
}


/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.vs-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.vs-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--vs-card-bg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  animation: slide-in-right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 300px;
  max-width: 440px;
  pointer-events: auto;
  position: relative;
  overflow: hidden;
}

.vs-toast.vs-toast--exiting {
  animation: slide-out-right 0.3s ease forwards;
}

.vs-toast--success { border-left: 4px solid var(--vs-success); }
.vs-toast--error   { border-left: 4px solid var(--vs-danger); }
.vs-toast--warning { border-left: 4px solid var(--vs-warning); }
.vs-toast--info    { border-left: 4px solid var(--vs-info); }

.vs-toast__icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.vs-toast--success .vs-toast__icon { color: var(--vs-success); }
.vs-toast--error .vs-toast__icon   { color: var(--vs-danger); }
.vs-toast--warning .vs-toast__icon { color: var(--vs-warning); }
.vs-toast--info .vs-toast__icon    { color: var(--vs-info); }

.vs-toast__body {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--vs-text);
}

.vs-toast__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--vs-text-muted);
  opacity: 0.5;
  padding: 0;
  font-size: 1.1rem;
  transition: opacity var(--vs-transition-fast);
  flex-shrink: 0;
}

.vs-toast__close:hover {
  opacity: 1;
}

/* Progress bar at bottom of toast */
.vs-toast__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 0 10px;
  transition: none;
}

.vs-toast--success .vs-toast__progress { background: var(--vs-success); }
.vs-toast--error .vs-toast__progress   { background: var(--vs-danger); }
.vs-toast--warning .vs-toast__progress { background: var(--vs-warning); }
.vs-toast--info .vs-toast__progress    { background: var(--vs-info); }


/* ==========================================================================
   Modal (Panel - slides from right)
   ========================================================================== */

.vs-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vs-modal-backdrop.active {
  display: block;
  opacity: 1;
}

/* Panel-style modal (slides from right) */
.vs-modal {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  background: var(--vs-card-bg);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 1060;
  width: 90%;
  max-width: 600px;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.vs-modal.active {
  display: block;
  transform: translateX(0);
}

/* Size variants */
.vs-modal--sm { max-width: 400px; }
.vs-modal--lg { max-width: 800px; }

.vs-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--vs-primary), var(--vs-primary-dark));
  color: #fff;
}

.vs-modal__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.vs-modal__close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--vs-transition-fast);
}

.vs-modal__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.vs-modal__body {
  padding: 24px;
  overflow-y: auto;
  height: calc(100vh - 64px);
}

/* Center modal variant (for confirmations) */
.vs-modal--center {
  top: 50%;
  left: 50%;
  right: auto;
  height: auto;
  max-height: 85vh;
  transform: translate(-50%, -50%) scale(0.9);
  border-radius: var(--vs-card-radius);
}

.vs-modal--center.active {
  transform: translate(-50%, -50%) scale(1);
}

.vs-modal--center .vs-modal__body {
  height: auto;
  max-height: calc(85vh - 64px);
}


/* ==========================================================================
   Confirm Dialog
   ========================================================================== */

.vs-confirm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1070;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.vs-confirm-overlay.active {
  display: flex;
}

.vs-confirm {
  background: var(--vs-card-bg);
  border-radius: var(--vs-card-radius);
  padding: 32px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  animation: scale-in 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; /* needed for scale-in starting from center */
}

.vs-confirm__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
}

.vs-confirm__icon--warning {
  background: var(--vs-warning-light);
  color: #b8860b;
}

.vs-confirm__icon--danger {
  background: var(--vs-danger-light);
  color: var(--vs-danger);
}

.vs-confirm__icon--question {
  background: rgba(78, 115, 223, 0.1);
  color: var(--vs-primary);
}

.vs-confirm__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--vs-text);
}

.vs-confirm__message {
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: var(--vs-text-muted);
  line-height: 1.5;
}

.vs-confirm__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}


/* ==========================================================================
   Buttons (VS enhancements)
   ========================================================================== */

.vs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--vs-transition-fast);
  text-decoration: none;
  line-height: 1.4;
}

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

.vs-btn:active {
  transform: translateY(0);
}

.vs-btn--primary {
  background: var(--vs-primary);
  color: #fff;
}

.vs-btn--primary:hover {
  background: var(--vs-primary-dark);
  color: #fff;
}

.vs-btn--success {
  background: var(--vs-success);
  color: #fff;
}

.vs-btn--success:hover {
  background: #17a673;
  color: #fff;
}

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

.vs-btn--danger:hover {
  background: #c0392b;
  color: #fff;
}

.vs-btn--warning {
  background: var(--vs-warning);
  color: var(--vs-dark);
}

.vs-btn--outline {
  background: transparent;
  border: 2px solid var(--vs-gray-300);
  color: var(--vs-text);
}

.vs-btn--outline:hover {
  background: var(--vs-gray-100);
  border-color: var(--vs-gray-400);
  color: var(--vs-text);
}

/* Enhance Bootstrap buttons */
.btn {
  border-radius: 8px;
  font-weight: 600;
  transition: all var(--vs-transition-fast);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--vs-primary);
  border-color: var(--vs-primary);
}

.btn-primary:hover {
  background: var(--vs-primary-dark);
  border-color: var(--vs-primary-dark);
}

.btn-success {
  background: var(--vs-success);
  border-color: var(--vs-success);
}

.btn-danger {
  background: var(--vs-danger);
  border-color: var(--vs-danger);
}

.btn-warning {
  background: var(--vs-warning);
  border-color: var(--vs-warning);
  color: var(--vs-dark);
}


/* ==========================================================================
   Login Page
   ========================================================================== */

.vs-auth-layout {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fc 0%, #e2e8f0 50%, #cbd5e0 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative circles in background */
.vs-auth-layout::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 115, 223, 0.1), transparent 70%);
  top: -150px;
  right: -100px;
  pointer-events: none;
}

.vs-auth-layout::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 200, 138, 0.08), transparent 70%);
  bottom: -100px;
  left: -100px;
  pointer-events: none;
}

.vs-login {
  width: 100%;
  max-width: none;
  padding: 0;
  position: relative;
  z-index: 1;
}

.vs-login__card {
  background: var(--vs-card-bg);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  animation: fade-in-up 0.5s ease;
}

.vs-login__header {
  text-align: center;
  margin-bottom: 30px;
}

.vs-login__header h2 {
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--vs-primary), var(--vs-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vs-login__header p {
  color: var(--vs-text-muted);
  font-size: 0.95rem;
}

.vs-login__card .btn-primary {
  padding: 12px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--vs-primary), var(--vs-primary-dark));
  border: none;
  transition: all var(--vs-transition);
}

.vs-login__card .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(78, 115, 223, 0.35);
  transform: translateY(-1px);
}


/* ==========================================================================
   Audit Trail
   ========================================================================== */

.vs-audit-trail__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vs-audit-trail__entry {
  padding: 12px 0;
  border-bottom: 1px solid var(--vs-gray-200);
  animation: fade-in-up 0.3s ease both;
}

.vs-audit-trail__entry:last-child {
  border-bottom: none;
}

.vs-audit-trail__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.vs-audit-trail__detail {
  font-size: 0.88rem;
  color: var(--vs-text-muted);
  padding-left: 4px;
}


/* ==========================================================================
   Skeleton Loading
   ========================================================================== */

.vs-skeleton {
  background: linear-gradient(90deg, var(--vs-gray-200) 25%, var(--vs-gray-100) 50%, var(--vs-gray-200) 75%);
  background-size: 400% 100%;
  animation: skeleton-pulse 1.5s ease infinite;
  border-radius: 6px;
}

.vs-skeleton--text {
  height: 14px;
  width: 80%;
  margin-bottom: 10px;
}

.vs-skeleton--title {
  height: 22px;
  width: 50%;
  margin-bottom: 14px;
}

.vs-skeleton--circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.vs-skeleton--card {
  height: 120px;
  border-radius: var(--vs-card-radius);
}


/* ==========================================================================
   Flash save animation
   ========================================================================== */

.vs-flash-save {
  animation: flash-green 1s ease;
}


/* ==========================================================================
   Utility: Empty State
   ========================================================================== */

.vs-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--vs-text-muted);
}

.vs-empty-state__icon {
  font-size: 3.5rem;
  opacity: 0.3;
  margin-bottom: 16px;
  display: block;
}

.vs-empty-state__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--vs-text);
  margin-bottom: 6px;
}

.vs-empty-state__text {
  font-size: 0.95rem;
  margin-bottom: 20px;
}


/* ==========================================================================
   Section Headers with Gradient
   ========================================================================== */

.vs-section-header {
  background: linear-gradient(135deg, var(--vs-primary), var(--vs-primary-dark));
  color: #fff;
  padding: 18px 24px;
  border-radius: var(--vs-card-radius) var(--vs-card-radius) 0 0;
  margin: -20px -20px 20px -20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vs-section-header h4,
.vs-section-header h5,
.vs-section-header h6 {
  margin: 0;
  color: #fff;
  font-weight: 700;
}

.vs-section-header--teal {
  background: linear-gradient(135deg, var(--vs-teal), #3a7a8f);
}

.vs-section-header--success {
  background: linear-gradient(135deg, var(--vs-success), #17a673);
}


/* ==========================================================================
   Enhanced Bootstrap Overrides
   ========================================================================== */

/* Cards */
.card {
  border: none;
  border-radius: var(--vs-card-radius);
  box-shadow: var(--vs-card-shadow);
  transition: transform var(--vs-transition), box-shadow var(--vs-transition);
}

.card:hover {
  box-shadow: var(--vs-card-shadow-hover);
}

a .card:hover,
a.text-decoration-none .card:hover {
  transform: translateY(-3px);
}

.card-body {
  padding: 20px;
}

/* Dropdown menus */
.dropdown-menu {
  border: none;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: 6px;
  animation: fade-in-up 0.2s ease;
}

.dropdown-item {
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.9rem;
  transition: background var(--vs-transition-fast);
}

.dropdown-item:hover {
  background: var(--vs-gray-100);
}

[data-bs-theme="dark"] .dropdown-item:hover {
  background: var(--vs-gray-200);
}

/* Alerts */
.alert {
  border-radius: 10px;
  border: none;
  font-weight: 500;
}

.alert-warning {
  background: var(--vs-warning-light);
  color: #856404;
  border-left: 4px solid var(--vs-warning);
}

.alert-danger {
  background: var(--vs-danger-light);
  color: #721c24;
  border-left: 4px solid var(--vs-danger);
}

.alert-success {
  background: var(--vs-success-light);
  color: #155724;
  border-left: 4px solid var(--vs-success);
}

/* Badge enhancements */
.badge {
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 0.78rem;
}


/* ==========================================================================
   Scrollbar Styling
   ========================================================================== */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--vs-gray-300);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--vs-gray-400);
}

.vs-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}

.vs-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}


/* ==========================================================================
   Dark Mode Specific
   ========================================================================== */

[data-bs-theme="dark"] .vs-sidebar {
  background: linear-gradient(180deg, #1a1d23, #111318);
}

[data-bs-theme="dark"] .vs-topbar {
  background: #22252b;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .card {
  background: #22252b;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .vs-card,
[data-bs-theme="dark"] .vs-stat,
[data-bs-theme="dark"] .vs-pet-card {
  background: #22252b;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .vs-table-container {
  background: #22252b;
}

[data-bs-theme="dark"] .vs-toast {
  background: #2d3139;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .vs-confirm {
  background: #2d3139;
}

[data-bs-theme="dark"] .vs-modal {
  background: #22252b;
}

[data-bs-theme="dark"] .vs-login__card {
  background: #22252b;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .vs-auth-layout {
  background: linear-gradient(135deg, #1a202c, #2d3748);
}

[data-bs-theme="dark"] .vs-search__input {
  background: #2d3139;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background: #2d3139;
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--vs-text);
}

/* Status colors stay vivid in dark mode */
[data-bs-theme="dark"] .vs-badge--applied,
[data-bs-theme="dark"] .vs-badge--healthy,
[data-bs-theme="dark"] .vs-badge--complete {
  background: var(--vs-success);
  color: #fff;
}

[data-bs-theme="dark"] .vs-badge--overdue,
[data-bs-theme="dark"] .vs-badge--critical {
  background: var(--vs-danger);
  color: #fff;
}

[data-bs-theme="dark"] .vs-badge--pending,
[data-bs-theme="dark"] .vs-badge--scheduled {
  background: var(--vs-warning);
  color: var(--vs-dark);
}

[data-bs-theme="dark"] .alert-warning {
  background: rgba(246, 194, 62, 0.15);
  color: var(--vs-warning);
  border-left-color: var(--vs-warning);
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .vs-sidebar {
    transform: translateX(-100%);
    width: var(--vs-sidebar-width);
    box-shadow: none;
  }

  .vs-sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.2);
  }

  .vs-main {
    margin-left: 0;
  }

  .vs-content {
    padding: 16px;
  }

  .vs-modal {
    width: 100%;
    max-width: 100%;
  }

  .vs-stat__number {
    font-size: 1.4rem;
  }

  .vs-pet-card__photo,
  .vs-pet-card__photo-fallback {
    width: 64px;
    height: 64px;
  }

  .vs-search {
    max-width: 100%;
  }

  .vs-toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .vs-toast {
    min-width: auto;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .vs-login__card {
    padding: 28px 24px;
  }

  .vs-stat {
    padding: 14px 16px;
  }

  .vs-card {
    padding: 16px;
  }
}


/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .vs-sidebar,
  .vs-topbar,
  .vs-toast-container,
  .vs-modal-backdrop,
  .vs-modal,
  .vs-confirm-overlay {
    display: none !important;
  }

  .vs-main {
    margin-left: 0 !important;
  }

  .vs-card,
  .vs-stat,
  .vs-pet-card {
    box-shadow: none;
    break-inside: avoid;
  }
}

/* Dialog skeleton loader */
.vs-skel {
  background: linear-gradient(90deg, rgba(148,163,184,0.12) 0%, rgba(148,163,184,0.22) 50%, rgba(148,163,184,0.12) 100%);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: vs-skel-shimmer 1.4s ease-in-out infinite;
}
.vs-skel-circle { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; }
@keyframes vs-skel-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Notification panel (topbar dropdown) */
.vs-notification-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-height: 440px;
  background: var(--vs-card-bg, #fff);
  border: 1px solid var(--bs-border-color);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  z-index: 2100;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.vs-notification-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bs-border-color);
}
.vs-notification-panel__body {
  flex: 1;
  overflow-y: auto;
  max-height: 380px;
}
.vs-notif-item { transition: background .15s; }
.vs-notif-item:hover { background: rgba(20, 184, 166, 0.04); }
.vs-notif-item.unread { background: rgba(59, 130, 246, 0.05); }
.vs-notif-item.unread:hover { background: rgba(59, 130, 246, 0.1); }

/* Bell ring animation */
@keyframes vs-bell-ring {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-12deg); }
  45% { transform: rotate(10deg); }
  60% { transform: rotate(-8deg); }
  75% { transform: rotate(4deg); }
}
.vs-bell-ring i { animation: vs-bell-ring 0.8s ease; }

@media (max-width: 768px) {
  .vs-notification-panel {
    position: fixed;
    top: var(--vs-topbar-height, 64px);
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - var(--vs-topbar-height, 64px) - 24px);
    border-radius: 0 0 14px 14px;
  }
}
