/* =====================================================================
   SF FLORISTERIA - ESTILOS PERSONALIZADOS
   ===================================================================== */

/* Scrollbar elegante */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #f9a8d4; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #ec4899; }

/* Animaciones de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.fade-in { animation: fadeIn 0.4s ease-out both; }
.fade-in-up { animation: fadeInUp 0.5s ease-out both; }
.scale-in { animation: scaleIn 0.3s ease-out both; }

/* Stagger children */
.stagger > * { animation: fadeInUp 0.4s ease-out both; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }
.stagger > *:nth-child(7) { animation-delay: 0.35s; }
.stagger > *:nth-child(8) { animation-delay: 0.4s; }

/* Line clamp */
.line-clamp-1, .line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-1 { -webkit-line-clamp: 1; }
.line-clamp-2 { -webkit-line-clamp: 2; }

/* Input numerico sin spinners */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] { -moz-appearance: textfield; }

/* Focus mejorado con ring personalizado */
*:focus-visible {
    outline: 2px solid #ec4899;
    outline-offset: 2px;
    border-radius: 0.375rem;
}

/* SweetAlert customizado */
.swal2-popup {
    border-radius: 1rem !important;
    font-family: Inter, sans-serif !important;
}
.swal2-title { font-weight: 700 !important; }
.swal2-styled.swal2-confirm {
    background: linear-gradient(to right, #ec4899, #d946ef) !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.3) !important;
}
.swal2-styled.swal2-cancel {
    border-radius: 0.5rem !important;
    font-weight: 500 !important;
}

/* Loading shimmer */
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.shimmer {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Skeleton loading cards */
.skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 0.75rem;
}

/* Hover card effect */
.card-hover {
    transition: all 0.2s ease;
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* Table row hover animation */
tr.hover\:bg-pink-50\/30 {
    transition: background-color 0.15s ease;
}

/* Tabla responsive wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Transiciones suaves en enlaces y botones */
a, button {
    transition: all 0.15s ease;
}

/* Badge pulse animation for stock bajo */
@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.badge-pulse {
    animation: badgePulse 2s ease-in-out infinite;
}

/* Progress bar animation */
.progress-bar {
    transition: width 1s ease-in-out;
}

/* Estilos de impresion */
@media print {
    body { font-size: 10pt; }
    @page { margin: 1.5cm; }
    .no-print { display: none !important; }
}

/* Responsive table improvements */
@media (max-width: 640px) {
    .card-mobile {
        border-radius: 0.75rem;
        overflow: hidden;
    }
}

/* Smooth number transitions */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* Dropdown menu animation */
@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.dropdown-menu {
    animation: dropdownIn 0.15s ease-out both;
    transform-origin: top right;
}
