@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/11.1.0/sweetalert2.min.css');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css");

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

body {
  background-color: #f8fafc;
  font-family: 'Poppins', sans-serif !important;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
}

/* =========================================================
   KEYFRAME ANIMATIONS
   ========================================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
  }
}

@keyframes badgeBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* =========================================================
   CARD & CONTAINER ANIMATIONS
   ========================================================= */
.card {
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  border-radius: 12px !important;
  box-shadow: var(--card-shadow) !important;
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  box-shadow: 0 14px 30px -5px rgba(0, 0, 0, 0.08), 0 10px 14px -6px rgba(0, 0, 0, 0.05) !important;
}

/* =========================================================
   BUTTON ANIMATIONS & MICRO-INTERACTIONS
   ========================================================= */
.btn {
  font-weight: 400 !important;
  border-radius: 4px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
  overflow: hidden;
}

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

.btn:active {
  transform: scale(0.97) !important;
}

.btn-primary, .btn-default {
  background-color: #007bff !important;
  border-color: #007bff !important;
  color: #fff !important;
}

.btn-primary:hover, .btn-default:hover {
  background-color: #0069d9 !important;
  border-color: #0062cc !important;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.25);
}

.btn-sm i {
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-sm:hover i {
  transform: scale(1.18);
}

/* =========================================================
   FORM CONTROLS & INPUT FOCUS ANIMATIONS
   ========================================================= */
.form-control, .form-select {
  border-radius: 8px !important;
  border: 1px solid #d1d5db;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  font-size: 15px;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
  outline: none;
}

/* =========================================================
   NAVBAR & DROPDOWNS
   ========================================================= */
.navbar {
  transition: all 0.25s ease;
}

.nav-link {
  transition: color 0.18s ease, transform 0.18s ease;
}

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

.dropdown-menu {
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  animation: dropdownSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: top;
}

.dropdown-item {
  transition: background-color 0.15s ease, padding-left 0.15s ease, color 0.15s ease;
  border-radius: 6px;
  margin: 2px 6px;
  width: auto;
}

.dropdown-item:hover {
  background-color: #f1f5f9;
  padding-left: 18px;
  color: var(--primary-color) !important;
}

/* =========================================================
   TABLES & LISTS
   ========================================================= */
.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table tbody tr {
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.table-hover tbody tr:hover {
  background-color: #f1f5f9 !important;
}

/* =========================================================
   BADGES & PILLS
   ========================================================= */
.badge {
  font-weight: 500;
  border-radius: 6px;
  padding: 5px 9px;
  transition: transform 0.15s ease;
}

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

.badge.bg-success {
  animation: badgeBlink 3s infinite ease-in-out;
}

/* =========================================================
   ALERTS
   ========================================================= */
.alert {
  border-radius: 10px !important;
  animation: fadeInDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* =========================================================
   PRIVACY BLUR
   ========================================================= */
.key-sensi {
  filter: blur(4px);
  transition: filter 0.25s ease;
}

.keyBlur:hover {
  filter: blur(0px);
}

/* =========================================================
   RIPPLE EFFECT
   ========================================================= */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnimation 0.6s linear;
  background-color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

@keyframes rippleAnimation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}