/* ============= CUSTOM PRODUCTS MODULE STYLES ============= */

/* Custom Products Module Styles */
.product-thumbnail {
    transition: transform 0.3s ease;
}

.product-thumbnail:hover {
    transform: scale(1.1);
    cursor: pointer;
}

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

.badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Enhanced Form Styles */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25);
}

/* Table Row Hover Effects */
#customProductsTable tbody tr {
    transition: all 0.3s ease;
}

#customProductsTable tbody tr:hover {
    background-color: rgba(245, 158, 11, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Button Group Animations */
.btn-group .btn {
    transition: all 0.3s ease;
}

.btn-group .btn:hover {
    transform: translateY(-2px);
}

/* Modal Animations */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: none;
}

/* Custom Product Card Enhancements */
.stats-card.primary {
    background: linear-gradient(135deg, var(--primary-color), #f97316);
}

.stats-card.warning {
    background: linear-gradient(135deg, #f59e0b, #eab308);
}

.stats-card.success {
    background: linear-gradient(135deg, var(--success-color), #059669);
}

/* Pagination Enhancements */
.pagination .page-link {
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Filter Cards */
.card.mb-4 {
    border: none;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.card.mb-4:hover {
    box-shadow: var(--shadow-md);
}

/* Status-specific styling */
.badge.bg-warning {
    background-color: #f59e0b !important;
}

.badge.bg-info {
    background-color: #3b82f6 !important;
}

/* Image zoom effect in modal */
.modal img.img-fluid:hover {
    cursor: zoom-in;
}

/* Image Preview Styles */
.image-preview-item {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 4px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.image-preview-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-preview-item img {
    transition: transform 0.2s ease;
}

.image-preview-item:hover img {
    transform: scale(1.05);
}

/* Custom File Upload Enhancement */
.form-control[type="file"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25);
}

.form-control[type="file"] {
    border: 2px dashed #dee2e6;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.form-control[type="file"]:hover {
    border-color: var(--primary-color);
    background-color: #fff;
}

/* Modal Enhancements */
.modal-lg {
    max-width: 900px;
}

@media (max-width: 768px) {
    .modal-lg {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
}

/* Responsive Image Grid */
@media (max-width: 576px) {
    #imagePreviewContainer .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Category Badge Styling */
.category-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

/* File Upload Helper Text */
.form-text {
    font-size: 0.875rem;
    color: #6c757d;
}

.form-text .fas {
    color: var(--primary-color);
}

/* Image Remove Button */
.image-preview-item .btn-danger {
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.image-preview-item:hover .btn-danger {
    opacity: 1;
}
