/* Fix: Customers status dropdown visibility (not clipped by table wrapper/header) */
.customers-table-responsive {
    overflow: visible !important;
}
.customers-table-responsive .table {
    overflow: visible;
}
.customers-table-responsive .dropdown-menu {
    position: absolute;
    z-index: 1080; /* above headers and table */
}

/* Custom CSS for BismarShop Admin */

/* ===== CUSTOMERS MANAGEMENT STYLES ===== */

/* Avatar styles for customer table */
.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

/* Responsive table improvements */
@media (max-width: 768px) {
    .table-responsive {
        border: none;
    }
    
    .table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.875rem;
    }
    
    .table th {
        padding: 0.75rem 0.25rem;
        font-size: 0.875rem;
        font-weight: 600;
    }
}

@media (max-width: 576px) {
    .table td, .table th {
        padding: 0.5rem 0.15rem;
        font-size: 0.8rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .badge {
        font-size: 0.65rem;
        padding: 0.25em 0.4em;
    }
}

/* Status dropdown improvements */
.dropdown-menu {
    min-width: 150px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Customer statistics cards */
.card.bg-primary, .card.bg-success, .card.bg-warning, .card.bg-danger {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.card.bg-primary:hover, .card.bg-success:hover, .card.bg-warning:hover, .card.bg-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Search and filter section */
.card-body .row .col-md-4, .card-body .row .col-md-3, .card-body .row .col-md-2 {
    margin-bottom: 1rem;
}

/* Pagination improvements */
.pagination-sm .page-link {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.pagination .page-link {
    color: var(--bismar-red);
    border-color: #dee2e6;
}

.pagination .page-link:hover {
    color: var(--bismar-red-dark);
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--bismar-red);
    border-color: var(--bismar-red);
}

/* Table enhancements */
.table-hover tbody tr:hover {
    background-color: rgba(220, 38, 38, 0.05);
}

.table-dark th {
    background-color: #343a40;
    border-color: #454d55;
    color: #fff;
}

/* Button group improvements */
.btn-group .btn {
    margin-right: 0;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-info:hover {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
}

/* Loading and empty states */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

.text-muted .fas {
    opacity: 0.5;
}

/* Mobile-specific improvements */
@media (max-width: 480px) {
    .card-header h5 {
        font-size: 1rem;
    }
    
    .btn-toolbar .btn-group {
        margin-bottom: 0.5rem;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .btn-toolbar {
        margin-top: 1rem;
    }
}

/* Custom status badges */
.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Improved form controls */
.form-control:focus, .form-select:focus {
    border-color: var(--bismar-red-light);
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
}

/* Card shadow improvements */
.card.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

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

/* ===== WIDGETS/BANNER MANAGEMENT STYLES ===== */

/* Upload area styles */
.upload-area {
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.upload-area:hover {
    background-color: rgba(13, 110, 253, 0.05);
    border-color: #0d6efd !important;
}

.upload-area.border-success {
    border-color: #198754 !important;
    background-color: rgba(25, 135, 84, 0.05);
}

/* Widget card styles */
.widget-card {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

.widget-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.widget-preview {
    transition: transform 0.3s ease;
}

.widget-card:hover .widget-preview {
    transform: scale(1.05);
}

/* Statistics cards hover effects */
.card.bg-primary:hover,
.card.bg-success:hover,
.card.bg-warning:hover,
.card.bg-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.2);
}

/* Filter section styles */
.input-group .input-group-text {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.form-select:focus,
.form-control:focus {
    border-color: var(--bismar-red-light);
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
}

/* View toggle buttons */
.btn-group .btn.active {
    background-color: var(--bismar-red);
    border-color: var(--bismar-red);
    color: white;
}

/* Table improvements */
.table th {
    border-top: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.table td {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(220, 38, 38, 0.05);
}

/* Badge improvements */
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Button improvements */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.btn-group .btn:last-child {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* Loading and empty states */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive improvements for widgets */
@media (max-width: 768px) {
    .widget-card {
        margin-bottom: 1rem;
    }
    
    .upload-area {
        min-height: 100px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-group {
        display: flex;
        width: 100%;
    }
    
    .btn-group .btn {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .statistics-card h4 {
        font-size: 1.5rem;
    }
    
    .statistics-card h6 {
        font-size: 0.875rem;
    }
    
    .widget-preview {
        height: 150px !important;
    }
    
    .upload-area {
        min-height: 80px;
        padding: 1rem;
    }
}

/* Animation for loading states */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.widget-card {
    animation: fadeIn 0.5s ease-out;
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(45deg, var(--bismar-red), var(--bismar-red-light)) !important;
}

/* File preview styles */
#filePreview img {
    border: 2px solid #198754;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Success states */
.border-success {
    border-color: #198754 !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}
:root {
    --bismar-red: #dc2626;
    --bismar-red-light: #ef4444;
    --bismar-red-dark: #b91c1c;
    --bismar-red-solid: #c53030;
    --bismar-red-lighter: #feb2b2;
    --bismar-red-darker: #9b1c1c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.bg-red {
    background-color: var(--bismar-red) !important;
}

.text-red {
    color: var(--bismar-red) !important;
}

.navbar-brand {
    font-size: 1.5rem;
}

.sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--bismar-red) #f1f1f1;
    scroll-behavior: smooth;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--bismar-red);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--bismar-red-dark);
}

.sidebar .nav {
    padding-bottom: 20px;
    height: 100%;
}

/* Sidebar-only stacking and alignment to keep items in a single column */
.sidebar .nav.flex-column {
    display: flex !important;
    flex-direction: column !important;
}

.sidebar .nav.flex-column .nav-item {
    width: 100%;
}

.sidebar .nav.flex-column .nav-link {
    display: flex;
    align-items: center;
    line-height: 1.25;
}

.sidebar .nav.flex-column .nav-link i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem; /* normalize icon size */
    min-width: 20px; /* keep icon width consistent so labels align */
    margin-right: 8px !important; /* normalize spacing to match sidebar style */
}

/* Ensure sidebar content doesn't get cut off */
.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: 0.5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 2px 8px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    color: var(--bismar-red);
    background-color: rgba(220, 38, 38, 0.1);
}

.sidebar .nav-link.active {
    color: var(--bismar-red);
    background-color: rgba(220, 38, 38, 0.1);
    font-weight: 600;
}

.main-content {
    margin-top: 56px;
    padding-top: 20px;
}

.content-section {
    animation: fadeIn 0.3s ease-in;
}

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

/* Stats Cards */
.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2) !important;
}

.border-left-primary {
    border-left: 4px solid var(--bismar-red-solid) !important;
}

.border-left-success {
    border-left: 4px solid var(--bismar-red-dark) !important;
}

.border-left-info {
    border-left: 4px solid var(--bismar-red) !important;
}

.border-left-warning {
    border-left: 4px solid var(--bismar-red-light) !important;
}

.text-xs {
    font-size: 0.7rem;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

.text-gray-300 {
    color: #dddfeb !important;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--bismar-red-solid);
    color: white;
    border: none;
    font-weight: 600;
    padding: 15px;
}

.table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: rgba(197, 48, 48, 0.08);
}

/* Buttons */
.btn-primary {
    background-color: var(--bismar-red-solid);
    border-color: var(--bismar-red-solid);
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--bismar-red-darker);
    border-color: var(--bismar-red-darker);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 4px 12px;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* Status badges */
.badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
}

.status-active {
    background-color: var(--bismar-red-dark);
    color: white;
}

.status-inactive {
    background-color: var(--bismar-red-lighter);
    color: var(--bismar-red-darker);
}

.status-pending {
    background-color: var(--bismar-red-light);
    color: white;
}

.status-completed {
    background-color: var(--bismar-red-solid);
    color: white;
}

.status-cancelled {
    background-color: var(--bismar-red-darker);
    color: white;
}

/* Product images */
.product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #eee;
}

/* Modal */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    background-color: var(--bismar-red-solid);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* Form controls */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e3e6f0;
    padding: 10px 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--bismar-red-solid);
    box-shadow: 0 0 0 0.2rem rgba(197, 48, 48, 0.25);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
}

