/* Custom styles for the Shopping Management System */

.feature-box {
    padding: 1rem;
    transition: transform 0.2s ease-in-out;
}

.feature-box:hover {
    transform: translateY(-2px);
}

.navbar-brand {
    font-weight: bold;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.125);
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.15s ease-in-out;
}

.table th {
    border-top: none;
    font-weight: 600;
}

.badge {
    font-size: 0.75em;
}

.btn {
    border-radius: 0.375rem;
}

.alert {
    border-radius: 0.5rem;
}

/* DataTables custom styling for dark theme */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: var(--bs-body-color);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--bs-body-color) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--bs-secondary) !important;
    border: 1px solid var(--bs-secondary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--bs-primary) !important;
    border: 1px solid var(--bs-primary) !important;
}

/* Profile image styling */
.navbar .rounded-circle {
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Upload area styling */
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Custom spacing */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-group-vertical .btn {
        font-size: 0.75rem;
    }
}

/* Loading states */
.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Status badges */
.badge.bg-success {
    background-color: #198754 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
    color: #000 !important;
}

/* Pre formatting for code examples */
pre {
    background-color: var(--bs-gray-900);
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid var(--bs-border-color);
}

/* Chat IA button highlight */
.btn-chat-highlight {
    position: relative;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.15) 0%, rgba(13, 202, 240, 0.15) 100%);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-chat-highlight:hover {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.25) 0%, rgba(13, 202, 240, 0.25) 100%);
    transform: translateY(-2px);
}

.btn-chat-highlight .badge {
    animation: pulse 2s infinite;
}

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

/* Filter Bar Styling */
.filter-bar {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-bar .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.filter-bar .form-control,
.filter-bar .form-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--bs-body-color);
    border-radius: 0.5rem;
    height: 42px;
    transition: all 0.2s ease;
}

.filter-bar .form-control:focus,
.filter-bar .form-select:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    color: var(--bs-body-color);
}

.filter-bar .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.filter-bar .btn-primary {
    height: 42px;
    font-weight: 600;
    border-radius: 0.5rem;
}

.filter-bar .btn-outline-secondary {
    height: 42px;
    border-radius: 0.5rem;
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.filter-bar .btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

/* Stats Card Styling */
.stats-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon.bg-primary {
    background-color: rgba(13, 110, 253, 0.2) !important;
    color: #0d6efd;
}

.stat-icon.bg-success {
    background-color: rgba(25, 135, 84, 0.2) !important;
    color: #198754;
}

.stat-icon.bg-info {
    background-color: rgba(13, 202, 240, 0.2) !important;
    color: #0dcaf0;
}

/* Responsive adjustments for filters */
@media (max-width: 992px) {
    .filter-bar {
        padding: 1rem;
    }
    
    .filter-bar .row {
        row-gap: 1rem !important;
    }
}
