/* ============================================================
   AZ-HRM — Creative Animated UI Enhancement
   Author  : AZ-HRM UI Layer
   ============================================================ */

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

/* ═══════════════════════════════════════════════
   1. CSS VARIABLES & ROOT
═══════════════════════════════════════════════ */
:root {
  --az-primary:       #6366f1;
  --az-secondary:     #8b5cf6;
  --az-success:       #10b981;
  --az-info:          #06b6d4;
  --az-warning:       #f59e0b;
  --az-danger:        #ef4444;
  --az-dark:          #1e293b;
  --az-card-radius:   16px;
  --az-transition:    0.35s cubic-bezier(0.4,0,0.2,1);
  --az-shadow:        0 8px 32px rgba(99,102,241,.15);
  --az-shadow-hover:  0 16px 48px rgba(99,102,241,.28);
  --az-glow-primary:  0 0 20px rgba(99,102,241,.4);
  --az-glow-success:  0 0 20px rgba(16,185,129,.4);
  --az-glow-info:     0 0 20px rgba(6,182,212,.4);
  --az-glow-warning:  0 0 20px rgba(245,158,11,.4);
  --az-glow-danger:   0 0 20px rgba(239,68,68,.4);
}

/* ═══════════════════════════════════════════════
   2. GLOBAL BASE
═══════════════════════════════════════════════ */
body {
  font-family: 'Inter', sans-serif !important;
}

/* smooth scrolling */
html { scroll-behavior: smooth; }

/* ═══════════════════════════════════════════════
   3. PAGE ENTER ANIMATIONS
═══════════════════════════════════════════════ */
@keyframes azFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes azFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes azSlideLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0);     }
}
@keyframes azSlideRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0);    }
}
@keyframes azPop {
  0%   { transform: scale(0.85); opacity: 0; }
  70%  { transform: scale(1.04);             }
  100% { transform: scale(1);    opacity: 1; }
}
@keyframes azPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(99,102,241,.4); }
  50%      { box-shadow: 0 0 0 10px rgba(99,102,241,0); }
}
@keyframes azShimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
@keyframes azFloat {
  0%,100% { transform: translateY(0);   }
  50%      { transform: translateY(-8px); }
}
@keyframes azRotateBg {
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}
@keyframes azCountUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes azGradientShift {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}
@keyframes azBorderGlow {
  0%,100% { border-color: rgba(99,102,241,.3); }
  50%      { border-color: rgba(99,102,241,.9); }
}
@keyframes azWave {
  0%   { transform: scaleX(1)   scaleY(1); opacity: 1; }
  100% { transform: scaleX(2.5) scaleY(2.5); opacity: 0; }
}
@keyframes azBounce {
  0%,20%,53%,80%,100% { transform: translateY(0);    }
  40%,43%              { transform: translateY(-18px); }
  70%                  { transform: translateY(-9px);  }
  90%                  { transform: translateY(-4px);  }
}

/* Page sections staggered entrance */
.dash-content > * { animation: azFadeUp .55s ease both; }
.dash-content .row > [class*="col-"]:nth-child(1) { animation-delay: .05s; }
.dash-content .row > [class*="col-"]:nth-child(2) { animation-delay: .12s; }
.dash-content .row > [class*="col-"]:nth-child(3) { animation-delay: .19s; }
.dash-content .row > [class*="col-"]:nth-child(4) { animation-delay: .26s; }
.dash-content .row > [class*="col-"]:nth-child(5) { animation-delay: .33s; }
.dash-content .row > [class*="col-"]:nth-child(6) { animation-delay: .40s; }

/* ═══════════════════════════════════════════════
   4. ANIMATED STATS CARDS (Gradient + Hover)
═══════════════════════════════════════════════ */
.az-stat-card {
  position: relative;
  border-radius: var(--az-card-radius);
  padding: 24px 20px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform var(--az-transition), box-shadow var(--az-transition);
  cursor: pointer;
  animation: azFadeUp .5s ease both;
}

.az-stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--az-transition);
  border-radius: var(--az-card-radius);
}

.az-stat-card:hover {
  transform: translateY(-6px) scale(1.02);
}
.az-stat-card:hover::before { opacity: 1; }