/* Table enhancements */
.table td {
    vertical-align: middle;
}

.table .fw-bold {
    font-weight: 600;
}

/* Responsive */
/* Product Management Enhancements */
.product-image-small {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.product-images {
    display: flex;
    align-items: center;
    gap: 4px;
}

.variants-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.variant-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.variant-item:hover {
    background-color: #e9ecef;
}

/* Modal enhancements */
.modal-lg {
    max-width: 800px;
}

/* Image preview styling */
#imagePreview .position-relative {
    margin-right: 10px;
    margin-bottom: 10px;
}

#imagePreview img {
    border: 2px solid #dee2e6;
    transition: border-color 0.3s ease;
}

#imagePreview img:hover {
    border-color: var(--primary-color);
}

/* Status badges enhancements */
.badge.status-active {
    background-color: #28a745;
}

.badge.status-inactive {
    background-color: #6c757d;
}

.badge.status-low_stock {
    background-color: #ffc107;
    color: #212529;
}

.badge.status-out_of_stock {
    background-color: #dc3545;
}

/* Admin Management Styles */
.status-active {
    background-color: #28a745 !important;
    color: white !important;
}

.status-inactive {
    background-color: #dc3545 !important;
    color: white !important;
}

.action-buttons {
    white-space: nowrap;
}

