/* Attendances - Signature Form Styles */

/* Disclosure/Accordion Animation */
.disclosure-content {
  max-height: 0;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.disclosure-content.open {
  max-height: 500px;
}

/* Signature Placeholder Animation */
@keyframes signature-hint {
  0%, 100% {
    transform: translate(0, 0) rotate(-20deg);
    opacity: 0.6;
  }
  50% {
    transform: translate(20px, -10px) rotate(-15deg);
    opacity: 0.8;
  }
}

.signature-hand-hint i {
  animation: signature-hint 2s ease-in-out infinite;
}

.signature-placeholder {
  transition: opacity 0.3s ease;
}

/* Signature Canvas Active State (Ink Ripple Effect) */
.signature-active {
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.1),
    0 0 0 6px rgba(59, 130, 246, 0.05),
    inset 0 2px 4px rgba(59, 130, 246, 0.1);
  border-color: #3b82f6 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Status Icon Pulse Animation */
@keyframes signature-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.signature-pulse {
  animation: signature-pulse 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Preview Modal Animations */
.signature-modal-backdrop {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.signature-modal-content {
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Bounce In Animation for Success Icon */
@keyframes bounce-in {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.animate-bounce-in {
  animation: bounce-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Signature Preview Container with Glow Effect */
.signature-preview-container {
  position: relative;
}

.signature-preview-glow {
  position: absolute;
  inset: -4px;
  background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
  border-radius: 0.75rem;
  opacity: 0.15;
  filter: blur(12px);
  z-index: 0;
}

/* Status Badge Enhanced Background */
span[data-signature-target="statusLabel"] {
  transition: all 0.3s ease;
}

/* Smooth Status Transitions */
.text-green-500 {
  color: #10b981;
}

/* Enhanced Focus Visible for Accessibility */
button:focus-visible,
canvas:focus-visible,
a:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