/* Gradient variants */
.az-stat-primary {
  background: linear-gradient(135deg,#6366f1 0%,#8b5cf6 100%);
  box-shadow: 0 8px 32px rgba(99,102,241,.35);
  color:#fff;
}
.az-stat-primary:hover { box-shadow: 0 16px 48px rgba(99,102,241,.55); }

.az-stat-success {
  background: linear-gradient(135deg,#10b981 0%,#059669 100%);
  box-shadow: 0 8px 32px rgba(16,185,129,.35);
  color:#fff;
}
.az-stat-success:hover { box-shadow: 0 16px 48px rgba(16,185,129,.55); }

.az-stat-info {
  background: linear-gradient(135deg,#06b6d4 0%,#0284c7 100%);
  box-shadow: 0 8px 32px rgba(6,182,212,.35);
  color:#fff;
}
.az-stat-info:hover { box-shadow: 0 16px 48px rgba(6,182,212,.55); }

.az-stat-warning {
  background: linear-gradient(135deg,#f59e0b 0%,#d97706 100%);
  box-shadow: 0 8px 32px rgba(245,158,11,.35);
  color:#fff;
}
.az-stat-warning:hover { box-shadow: 0 16px 48px rgba(245,158,11,.55); }

.az-stat-danger {
  background: linear-gradient(135deg,#ef4444 0%,#dc2626 100%);
  box-shadow: 0 8px 32px rgba(239,68,68,.35);
  color:#fff;
}
.az-stat-danger:hover { box-shadow: 0 16px 48px rgba(239,68,68,.55); }

.az-stat-dark {
  background: linear-gradient(135deg,#1e293b 0%,#334155 100%);
  box-shadow: 0 8px 32px rgba(30,41,59,.35);
  color:#fff;
}
.az-stat-dark:hover { box-shadow: 0 16px 48px rgba(30,41,59,.55); }

/* Icon bubble */
.az-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
  transition: transform var(--az-transition);
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}
.az-stat-card:hover .az-stat-icon { transform: scale(1.15) rotate(-6deg); }

.az-stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  animation: azCountUp .6s ease both .2s;
  color: inherit;
}
.az-stat-label {
  font-size: .8rem;
  font-weight: 500;
  opacity: .85;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.az-stat-sub {
  font-size: .75rem;
  opacity: .7;
  margin-top: 2px;
}

/* Decorative circles */
.az-stat-card .az-deco-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.az-stat-card .az-deco-circle.c1 {
  width: 120px; height: 120px;
  top: -40px; right: -40px;
}
.az-stat-card .az-deco-circle.c2 {
  width: 70px; height: 70px;
  bottom: -20px; right: 30px;
}
.az-stat-card .az-deco-circle.c3 {
  width: 40px; height: 40px;
  top: 10px; right: 90px;
  animation: azFloat 3s ease-in-out infinite;
}

/* trend badge */
.az-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .72rem;
  font-weight: 600;
  background: rgba(255,255,255,.22);
  padding: 3px 8px;
  border-radius: 20px;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════
   5. WELCOME BANNER SLIDER
═══════════════════════════════════════════════ */
.az-welcome-slider {
  position: relative;
  border-radius: var(--az-card-radius);
  overflow: hidden;
  margin-bottom: 24px;
  min-height: 160px;
}

.az-slider-track {
  display: flex;
  transition: transform .6s cubic-bezier(.77,0,.175,1);
}

.az-slide {
  min-width: 100%;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.az-slide-1 {
  background: linear-gradient(135deg,#6366f1 0%,#a855f7 50%,#ec4899 100%);
  background-size: 200% 200%;
  animation: azGradientShift 6s ease infinite;
}
.az-slide-2 {
  background: linear-gradient(135deg,#10b981 0%,#06b6d4 50%,#6366f1 100%);
  background-size: 200% 200%;
  animation: azGradientShift 6s ease infinite;
}
.az-slide-3 {
  background: linear-gradient(135deg,#f59e0b 0%,#ef4444 50%,#ec4899 100%);
  background-size: 200% 200%;
  animation: azGradientShift 6s ease infinite;
}

.az-slide-content h2 {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0 0 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.az-slide-content p {
  color: rgba(255,255,255,.85);
  margin: 0;
  font-size: .95rem;
}
.az-slide-content .az-slide-badge {
  display: inline-block;
  background: rgba(255,255,255,.22);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  backdrop-filter: blur(6px);
}

.az-slide-graphic {
  font-size: 5rem;
  animation: azFloat 3s ease-in-out infinite;
  flex-shrink: 0;
  opacity: .9;
}

/* slider dots */
.az-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}
.az-slider-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: all .3s;
}
.az-slider-dots span.active {
  background: #fff;
  width: 22px;
  border-radius: 4px;
}

/* slider nav arrows */
.az-slider-prev,
.az-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  border: none;
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--az-transition);
  z-index: 5;
}
.az-slider-prev { left: 12px; }
.az-slider-next { right: 12px; }
.az-slider-prev:hover,
.az-slider-next:hover { background: rgba(255,255,255,.45); }

/* slide deco shapes */
.az-slide::after {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  top: -80px; right: -60px;
  pointer-events: none;
}
.az-slide::before {
  content: '';
  position: absolute;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  bottom: -50px; left: 20%;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════
   6. ENHANCED CARD STYLES
═══════════════════════════════════════════════ */
.card {
  border-radius: var(--az-card-radius) !important;
  border: 1px solid rgba(226,232,240,.8) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.06) !important;
  transition: transform var(--az-transition), box-shadow var(--az-transition) !important;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.12) !important;
}

.card-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(226,232,240,.6) !important;
  padding: 16px 20px !important;
}

.card-header h5 {
  font-weight: 700 !important;
  font-size: .95rem !important;
  color: var(--az-dark) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-header h5::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--az-primary), var(--az-secondary));
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   7. IMPROVED EXISTING STATS CARDS
═══════════════════════════════════════════════ */
.stats-wrapper.dash-info-card {
  border-radius: var(--az-card-radius) !important;
  position: relative;
  overflow: hidden;
  animation: azFadeUp .5s ease both;
}

.stats-wrapper.dash-info-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(99,102,241,.06);
  transform: translate(20px,-20px);
  transition: transform var(--az-transition);
}
.stats-wrapper.dash-info-card:hover::after {
  transform: translate(10px,-10px) scale(1.3);
}

.stats-wrapper.dash-info-card .badge.theme-avtar {
  width: 52px !important;
  height: 52px !important;
  border-radius: 14px !important;
  font-size: 22px !important;
  transition: transform var(--az-transition), box-shadow var(--az-transition);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
}
.stats-wrapper.dash-info-card:hover .badge.theme-avtar {
  transform: scale(1.12) rotate(-8deg);
}

.stats-wrapper.dash-info-card h4 {
  font-size: 1.9rem !important;
  font-weight: 800 !important;
  animation: azCountUp .5s ease both .1s;
}

.stats-wrapper.dash-info-card small.text-muted {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════
   8. ANIMATED TABLE ROWS
═══════════════════════════════════════════════ */
.table thead th {
  font-weight: 700 !important;
  font-size: .78rem !important;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b !important;
  background: #f8fafc !important;
  border-bottom: 2px solid #e2e8f0 !important;
  padding: 12px 16px !important;
}

.table tbody tr {
  transition: background var(--az-transition), transform var(--az-transition);
}
.table tbody tr:hover {
  background: rgba(99,102,241,.04) !important;
  transform: scale(1.005);
}

.table tbody td {
  padding: 12px 16px !important;
  vertical-align: middle !important;
  border-color: rgba(226,232,240,.6) !important;
  font-size: .875rem;
}

/* Absent badge */
.absent-btn {
  background: linear-gradient(135deg,#ef4444,#dc2626);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ═══════════════════════════════════════════════
   9. HEADER ENHANCEMENTS
═══════════════════════════════════════════════ */
.dash-header {
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(226,232,240,.5) !important;
  transition: box-shadow .3s !important;
}

.dash-header:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,.08) !important;
}

.dash-head-link {
  transition: color var(--az-transition), background var(--az-transition) !important;
  border-radius: 10px !important;
}
.dash-head-link:hover {
  background: rgba(99,102,241,.08) !important;
}

/* User avatar ring */
.dash-head-link .theme-avtar img {
  transition: transform var(--az-transition), box-shadow var(--az-transition);
}
.dash-head-link:hover .theme-avtar img {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px rgba(99,102,241,.4);
}

/* ═══════════════════════════════════════════════
   10. SIDEBAR MENU ANIMATIONS
═══════════════════════════════════════════════ */
.dash-sidebar {
  transition: width .3s ease !important;
}

.dash-navbar .nav-item > a,
.pcoded-hasmenu > .nav-link {
  border-radius: 10px !important;
  margin: 2px 8px !important;
  transition: all var(--az-transition) !important;
}

.dash-navbar .nav-item > a:hover,
.pcoded-hasmenu > .nav-link:hover {
  transform: translateX(4px);
}

/* Active indicator */
.dash-navbar .nav-item.active > a {
  position: relative;
}
.dash-navbar .nav-item.active > a::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 60%;
  background: linear-gradient(to bottom, var(--az-primary), var(--az-secondary));
  border-radius: 0 2px 2px 0;
}

/* ═══════════════════════════════════════════════
   11. BUTTONS — ANIMATED
═══════════════════════════════════════════════ */
.btn {
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: .85rem !important;
  transition: all var(--az-transition) !important;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.15);
  opacity: 0;
  transition: opacity .2s;
}
.btn:active::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--az-primary), var(--az-secondary)) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(99,102,241,.4) !important;
}
.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(99,102,241,.55) !important;
}

