/* ==========================================
   ESTILOS PERSONALIZADOS - CENTRAL SHOPPING
   ========================================== */

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

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

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

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

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

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

.shimmer {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.8) 50%, 
        rgba(255,255,255,0) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5B21B6 0%, #7C3AED 100%);
}

.hover-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hover-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.7s;
}

.hover-card:hover::before {
    left: 100%;
}

.hover-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
}

.btn-gradient {
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.7s;
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
}

.input-with-icon input {
    padding-left: 44px;
}

.table-container {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.table-responsive {
    min-width: 100%;
    border-collapse: collapse;
}

.table-responsive thead {
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
    color: white;
}

.table-responsive th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.table-responsive tbody tr {
    border-bottom: 1px solid #E5E7EB;
    transition: background 0.2s;
}

.table-responsive tbody tr:hover {
    background: rgba(124, 58, 237, 0.05);
}

.table-responsive td {
    padding: 16px;
    vertical-align: middle;
}

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-info {
    background: linear-gradient(135deg, #D6E6FF 0%, #ECF4FF 100%);
    color: #1E40AF;
    border-left: 4px solid #3B82F6;
}

.alert-success {
    background: linear-gradient(135deg, #D6FFE6 0%, #F0FFF4 100%);
    color: #065F46;
    border-left: 4px solid #10B981;
}

.alert-warning {
    background: linear-gradient(135deg, #FFF6D6 0%, #FFFBF0 100%);
    color: #92400E;
    border-left: 4px solid #F59E0B;
}

.alert-danger {
    background: linear-gradient(135deg, #FFD6D6 0%, #FFF0F0 100%);
    color: #991B1B;
    border-left: 4px solid #EF4444;
}

.product-card {
    transition: all 0.3s ease;
    position: relative;
}

.product-card .product-image {
    position: relative;
    overflow: hidden;
}

.product-card .product-image img {
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card .product-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeInUp 0.4s ease-out;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    background: linear-gradient(135deg, #1F2937 0%, #374151 100%);
    color: white;
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
}

.tooltip .tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1F2937 transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.form-help {
    display: block;
    margin-top: 4px;
    font-size: 0.875rem;
    color: #6B7280;
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #E5E7EB, transparent);
    margin: 32px 0;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.page-item {
    display: inline-flex;
}

.page-link {
    padding: 8px 16px;
    border-radius: 8px;
    background: white;
    color: #6B7280;
    font-weight: 600;
    border: 1px solid #E5E7EB;
    transition: all 0.2s;
}

.page-link:hover {
    background: rgba(124, 58, 237, 0.05);
    color: #7C3AED;
    border-color: #7C3AED;
}

.page-link.active {
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
    color: white;
    border-color: #7C3AED;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: #E5E7EB;
    color: #374151;
    border-radius: 6px;
    font-size: 0.875rem;
    margin: 2px;
}

.tag-primary {
    background: rgba(124, 58, 237, 0.1);
    color: #7C3AED;
}

.tag-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.tag-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

@media (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }
    .modal-content {
        padding: 24px 16px;
        width: 95%;
    }
    .table-responsive {
        font-size: 0.875rem;
    }
    .table-responsive th,
    .table-responsive td {
        padding: 12px 8px;
    }
}

@media (max-width: 480px) {
    .text-sm-mobile {
        font-size: 0.875rem;
    }
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
}

.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 8px;
}