.action-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Action buttons styling */
.action-buttons {
    white-space: nowrap;
}

.action-buttons .btn {
    margin-right: 4px;
}

.action-buttons .btn:last-child {
    margin-right: 0;
}

/* Admin Management Section Styling */
#admin-management .card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

#admin-management .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

#admin-management .table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    color: #495057;
}

#admin-management .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Search form styling */
#admin-management .row.g-2 {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

/* Modal styling */
#editUserModal .modal-header {
    background-color: #dc3545;
    color: white;
}

#editUserModal .modal-header .btn-close {
    filter: invert(1);
}

/* Force show admin management menu */
.sidebar .nav-item a[onclick*="admin-management"] {
    display: block !important;
    visibility: visible !important;
}

.sidebar .nav-item:has(a[onclick*="admin-management"]) {
    display: block !important;
    visibility: visible !important;
}

/* Analytics specific styles */
.analytics-card {
    transition: transform 0.2s ease;
}

.analytics-card:hover {
    transform: translateY(-2px);
}

.analytics-card .card-body {
    padding: 1.5rem;
}

.analytics-card i {
    margin-bottom: 0.5rem;
}

.visitor-stats {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
}

.progress {
    background-color: #e9ecef;
}

.progress-bar {
    background-color: var(--primary-color)
}

/* ===== CATEGORIES STYLING ===== */
.categories-stats-card {
    border-left: 4px solid #007bff;
    transition: transform 0.2s ease-in-out;
}

.categories-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.categories-table {
    font-size: 0.9rem;
}

.categories-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.categories-table td {
    vertical-align: middle;
    padding: 0.75rem;
}