.btn-danger {
  background: linear-gradient(135deg,#ef4444,#dc2626) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(239,68,68,.4) !important;
}
.btn-danger:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(239,68,68,.55) !important;
}

.btn-success {
  background: linear-gradient(135deg,#10b981,#059669) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(16,185,129,.4) !important;
}
.btn-success:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(16,185,129,.55) !important;
}

/* Ripple effect on all buttons */
.btn-ripple {
  position: relative;
  overflow: hidden;
}
.btn-ripple .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  transform: scale(0);
  animation: rippleAnim .6s linear;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ═══════════════════════════════════════════════
   12. PAGE BREADCRUMB — ANIMATED
═══════════════════════════════════════════════ */
.page-header {
  animation: azSlideLeft .4s ease both;
  margin-bottom: 20px !important;
}

.page-header-title h4 {
  font-weight: 800 !important;
  font-size: 1.25rem !important;
  background: linear-gradient(135deg, var(--az-dark), #64748b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.breadcrumb-item a {
  color: var(--az-primary) !important;
  transition: color .2s;
}
.breadcrumb-item a:hover { color: var(--az-secondary) !important; }

/* ═══════════════════════════════════════════════
   13. SUPER ADMIN DASHBOARD CARDS
═══════════════════════════════════════════════ */
.dashboard-project-card {
  border-radius: var(--az-card-radius) !important;
  position: relative;
  overflow: hidden;
  transition: transform var(--az-transition), box-shadow var(--az-transition) !important;
  border: 1px solid rgba(226,232,240,.7) !important;
}
.dashboard-project-card:hover {
  transform: translateY(-5px) scale(1.02) !important;
  box-shadow: var(--az-shadow-hover) !important;
}

.dashboard-project-card .badge.theme-avtar {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  font-size: 22px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: transform var(--az-transition) !important;
}
.dashboard-project-card:hover .badge.theme-avtar {
  transform: scale(1.2) rotate(-10deg) !important;
}

.dashboard-project-card h4 {
  font-weight: 800 !important;
  animation: azCountUp .5s ease both;
}

/* ═══════════════════════════════════════════════
   14. CHART CARDS
═══════════════════════════════════════════════ */
.card .apexcharts-canvas {
  animation: azFadeIn .8s ease both .2s;
}

/* ═══════════════════════════════════════════════
   15. NOTIFICATION BADGE — PULSE
═══════════════════════════════════════════════ */
.dash-h-badge {
  animation: azPulse 2s infinite;
  font-size: .65rem !important;
}

/* ═══════════════════════════════════════════════
   16. FOOTER
═══════════════════════════════════════════════ */
.dash-footer {
  border-top: 1px solid rgba(226,232,240,.6) !important;
  background: rgba(248,250,252,.9) !important;
  backdrop-filter: blur(8px);
}

/* ═══════════════════════════════════════════════
   17. SCROLL BAR STYLING
═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--az-primary); }

/* ═══════════════════════════════════════════════
   18. LOADING SKELETON SHIMMER
═══════════════════════════════════════════════ */
.az-skeleton {
  background: linear-gradient(90deg,#f0f4f8 25%,#e2e8f0 50%,#f0f4f8 75%);
  background-size: 400px 100%;
  animation: azShimmer 1.4s ease infinite;
  border-radius: 8px;
}

/* ═══════════════════════════════════════════════
   19. TOAST / ALERT ANIMATION
═══════════════════════════════════════════════ */
.toast {
  border-radius: 14px !important;
  backdrop-filter: blur(10px);
  animation: azSlideRight .4s ease !important;
}

.alert {
  border-radius: 12px !important;
  animation: azFadeUp .4s ease both;
}

/* ═══════════════════════════════════════════════
   20. MODAL ANIMATIONS
═══════════════════════════════════════════════ */
.modal.show .modal-dialog {
  animation: azPop .35s ease both;
}
.modal-content {
  border-radius: 18px !important;
  border: none !important;
  box-shadow: 0 24px 80px rgba(0,0,0,.18) !important;
}
.modal-header {
  border-radius: 18px 18px 0 0 !important;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9) !important;
}

/* ═══════════════════════════════════════════════
   21. DROPDOWN ANIMATION
═══════════════════════════════════════════════ */
.dropdown-menu.show {
  animation: azFadeUp .25s ease both;
  border-radius: 14px !important;
  box-shadow: 0 12px 40px rgba(0,0,0,.12) !important;
  border: 1px solid rgba(226,232,240,.8) !important;
}

.dropdown-item {
  border-radius: 8px !important;
  margin: 2px 6px !important;
  padding: 8px 12px !important;
  transition: all .2s !important;
}
.dropdown-item:hover {
  background: rgba(99,102,241,.08) !important;
  transform: translateX(4px) !important;
}

/* ═══════════════════════════════════════════════
   22. FORM CONTROLS
═══════════════════════════════════════════════ */
.form-control, .form-select {
  border-radius: 10px !important;
  border: 1.5px solid #e2e8f0 !important;
  transition: all var(--az-transition) !important;
  font-size: .875rem !important;
}
.form-control:focus, .form-select:focus {
  border-color: var(--az-primary) !important;
  box-shadow: 0 0 0 3px rgba(99,102,241,.15) !important;
  transform: scale(1.01);
}

/* ═══════════════════════════════════════════════
   23. BADGE ENHANCEMENTS
═══════════════════════════════════════════════ */
.badge {
  font-size: .72rem !important;
  font-weight: 600 !important;
  letter-spacing: .03em !important;
}

/* ═══════════════════════════════════════════════
   24. ACTION BUTTONS (dt-buttons)
═══════════════════════════════════════════════ */
.action-btn {
  transition: transform var(--az-transition), box-shadow var(--az-transition) !important;
}
.action-btn:hover {
  transform: scale(1.15) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.15) !important;
}

