/* Enhanced Mobile-Responsive & Professional CSS for Amuuso ERP */
/* This CSS enhances the existing styles without breaking functionality */

/* Global Stat Card Styling - 50% Gray Background (only for top stat cards) */
.stats-grid .stat-card {
    background: #808080 !important;
    color: white !important;
}

.stats-grid .stat-card * {
    color: white !important;
}

.stats-grid .stat-card:hover {
    background: #6c6c6c !important;
}

/* Force all text elements in stat cards to be white */
.stats-grid .stat-card,
.stats-grid .stat-card div,
.stats-grid .stat-card span,
.stats-grid .stat-card p,
.stats-grid .stat-card h1,
.stats-grid .stat-card h2,
.stats-grid .stat-card h3,
.stats-grid .stat-card h4,
.stats-grid .stat-card h5,
.stats-grid .stat-card h6 {
    color: white !important;
}

/* ===== MOBILE-FIRST RESPONSIVE IMPROVEMENTS ===== */

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
    .admin-header {
        padding: 0.75rem 1rem;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid #e9ecef;
    }
    
    .header-brand {
        flex: 1;
        justify-content: flex-start;
    }
    
    .header-logo {
        height: 35px;
    }
    
    .admin-header h1 {
        font-size: 1.2rem;
        margin-left: 0.5rem;
    }
    
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        gap: 4px;
        margin-left: auto;
    }
    
    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: #495057;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Mobile Navigation Menu */
    .header-nav {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        max-height: calc(100vh - 100%);
        overflow-y: auto;
    }
    
    .header-nav.active {
        transform: translateY(0);
    }
    
    .nav-main {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .nav-btn, .admin-btn {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
        font-size: 1rem;
        border-radius: 8px;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .nav-user {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e9ecef;
    }
    
    .logout-btn {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }
}

/* Enhanced Mobile Tables */
@media (max-width: 768px) {
    .products-container {
        margin: 0 -0.5rem;
        border-radius: 0;
    }
    
    .products-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .products-table {
        min-width: 100%;
        width: max-content;
    }
    
    .products-table th,
    .products-table td {
        padding: 12px 8px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .products-table th:first-child,
    .products-table td:first-child {
        position: sticky;
        left: 0;
        background: #f8f9fa;
        z-index: 5;
    }
    
    .products-table th:first-child {
        background: #e9ecef;
    }
    
    /* Mobile-friendly product cards as alternative to table */
    .products-mobile-view {
        display: none;
    }
    
    .products-table-container {
        display: block;
    }
}

/* Mobile Card View for Products (Alternative to table) */
@media (max-width: 480px) {
    .products-table-container {
        display: none;
    }
    
    .products-mobile-view {
        display: block;
    }
    
    .product-mobile-card {
        background: white;
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border: 1px solid #e9ecef;
    }
    
    .product-mobile-card .product-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 0.5rem;
        max-width: none;
    }
    
    .product-mobile-card .product-codes {
        margin-bottom: 0.75rem;
    }
    
    .product-mobile-card .product-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }
    
    .product-mobile-card .meta-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem;
        background: #f8f9fa;
        border-radius: 6px;
    }
    
    .product-mobile-card .meta-label {
        font-size: 0.8rem;
        color: #6c757d;
        font-weight: 500;
    }
    
    .product-mobile-card .meta-value {
        font-size: 0.9rem;
        font-weight: 600;
        color: #2c3e50;
    }
}

/* ===== PROFESSIONAL DESIGN ENHANCEMENTS ===== */

/* Enhanced Color Scheme */
:root {
    --primary-color: #667eea;
    --primary-hover: #5a6fd8;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #dee2e6;
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 24px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* Enhanced Button Styles */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    border: 1px solid transparent;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-light);
}

/* Enhanced Form Elements */
.form-group input,
.search-input {
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.form-group input:focus,
.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Enhanced Cards and Containers */
.admin-main,
.search-container,
.products-container,
.supplier-header,
.product-header {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Enhanced Table Styling */
.products-table {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.products-table th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.products-table tr {
    transition: var(--transition);
}

.products-table tr:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

/* Enhanced Status Indicators */
.product-status {
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.4rem 0.8rem;
}

.product-status.active {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.2));
    color: var(--success-color);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.product-status.inactive {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.2));
    color: var(--danger-color);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Enhanced Search and Filter */
.search-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
}