.category-image {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.category-description {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.3;
}

.category-slug {
    font-family: 'Courier New', monospace;
    background-color: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    color: #495057;
}

.category-actions .btn {
    margin: 0 2px;
    padding: 0.375rem 0.75rem;
}

.category-modal .form-label {
    font-weight: 600;
    color: #495057;
}

.category-modal .form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.seo-section {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-top: 1rem;
}

.seo-section h6 {
    color: #6c757d;
    margin-bottom: 0.75rem;
}

/* Border colors for stats cards */
.border-left-primary { border-left-color: #007bff !important; }
.border-left-success { border-left-color: #28a745 !important; }
.border-left-info { border-left-color: #17a2b8 !important; }
.border-left-warning { border-left-color: #ffc107 !important; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-group .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .categories-table td {
        padding: 0.5rem;
    }
    
    .category-image {
        width: 24px;
        height: 24px;
    }
    
    .categories-stats-card .h5 {
        font-size: 1.1rem;
    }
    
    .category-modal .modal-dialog {
        margin: 0.5rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: relative;
        top: 0;
        padding: 20px 0;
        margin-left: -250px;
    }
    
    .sidebar.show {
        margin-left: 0;
    }
    
    .main-content {
        margin-top: 0;
        margin-left: 0;
    }
    
    .navbar-toggler {
        border: none;
        display: block;
    }
    
    .product-images {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .variants-summary {
        flex-direction: column;
    }
    
    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .action-buttons .btn {
        margin-right: 0;
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Currency formatting */
.currency {
    font-weight: 600;
    color: var(--bismar-red-solid);
}

/* Action buttons */
.action-buttons .btn {
    margin: 0 2px;
    padding: 4px 8px;
    font-size: 0.8rem;
}

/* Chart container */
#salesChart {
    max-height: 400px;
}

/* Dashboard enhancements */
.col-xl-2-4 {
    flex: 0 0 auto;
    width: 20%;
}

@media (max-width: 1200px) {
    .col-xl-2-4 {
        width: 33.333333%;
    }
}

@media (max-width: 768px) {
    .col-xl-2-4 {
        width: 50%;
    }
}

/* Notification styles */
.notification-item {
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: rgba(0,0,0,0.02);
    border-radius: 8px;
}

.notification-item:last-child {
    border-bottom: none !important;
}

/* Best sellers styling */
.best-seller-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.best-seller-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Sales summary cards */
.card.bg-primary .opacity-75 {
    opacity: 0.75;
}

.card.bg-success .opacity-75 {
    opacity: 0.75;
}

.card.bg-info .opacity-75 {
    opacity: 0.75;
}

/* Status badges enhancements */
.status-processing {
    background-color: var(--bismar-red);
    color: white;
}

.status-shipped {
    background-color: var(--bismar-red-dark);
    color: white;
}

/* Border colors for order status cards */
.border-left-danger {
    border-left: 4px solid var(--bismar-red-darker) !important;
}

/* Responsive grid fix */
@media (max-width: 576px) {
    .col-xl-2-4 {
        width: 100%;
    }
}

/* ===== VOUCHERS & FLASH SALES STYLING ===== */

/* Voucher and Flash Sale specific cards */
.voucher-card, .flash-sale-card {
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.voucher-card:hover, .flash-sale-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.15);
}

/* Voucher code styling */
.voucher-code {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    background-color: rgba(220, 38, 38, 0.1);
    color: var(--bismar-red-dark);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Discount badges */
.discount-badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}

.discount-percentage {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
}

.discount-fixed {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
}

/* Status indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-indicator.active {
    color: #059669;
}

.status-indicator.inactive {
    color: #6b7280;
}

.status-indicator.expired {
    color: #dc2626;
}

.status-indicator.scheduled {
    color: #f59e0b;
}

/* Usage progress bars */
.usage-progress {
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.usage-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--bismar-red), var(--bismar-red-light));
    transition: width 0.3s ease;
}

/* Modal form enhancements */
.voucher-form .form-group, .flash-sale-form .form-group {
    margin-bottom: 1.5rem;
}

.voucher-form .form-label, .flash-sale-form .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.voucher-form .form-control, .flash-sale-form .form-control,
.voucher-form .form-select, .flash-sale-form .form-select {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.voucher-form .form-control:focus, .flash-sale-form .form-control:focus,
.voucher-form .form-select:focus, .flash-sale-form .form-select:focus {
    border-color: var(--bismar-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    outline: none;
}

/* Table enhancements for vouchers and flash sales */
.vouchers-table, .flash-sales-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.vouchers-table thead th, .flash-sales-table thead th {
    background: linear-gradient(135deg, var(--bismar-red), var(--bismar-red-dark));
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 16px 12px;
    border: none;
}

.vouchers-table tbody tr, .flash-sales-table tbody tr {
    transition: all 0.2s ease;
}

.vouchers-table tbody tr:hover, .flash-sales-table tbody tr:hover {
    background-color: rgba(220, 38, 38, 0.05);
    transform: scale(1.01);
}

/* Action buttons for tables */
.table-actions {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.table-actions .btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.table-actions .btn:hover {
    transform: translateY(-1px);
}

/* Stats cards specific to promotions */
.promo-stats-card {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(220, 38, 38, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.promo-stats-card:hover {
    border-color: rgba(220, 38, 38, 0.2);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.1);
}

.promo-stats-card .card-body {
    padding: 1.5rem;
}

.promo-stats-card .stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.promo-stats-card .stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bismar-red-dark);
    line-height: 1;
}

.promo-stats-card .stats-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Date range indicators */
.date-range {
    font-size: 0.85rem;
    color: #6b7280;
    background-color: #f3f4f6;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.date-range.active {
    background-color: rgba(220, 38, 38, 0.1);
    color: var(--bismar-red-dark);
}

/* Loading states */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.loading-spinner .spinner-border {
    color: var(--bismar-red);
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h5 {
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Responsive improvements for promotions */
@media (max-width: 768px) {
    .vouchers-table, .flash-sales-table {
        font-size: 0.85rem;
    }
    
    .vouchers-table thead th, .flash-sales-table thead th {
        padding: 12px 8px;
        font-size: 0.75rem;
    }
    
    .vouchers-table tbody td, .flash-sales-table tbody td {
        padding: 10px 8px;
    }
    
    .table-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .table-actions .btn {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .voucher-code {
        font-size: 0.8rem;
        padding: 2px 6px;
    }
    
    .discount-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .promo-stats-card .stats-number {
        font-size: 1.5rem;
    }
    
    .promo-stats-card .stats-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    /* Sidebar responsive */
    .sidebar {
        max-height: calc(100vh - 56px);
    }
    
    .sidebar .nav-link {
        padding: 10px 15px;
        margin: 1px 5px;
        font-size: 0.9rem;
    }
}

/* Print styles */
@media print {
    .vouchers-table, .flash-sales-table {
        box-shadow: none;
    }
    
    .table-actions {
        display: none;
    }
    
    .promo-stats-card {
        border: 1px solid #ddd;
        box-shadow: none;
    }
}