/* ═══════════════════════════════════════════════
   25. CLOCK IN/OUT BUTTONS — SPECIAL
═══════════════════════════════════════════════ */
#clock_in:not(.disabled) {
  background: linear-gradient(135deg,#10b981,#059669) !important;
  border: none !important;
  animation: azPulse 2.5s infinite;
  box-shadow: 0 0 0 0 rgba(16,185,129,.4);
}
#clock_out:not(.disabled) {
  background: linear-gradient(135deg,#ef4444,#dc2626) !important;
  border: none !important;
  animation: azPulse 2.5s infinite;
  box-shadow: 0 0 0 0 rgba(239,68,68,.4);
}

/* ═══════════════════════════════════════════════
   26. PROGRESS BAR
═══════════════════════════════════════════════ */
.progress {
  border-radius: 20px !important;
  background: #f1f5f9 !important;
  height: 8px !important;
}
.progress-bar {
  border-radius: 20px !important;
  background: linear-gradient(to right, var(--az-primary), var(--az-secondary)) !important;
  position: relative;
  overflow: hidden;
}
.progress-bar::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);
  animation: azShimmer 2s ease infinite;
}

/* ═══════════════════════════════════════════════
   27. CALENDAR CARD
═══════════════════════════════════════════════ */
.fc {
  animation: azFadeIn .6s ease both .3s;
}
.fc .fc-button-primary {
  background: var(--az-primary) !important;
  border-color: var(--az-primary) !important;
  border-radius: 8px !important;
  font-size: .8rem !important;
  transition: all .2s !important;
}
.fc .fc-button-primary:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(99,102,241,.4) !important;
}

