/*
 * Luumtech2 Admin Theme - Animations
 * Micro-animations and transitions
 * 
 * @author Luumtech
 * @version 1.0.0
 */

/* ==========================================
   Panel / Card Entrance Animations
   ========================================== */

/* Fade In */
@keyframes lt2-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Slide Up */
@keyframes lt2-slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Slide Down */
@keyframes lt2-slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Scale In */
@keyframes lt2-scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Slide In Right */
@keyframes lt2-slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Slide In Left */
@keyframes lt2-slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================
   Apply Animations When Enabled
   ========================================== */

/* Panels & Cards - Staggered entrance */
body.luumtech2-animated .panel,
body.luumtech2-animated .panel_s,
body.luumtech2-animated .box,
body.luumtech2-animated .widget {
  animation: lt2-slideUp 0.4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

body.luumtech2-animated .panel:nth-child(1) { animation-delay: 0s; }
body.luumtech2-animated .panel:nth-child(2) { animation-delay: 0.05s; }
body.luumtech2-animated .panel:nth-child(3) { animation-delay: 0.1s; }
body.luumtech2-animated .panel:nth-child(4) { animation-delay: 0.15s; }
body.luumtech2-animated .panel:nth-child(5) { animation-delay: 0.2s; }

body.luumtech2-animated .panel_s:nth-child(1) { animation-delay: 0s; }
body.luumtech2-animated .panel_s:nth-child(2) { animation-delay: 0.05s; }
body.luumtech2-animated .panel_s:nth-child(3) { animation-delay: 0.1s; }
body.luumtech2-animated .panel_s:nth-child(4) { animation-delay: 0.15s; }
body.luumtech2-animated .panel_s:nth-child(5) { animation-delay: 0.2s; }

/* Modals */
body.luumtech2-animated .modal.fade .modal-dialog {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

body.luumtech2-animated .modal.fade.in .modal-dialog {
  animation: lt2-scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Dropdowns */
body.luumtech2-animated .dropdown-menu {
  animation: lt2-slideDown 0.2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

/* Alerts */
body.luumtech2-animated .alert {
  animation: lt2-slideUp 0.3s ease forwards;
}

/* ==========================================
   Interactive Micro-animations
   ========================================== */

/* Button hover ripple */
body.luumtech2-animated .btn {
  position: relative;
  overflow: hidden;
}

body.luumtech2-animated .btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

body.luumtech2-animated .btn:active::after {
  width: 200px;
  height: 200px;
}

/* Sidebar item hover */
body.luumtech2-animated .sidebar-menu li a,
body.luumtech2-animated #menu ul li a {
  transition: all 0.2s ease, color 0.15s ease !important;
}

/* Table row hover */
body.luumtech2-animated .table tbody tr {
  transition: background-color 0.15s ease !important;
}

/* Form focus glow */
body.luumtech2-animated .form-control {
  transition: all 0.2s ease, box-shadow 0.2s ease !important;
}

/* Nav tabs transition */
body.luumtech2-animated .nav-tabs > li > a {
  transition: all 0.2s ease !important;
}

/* Badge pulse on notification */
@keyframes lt2-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

body.luumtech2-animated .badge-notification {
  animation: lt2-pulse 2s ease-in-out infinite;
}

/* ==========================================
   Page Transition
   ========================================== */

body.luumtech2-animated .content-wrapper,
body.luumtech2-animated #content {
  animation: lt2-fadeIn 0.3s ease forwards;
}

/* ==========================================
   Loading State
   ========================================== */

@keyframes lt2-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.lt2-loading {
  background: linear-gradient(90deg, 
    var(--lg-bg-tertiary, #1a1a1e) 25%, 
    var(--lg-bg-elevated, #222226) 50%, 
    var(--lg-bg-tertiary, #1a1a1e) 75%
  );
  background-size: 200% 100%;
  animation: lt2-shimmer 1.5s infinite;
  border-radius: var(--lg-radius-md, 8px);
}

/* Theme Version: 1.0.0 */
