/**
 * VERVE - Custom Styles
 * Additional styles beyond Tailwind
 */

/* ============================================
   SweetAlert2 Custom Styles - VERVE Theme
   ============================================ */

/* Main popup */
.swal2-popup {
  background: #1a1a1a !important;
  border: 1px solid #27272A !important;
  border-radius: 1rem !important;
  padding: 2rem !important;
}

/* Title */
.swal2-title {
  color: #FAFAFA !important;
  font-weight: 700 !important;
  font-size: 1.5rem !important;
  margin-bottom: 1rem !important;
}

/* HTML content */
.swal2-html-container {
  color: #A1A1AA !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  margin: 1rem 0 !important;
}

/* Confirm button */
.swal2-confirm {
  background: #0EA5E9 !important;
  border-radius: 0.5rem !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.5rem !important;
  font-size: 1rem !important;
  border: none !important;
  box-shadow: 0 10px 40px rgba(14, 165, 233, 0.2) !important;
  transition: all 0.2s ease !important;
}

.swal2-confirm:hover {
  background: #0284C7 !important;
  box-shadow: 0 20px 60px rgba(14, 165, 233, 0.35) !important;
  transform: scale(1.02) !important;
}

.swal2-confirm:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3) !important;
}

/* Cancel button */
.swal2-cancel {
  background: #3F3F46 !important;
  border-radius: 0.5rem !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.5rem !important;
  font-size: 1rem !important;
  border: none !important;
  color: #FAFAFA !important;
  transition: all 0.2s ease !important;
}

.swal2-cancel:hover {
  background: #52525B !important;
}

.swal2-cancel:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(63, 63, 70, 0.3) !important;
}

/* Deny button */
.swal2-deny {
  background: #EF4444 !important;
  border-radius: 0.5rem !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.5rem !important;
  font-size: 1rem !important;
  border: none !important;
}

.swal2-deny:hover {
  background: #DC2626 !important;
}

/* Success icon */
.swal2-icon.swal2-success {
  border-color: #10B981 !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
  background-color: #10B981 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(16, 185, 129, 0.3) !important;
}

/* Error icon */
.swal2-icon.swal2-error {
  border-color: #EF4444 !important;
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
  background-color: #EF4444 !important;
}

/* Warning icon */
.swal2-icon.swal2-warning {
  border-color: #F59E0B !important;
  color: #F59E0B !important;
}

/* Info icon */
.swal2-icon.swal2-info {
  border-color: #0EA5E9 !important;
  color: #0EA5E9 !important;
}

/* Question icon */
.swal2-icon.swal2-question {
  border-color: #0EA5E9 !important;
  color: #0EA5E9 !important;
}

/* Close button */
.swal2-close {
  color: #71717A !important;
  font-size: 2rem !important;
  transition: color 0.2s ease !important;
}

.swal2-close:hover {
  color: #FAFAFA !important;
}

/* Loading */
.swal2-loader {
  border-color: #0EA5E9 transparent #0EA5E9 transparent !important;
}

/* Timer progress bar */
.swal2-timer-progress-bar {
  background: #0EA5E9 !important;
}

/* Input fields */
.swal2-input,
.swal2-textarea {
  background: #121212 !important;
  border: 1px solid #3F3F46 !important;
  color: #FAFAFA !important;
  border-radius: 0.5rem !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  transition: border-color 0.2s ease !important;
}

.swal2-input:focus,
.swal2-textarea:focus {
  border-color: #0EA5E9 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important;
}

.swal2-input::placeholder,
.swal2-textarea::placeholder {
  color: #71717A !important;
}

/* Validation message */
.swal2-validation-message {
  background: #1a1a1a !important;
  color: #EF4444 !important;
  border: 1px solid #EF4444 !important;
}

/* Footer */
.swal2-footer {
  border-top: 1px solid #27272A !important;
  color: #71717A !important;
  padding-top: 1rem !important;
}

/* ============================================
   Toast Styles
   ============================================ */

.verve-toast {
  background: #1a1a1a !important;
  border: 1px solid #27272A !important;
  border-left: 4px solid #0EA5E9 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.verve-toast .swal2-title {
  color: #FAFAFA !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
}

.verve-toast .swal2-html-container {
  color: #A1A1AA !important;
  font-size: 0.875rem !important;
}

/* Toast icons */
.verve-toast .swal2-icon {
  width: 2rem !important;
  height: 2rem !important;
  margin: 0 0.75rem 0 0 !important;
}

.verve-toast.swal2-icon-success {
  border-left-color: #10B981 !important;
}

.verve-toast.swal2-icon-error {
  border-left-color: #EF4444 !important;
}

.verve-toast.swal2-icon-warning {
  border-left-color: #F59E0B !important;
}

.verve-toast.swal2-icon-info {
  border-left-color: #0EA5E9 !important;
}

/* ============================================
   Backdrop
   ============================================ */

/* Solo para los dialogos: un toast no debe oscurecer ni desenfocar la pagina.
   Antes se aplicaba tambien a la esquina donde sale el toast. */
body:not(.swal2-toast-shown) .swal2-container {
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(8px) !important;
}
body.swal2-toast-shown .swal2-container {
  background: transparent !important;
  backdrop-filter: none !important;
}

/* ============================================
   Custom animations
   ============================================ */

@keyframes slideInDown {
  from {
    transform: translate3d(0, -100%, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

.swal2-show {
  animation: slideInDown 0.3s !important;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 640px) {
  .swal2-popup {
    width: 90% !important;
    padding: 1.5rem !important;
  }
  
  .swal2-title {
    font-size: 1.25rem !important;
  }
  
  .swal2-html-container {
    font-size: 0.875rem !important;
  }
  
  .swal2-confirm,
  .swal2-cancel,
  .swal2-deny {
    padding: 0.625rem 1.25rem !important;
    font-size: 0.875rem !important;
  }
}

/* ============================================
   Additional VERVE Components
   ============================================ */

/* Skeleton loader */
.skeleton {
  background: linear-gradient(
    90deg,
    #1a1a1a 0%,
    #27272A 50%,
    #1a1a1a 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Pulse animation */
.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

/* Fade in animation */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

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

/* Slide up animation */
.slide-up {
  animation: slideUp 0.3s ease-out;
}

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

/* Glow effect on hover */
.glow-on-hover {
  transition: all 0.3s ease;
}

.glow-on-hover:hover {
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
}

/* Custom scrollbar - VERVE style */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #3F3F46;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #52525B;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #3F3F46 #0a0a0a;
}
/* Foco visible al navegar con teclado (accesibilidad) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #0EA5E9;
  outline-offset: 2px;
}