/* ═══════════════════════════════════════════════
   28. DARK MODE OVERRIDES
═══════════════════════════════════════════════ */
body.dark-layout .card {
  background: #1e293b !important;
  border-color: rgba(255,255,255,.08) !important;
}
body.dark-layout .card-header h5 { color: #f1f5f9 !important; }
body.dark-layout .table thead th { background: #0f172a !important; color: #94a3b8 !important; }
body.dark-layout .table tbody tr:hover { background: rgba(99,102,241,.08) !important; }

/* ═══════════════════════════════════════════════
   29. RESPONSIVE TWEAKS
═══════════════════════════════════════════════ */
@media (max-width: 991px) {
  .az-slide-graphic { display: none; }
  .az-slide { padding: 24px 20px; }
  .az-slide-content h2 { font-size: 1.3rem; }
  .az-stat-card { padding: 18px 16px; }
}
@media (max-width: 575px) {
  .az-stat-value { font-size: 1.6rem; }
  .az-slide-content h2 { font-size: 1.1rem; }
}

/* ═══════════════════════════════════════════════
   30. SPECIAL: ANIMATED STATS ROW
═══════════════════════════════════════════════ */
.az-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════
   31. QUICK LINKS / SHORTCUT CARDS
═══════════════════════════════════════════════ */
.az-quick-card {
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(226,232,240,.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: all var(--az-transition);
  text-align: center;
}
.az-quick-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--az-shadow);
  border-color: var(--az-primary);
  color: var(--az-primary);
}
.az-quick-card .az-qc-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: transform var(--az-transition);
}
.az-quick-card:hover .az-qc-icon { transform: scale(1.2) rotate(-8deg); }
.az-quick-card span { font-size: .8rem; font-weight: 600; }

