
/*

  _______              _       _____       _       _   _                            _______ _____         _____ 
 |__   __|            (_)     / ____|     | |     | | (_)                          |__   __/ ____|  /\   |_   _|
    | |_ __ ___  _ __  _  ___| (___   ___ | |_   _| |_ _  ___  _ __  ___   ______     | | | (___   /  \    | |  
    | | '__/ _ \| '_ \| |/ __|\___ \ / _ \| | | | | __| |/ _ \| '_ \/ __| |______|    | |  \___ \ / /\ \   | |  
    | | | | (_) | |_) | | (__ ____) | (_) | | |_| | |_| | (_) | | | \__ \             | |  ____) / ____ \ _| |_ 
    |_|_|  \___/| .__/|_|\___|_____/ \___/|_|\__,_|\__|_|\___/|_| |_|___/             |_| |_____/_/    \_\_____|
                | |                                                                                             
                |_|                                                                                             

  TropicSolutions  •  TSAI
   T r o p i c S o l u t i o n s    –    T S A I 
  System entwickelt von TropicSolutions – Florian Bach

*/

/**
 * System entwickelt von TropicSolutions - Florian Bach
 * TSAI
 *
 * @package   Reparatursaurier
 * @author    Florian Bach
 * @copyright © 2025 TropicSolutions. Alle Rechte vorbehalten.
 * @license   Selfcoded by TropicSolutions
 * @link      https://tropicsolutions.net
 **/


/* Advanced Animations & Micro-interactions */

/* Fade In Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale Animations */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleUp {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

/* Bounce Animation */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Pulse Animation */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Shake Animation */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

/* Slide Animations */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Rotate Animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Shimmer Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Glow Pulse */
@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color), 0 0 15px var(--primary-color);
  }
  50% {
    box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 30px var(--primary-color);
  }
}

/* Utility Classes */
.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-down {
  animation: fadeInDown 0.6s ease-out forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.4s ease-out forwards;
}

.animate-bounce {
  animation: bounce 1s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-shake {
  animation: shake 0.5s ease-in-out;
}

.animate-shimmer {
  background: linear-gradient(90deg, var(--card-bg) 0%, var(--hover-bg) 50%, var(--card-bg) 100%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

.animate-glow-pulse {
  animation: glowPulse 2s ease-in-out infinite;
}

/* Staggered Animations */
.stagger-fade-in > * {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-fade-in > *:nth-child(1) {
  animation-delay: 0.1s;
}
.stagger-fade-in > *:nth-child(2) {
  animation-delay: 0.2s;
}
.stagger-fade-in > *:nth-child(3) {
  animation-delay: 0.3s;
}
.stagger-fade-in > *:nth-child(4) {
  animation-delay: 0.4s;
}
.stagger-fade-in > *:nth-child(5) {
  animation-delay: 0.5s;
}
.stagger-fade-in > *:nth-child(6) {
  animation-delay: 0.6s;
}
.stagger-fade-in > *:nth-child(7) {
  animation-delay: 0.7s;
}
.stagger-fade-in > *:nth-child(8) {
  animation-delay: 0.8s;
}

/* Hover Effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hover-scale {
  transition: transform 0.3s ease;
}

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

.hover-glow {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4);
  transform: translateY(-2px);
}

.hover-brighten {
  transition: filter 0.3s ease;
}

.hover-brighten:hover {
  filter: brightness(1.1);
}

/* Button Animations */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

/* Card Animations */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Feature Card Animations */
.feature-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature-card .feature-icon {
  transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Input Focus Animations */
input:focus,
textarea:focus,
select:focus {
  animation: inputFocus 0.3s ease;
}

@keyframes inputFocus {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
  }
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: rotate 0.8s linear infinite;
}

.spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 4px;
}

/* Progress Bar Animation */
@keyframes progressBar {
  0% {
    width: 0%;
  }
}

.progress-bar {
  animation: progressBar 1.5s ease-out forwards;
}

/* Badge Pulse */
.badge-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Status Badge Animations */
.status-badge {
  transition: all 0.3s ease;
}

.status-badge:hover {
  transform: scale(1.1);
}

/* Table Row Hover */
.data-table tbody tr {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.data-table tbody tr:hover {
  background-color: var(--hover-bg);
  transform: scale(1.01);
}

/* Modal Animations */
.modal {
  animation: fadeIn 0.3s ease-out;
}

.modal.active .modal-content {
  animation: scaleIn 0.3s ease-out;
}

/* Alert Animations */
.alert {
  animation: slideInRight 0.5s ease-out;
}

/* Timeline Animations */
.timeline-item {
  opacity: 0;
  animation: fadeInLeft 0.6s ease-out forwards;
}

.timeline-item:nth-child(1) {
  animation-delay: 0.1s;
}
.timeline-item:nth-child(2) {
  animation-delay: 0.2s;
}
.timeline-item:nth-child(3) {
  animation-delay: 0.3s;
}
.timeline-item:nth-child(4) {
  animation-delay: 0.4s;
}

.timeline-item.completed .timeline-marker {
  animation: scaleIn 0.5s ease-out forwards;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Page Transition */
.page-transition {
  animation: fadeInUp 0.5s ease-out;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, var(--card-bg) 0%, var(--hover-bg) 50%, var(--card-bg) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

/* Tooltip Animation */
.tooltip {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

/* Dropdown Animation */
.dropdown-menu {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.dropdown-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Success Checkmark Animation */
@keyframes checkmark {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.success-checkmark {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: checkmark 0.8s ease-out forwards;
}

/* Number Counter Animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.count-up {
  animation: countUp 0.8s ease-out;
}

/* Floating Animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float {
  animation: float 3s ease-in-out infinite;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