.search-form {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.search-input {
    flex: 1;
    min-height: 44px; /* Touch-friendly */
}

.search-btn, .clear-btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.search-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.clear-btn {
    background: linear-gradient(135deg, var(--secondary-color), #5a6268);
    color: white;
    border: none;
}

/* Enhanced Pagination */
.pagination-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
}

.pagination-btn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.pagination-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

.pagination-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    box-shadow: var(--shadow-medium);
}

/* Enhanced Mobile Touch Targets */
@media (max-width: 768px) {
    .btn, .nav-btn, .admin-btn, .logout-btn {
        min-height: 44px;
        padding: 12px 16px;
        font-size: 1rem;
    }
    
    .search-btn, .clear-btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    .pagination-btn {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Enhanced Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.loading::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Error and Success Messages */
.success-message {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.2));
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: var(--border-radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
    color: var(--success-color);
    box-shadow: var(--shadow-light);
}

.error-message {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.2));
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: var(--border-radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
    color: var(--danger-color);
    box-shadow: var(--shadow-light);
}

/* Enhanced Breadcrumb */
.breadcrumb {
    background: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
}

.breadcrumb-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumb-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Enhanced Filter Indicator */
.filter-indicator {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.2));
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: var(--border-radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
}

.clear-filter-btn {
    background: linear-gradient(135deg, var(--success-color), #218838);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.clear-filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

/* Enhanced Statistics Cards */
.stat-card {
    background: linear-gradient(135deg, var(--danger-color), #b02a37);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== SPECIFIC AMUUSO INTERFACE IMPROVEMENTS ===== */

/* Fix table alignment issues */
.products-table td:nth-child(7), /* WAARDE column */
.products-table td:nth-child(6), /* PRIJS column */
.products-table td:nth-child(5), /* ORDERS column */
.products-table td:nth-child(4) { /* AVAILABLE column */
    text-align: right !important;
}

.products-table th:nth-child(7),
.products-table th:nth-child(6),
.products-table th:nth-child(5),
.products-table th:nth-child(4) {
    text-align: right !important;
}

/* Improve table readability */
.products-table td {
    padding: 1rem 0.75rem !important;
    vertical-align: top;
    border-bottom: 1px solid #f0f0f0;
}

.products-table tr:hover {
    background: rgba(102, 126, 234, 0.05) !important;
}

/* Fix address wrapping */
.products-table td:nth-child(3) { /* ADRES column */
    min-width: 200px;
    max-width: 250px;
    word-wrap: break-word;
    line-height: 1.4;
}

/* Improve search bar styling */
.search-container {
    background: white !important;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.search-btn {
    background: linear-gradient(135deg, #667eea, #5a6fd8);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.clear-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Improve main content background */
.admin-main {
    background: white !important;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    padding: 2rem;
}

/* Fix all table backgrounds for better readability */
.products-container,
.products-table-container,
table,
.table,
.data-table,
.content-table {
    background: white !important;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

/* Fix all table row backgrounds */
.products-table tr,
table tr,
.table tr,
.data-table tr,
.content-table tr {
    background: white !important;
}

.products-table tr:nth-child(even),
table tr:nth-child(even),
.table tr:nth-child(even),
.data-table tr:nth-child(even),
.content-table tr:nth-child(even) {
    background: #f8f9fa !important;
}

/* Fix all table cell backgrounds */
.products-table td,
table td,
.table td,
.data-table td,
.content-table td {
    background: transparent !important;
    color: #2c3e50 !important;
    border-bottom: 1px solid #e9ecef;
}

.products-table tr:nth-child(even) td,
table tr:nth-child(even) td,
.table tr:nth-child(even) td,
.data-table tr:nth-child(even) td,
.content-table tr:nth-child(even) td {
    background: transparent !important;
}

/* Fix table header backgrounds */
.products-table th,
table th,
.table th,
.data-table th,
.content-table th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    color: #495057 !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
    border-bottom: 2px solid #dee2e6;
}

/* Additional table fixes for all possible table classes */
.admin-table,
.bestellingen-table,
.klanten-table,
.leveranciers-table,
.invoices-table,
.shipments-table,
.picklists-table,
.analytics-table,
.reports-table,
.data-grid,
.grid-table,
.list-table,
.results-table {
    background: white !important;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.admin-table tr,
.bestellingen-table tr,
.klanten-table tr,
.leveranciers-table tr,
.invoices-table tr,
.shipments-table tr,
.picklists-table tr,
.analytics-table tr,
.reports-table tr,
.data-grid tr,
.grid-table tr,
.list-table tr,
.results-table tr {
    background: white !important;
}

.admin-table tr:nth-child(even),
.bestellingen-table tr:nth-child(even),
.klanten-table tr:nth-child(even),
.leveranciers-table tr:nth-child(even),
.invoices-table tr:nth-child(even),
.shipments-table tr:nth-child(even),
.picklists-table tr:nth-child(even),
.analytics-table tr:nth-child(even),
.reports-table tr:nth-child(even),
.data-grid tr:nth-child(even),
.grid-table tr:nth-child(even),
.list-table tr:nth-child(even),
.results-table tr:nth-child(even) {
    background: #f8f9fa !important;
}

.admin-table td,
.bestellingen-table td,
.klanten-table td,
.leveranciers-table td,
.invoices-table td,
.shipments-table td,
.picklists-table td,
.analytics-table td,
.reports-table td,
.data-grid td,
.grid-table td,
.list-table td,
.results-table td {
    background: transparent !important;
    color: #2c3e50 !important;
    border-bottom: 1px solid #e9ecef;
}

.admin-table th,
.bestellingen-table th,
.klanten-table th,
.leveranciers-table th,
.invoices-table th,
.shipments-table th,
.picklists-table th,
.analytics-table th,
.reports-table th,
.data-grid th,
.grid-table th,
.list-table th,
.results-table th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    color: #495057 !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
    border-bottom: 2px solid #dee2e6;
}

/* Force override any dark backgrounds with !important */
*[style*="background-color: #4a4a4a"],
*[style*="background-color: #333"],
*[style*="background-color: #666"],
*[style*="background-color: #555"],
*[style*="background-color: #444"],
*[style*="background-color: #2c2c2c"],
*[style*="background-color: #1a1a1a"] {
    background-color: white !important;
}

/* Fix any inline styles that might override our CSS */
tr[style*="background-color: #4a4a4a"],
tr[style*="background-color: #333"],
tr[style*="background-color: #666"],
tr[style*="background-color: #555"],
tr[style*="background-color: #444"] {
    background-color: white !important;
}

tr:nth-child(even)[style*="background-color: #4a4a4a"],
tr:nth-child(even)[style*="background-color: #333"],
tr:nth-child(even)[style*="background-color: #666"],
tr:nth-child(even)[style*="background-color: #555"],
tr:nth-child(even)[style*="background-color: #444"] {
    background-color: #f8f9fa !important;
}

/* Improve table headers */
.products-table th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    color: #495057;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
    border-bottom: 2px solid #dee2e6;
}

/* Improve status badges */
.product-status {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* Improve navigation styling */
.admin-header {
    background: white !important;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-btn {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #e9ecef;
    color: #2c3e50;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Improve body background */
body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    background-attachment: fixed;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 1024px) {
    .admin-main {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .supplier-header,
    .product-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .supplier-info h1,
    .product-info h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .admin-main {
        padding: 0.75rem;
        margin: 0.25rem;
        border-radius: var(--border-radius);
    }
    
    .supplier-header,
    .product-header {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: var(--border-radius);
    }
    
    .supplier-info h1,
    .product-info h1 {
        font-size: 1.5rem;
    }
    
    .stat-card {
        padding: 1rem;
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }
}

/* Enhanced Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Enhanced Focus States for Accessibility */
.btn:focus,
.nav-btn:focus,
.admin-btn:focus,
.search-btn:focus,
.clear-btn:focus,
.pagination-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Enhanced Print Styles */
@media print {
    .admin-header,
    .search-container,
    .pagination-container,
    .btn,
    .nav-btn,
    .admin-btn {
        display: none !important;
    }
    
    .admin-main {
        box-shadow: none;
        border: none;
        background: white;
    }
    
    .products-table {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .products-table th,
    .products-table td {
        border: 1px solid #000;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #2d3748;
        --border-color: #4a5568;
        --dark-color: #f7fafc;
    }
    
    body {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
        color: #f7fafc;
    }
    
    .admin-main,
    .search-container,
    .products-container {
        background: rgba(45, 55, 72, 0.95);
        color: #f7fafc;
    }
    
    .products-table th {
        background: linear-gradient(135deg, #2d3748, #4a5568);
        color: #f7fafc;
    }
    
    .products-table td {
        background: rgba(45, 55, 72, 0.8);
        color: #f7fafc;
    }
}