/* ═══════════════════════════════════════════════
   32. CHART AREA CARD HEADER OVERRIDE
═══════════════════════════════════════════════ */
.card-header h5.chart-title {
  font-size: 1rem !important;
}

/* ═══════════════════════════════════════════════
   33. NUMBER COUNTER ANIMATION TRIGGER
═══════════════════════════════════════════════ */
.az-animated-count {
  display: inline-block;
  animation: azCountUp .7s cubic-bezier(.23,1,.32,1) both;
}

/* ═══════════════════════════════════════════════
   34. WAVE EFFECT ON HOVER FOR STAT ICON
═══════════════════════════════════════════════ */
.az-stat-icon-wave {
  position: relative;
}
.az-stat-icon-wave::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,.5);
  animation: azWave 1.5s ease-out infinite;
}

/* ═══════════════════════════════════════════════
   35. LOGIN PAGE ENHANCEMENTS (auth)
═══════════════════════════════════════════════ */
.auth-wrapper {
  background: linear-gradient(135deg,#667eea 0%,#764ba2 40%,#6B73FF 100%) !important;
  background-size: 400% 400% !important;
  animation: azGradientShift 8s ease infinite !important;
  min-height: 100vh;
  position: relative;
}

.auth-wrapper::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  top: -150px; left: -150px;
  pointer-events: none;
}
.auth-wrapper::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  bottom: -80px; right: -80px;
  pointer-events: none;
}

.auth-wrapper .auth-content .card {
  border-radius: 24px !important;
  box-shadow: 0 32px 80px rgba(0,0,0,.25) !important;
  border: none !important;
  animation: azPop .5s ease both !important;
  backdrop-filter: blur(20px) !important;
}

.auth-wrapper .auth-content .card .card-body {
  padding: 36px 32px !important;
}
