/* Reset en basis styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    background-attachment: fixed;
    color: #2c3e50;
    line-height: 1.6;
    min-height: 100vh;
}

/* Login pagina styling */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.login-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
    max-width: 200px;
}

.login-form h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555 !important;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white !important;
    color: #333 !important;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-group input::placeholder {
    color: #888 !important;
    opacity: 1;
}

button[type="submit"] {
    width: 100%;
    padding: 0.75rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

button[type="submit"]:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.error-message {
    color: #e74c3c;
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
}

/* Admin container styling */
.admin-container {
    min-height: 100vh;
    background: transparent;
}

.admin-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.admin-header h1 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-btn {
    padding: 0.5rem 1rem;
    background: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-right: 0.5rem;
}

.nav-btn:hover {
    background: #229954;
}

.admin-btn {
    padding: 0.5rem 1rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-right: 0.5rem;
}

.admin-btn:hover {
    background: #5a6fd8;
}

.logout-btn {
    padding: 0.5rem 1rem;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background: #c0392b;
}

/* Main content styling */
.admin-main {
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

/* Search container */
.search-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Orders page specific adjustments */
.orders-search {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.orders-status-bar {
    margin-top: 8px !important;
    margin-left: 8px !important;
}

/* Green button styling for new order button */
.btn-green {
    background: #10b981 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
}

.btn-green:hover {
    background: #059669 !important;
    border-color: #047857 !important;
    color: #ffffff !important;
}

/* Dark button styling for clear/wissen button */
.btn-dark {
    background: #374151 !important;
    border-color: #1f2937 !important;
    color: #ffffff !important;
}

.btn-dark:hover {
    background: #1f2937 !important;
    border-color: #111827 !important;
    color: #ffffff !important;
}

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

/* Filter indicator */
.filter-indicator {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.filter-text {
    color: #4CAF50;
    font-weight: 500;
}

.clear-filter-btn {
    background: #4CAF50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.clear-filter-btn:hover {
    background: #45a049;
}

/* Supplier header styling */
.supplier-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.supplier-info h1 {
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.supplier-subtitle {
    color: #666;
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.supplier-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.supplier-number {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.supplier-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-card {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    color: #ffffff;
    padding: 1rem;
    border-radius: 12px;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Ensure all text/icons inside stat cards are white for readability */
.stat-card .stat-icon,
.stat-card .stat-number,
.stat-card .stat-label,
.stat-card .stat-content,
.stat-card a {
    color: #ffffff !important;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(220, 53, 69, 0.4);
}

.supplier-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
}

.btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ef4444;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    background: #ef4444;
    color: #ffffff;
}

.btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Subtiele variant voor secundaire acties - ook rood maar lichter */
.btn-subtle {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

.btn-subtle:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}



.btn-primary {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.btn-primary:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-primary:disabled {
    background: #fca5a5;
    border-color: #fca5a5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-success {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.btn-success:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

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

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Global enforcement: ensure white text on red buttons across pages */
/* Utility class for red buttons */
.btn-red {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
}

/* Common red variants → force white text */
.btn,
button,
a.btn {
    /* If background is a common red tone, force white text */
}

/* Hex matches via inline styles */
button[style*="background:#dc3545"],
button[style*="background: #dc3545"],
a[style*="background:#dc3545"],
a[style*="background: #dc3545"],
[style*="background:#dc3545"],
[style*="background: #dc3545"],
button[style*="background:#c82333"],
button[style*="background: #c82333"],
a[style*="background:#c82333"],
a[style*="background: #c82333"],
[style*="background:#c82333"],
[style*="background: #c82333"],
button[style*="background:#ef4444"],
button[style*="background: #ef4444"],
a[style*="background:#ef4444"],
a[style*="background: #ef4444"],
[style*="background:#ef4444"],
[style*="background: #ef4444"],
button[style*="background:#e3342f"],
button[style*="background: #e3342f"],
a[style*="background:#e3342f"],
a[style*="background: #e3342f"],
[style*="background:#e3342f"],
[style*="background: #e3342f"] {
    color: #ffffff !important;
}

/* Class-based reds that might be used locally */
.btn-danger, .btn-primary.red, .btn--danger, .bg-red, .text-on-red {
    color: #ffffff !important;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin-bottom: 2rem;
    font-weight: 600;
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

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

.stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Product header styling */
.product-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-info h1 {
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-subtitle {
    color: #666;
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.product-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.product-number {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.product-barcode {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.product-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

.search-btn, .clear-btn {
    padding: 0.4rem 0.8rem; /* compact */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.search-btn {
    background: #667eea;
    color: white;
}

.search-btn:hover {
    background: #5a6fd8;
}

.clear-btn {
    background: #95a5a6;
    color: white;
}

.clear-btn:hover {
    background: #7f8c8d;
}

/* Products list styling */
.products-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
}

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

.products-table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

.products-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    background: white;
}

.products-table tr {
    cursor: pointer;
    transition: all 0.2s ease;
}

.products-table tr:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.products-table tr:last-child td {
    border-bottom: none;
}

/* Stock availability row colors */
.products-table tr.stock-available {
    background-color: #d4edda !important; /* Light green */
}

.products-table tr.stock-available:hover {
    background-color: #c3e6cb !important;
}

.products-table tr.stock-partial {
    background-color: #fff3cd !important; /* Light orange/yellow */
}

.products-table tr.stock-partial:hover {
    background-color: #ffeaa7 !important;
}

.products-table tr.stock-unavailable {
    background-color: #f8d7da !important; /* Light red */
}

.products-table tr.stock-unavailable:hover {
    background-color: #f5c6cb !important;
}

.products-table tr.stock-available td,
.products-table tr.stock-partial td,
.products-table tr.stock-unavailable td {
    background: transparent !important;
}

.product-title {
    font-weight: 600;
    color: #2c3e50;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-codes {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.product-artikelnummer {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-barcode {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-count {
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    padding: 0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.product-count.count-normal {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.product-count.count-low {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 2px solid #f44336;
}

.count-warning {
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.product-voorraad {
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.product-voorraad.low {
    color: #e74c3c;
}

.product-voorraad.medium {
    color: #f39c12;
}

.product-voorraad.high {
    color: #27ae60;
}

.product-prijs {
    text-align: center;
    font-weight: 600;
    color: #27ae60;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.product-status {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    height: 100%;
}

.product-status.active {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.product-status.inactive {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.product-stockvalue {
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.product-stockvalue.low {
    color: #e74c3c;
}

.product-stockvalue.medium {
    color: #f39c12;
}

.product-stockvalue.high {
    color: #27ae60;
}

/* Product detail styling */
.product-detail-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-detail {
    padding: 2rem;
}

.product-detail h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.detail-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.detail-section h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: #555;
    min-width: 150px;
}

.detail-value {
    color: #333;
    text-align: right;
    flex: 1;
    margin-left: 1rem;
}

.detail-value.empty {
    color: #999;
    font-style: italic;
}

/* Pagination styling */
.pagination-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.8);
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Responsive design */
@media (max-width: 1200px) {
    .admin-main {
        padding: 1rem;
    }
    
    .products-table th,
    .products-table td {
        padding: 0.5rem 0.75rem;
    }
    
    .product-title {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }
    
    .header-brand {
        justify-content: center;
    }
    
    .header-logo {
        height: 35px;
    }
    
    .admin-header h1 {
        font-size: 1.3rem;
    }
    
    .search-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pagination-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .products-table-container {
        overflow-x: auto;
    }
    
    .products-table {
        min-width: 800px;
        width: 100%;
    }
    
    .products-table th,
    .products-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .supplier-header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .supplier-info h1 {
        font-size: 2rem;
    }
    
    .supplier-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .stat-card {
        min-width: 100px;
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-icon {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .product-header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .product-info h1 {
        font-size: 2rem;
    }
    
    .product-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .product-meta {
        justify-content: center;
    }
    
    .product-title {
        max-width: 150px;
    }
    
    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .detail-label {
        min-width: auto;
    }
    
    .detail-value {
        text-align: left;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .admin-main {
        padding: 0.5rem;
    }
    
    .search-container {
        padding: 0.75rem;
    }
    
    .products-table th,
    .products-table td {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
    
    .product-title {
        max-width: 120px;
    }
    
    .logo-image {
        height: 50px;
    }
    
    .login-form h1 {
        font-size: 1.5rem;
    }
}

/* Professional Navigation Styles */
.admin-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem 1rem; /* tighter padding */
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    height: 40px;
    width: auto;
}

.header-brand h1 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1rem; /* reduce gap */
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* reduce gap */
}

.nav-btn {
    padding: 2px 6px; /* very compact boxes */
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
}

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

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #495057;
    text-decoration: none;
    border-bottom: 1px solid #f8f9fa;
    transition: background 0.2s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

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

.dropdown-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 0.5rem 0;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-info {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.logout-btn {
    padding: 0.4rem 0.6rem; /* compact */
    background: #f8f9fa;
    color: #dc3545;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
}

.logout-btn:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Responsive Navigation */
@media (max-width: 1024px) {
    .admin-header {
        padding: 0.5rem 0.75rem;
    }
    
    .nav-main {
        gap: 0.4rem;
    }
    
    .nav-btn {
        padding: 3px 6px; /* compact on tablet */
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .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;
    }
    
    .header-nav.active {
        transform: translateY(0);
    }
    
    .nav-main {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .nav-btn {
        width: 100%;
        text-align: center;
        padding: 8px; /* compact but tappable on mobile */
    }
    
    .nav-dropdown {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(102, 126, 234, 0.05);
        margin-top: 0.5rem;
        border-radius: 6px;
    }
    
    .nav-user {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .user-info {
        text-align: center;
    }
    
    .logout-btn {
        width: 100%;
        text-align: center;
    }
}

/* Order Detail Page - New Professional Layout */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-left: 4px solid #007bff;
}

.order-title h1 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.order-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0.5rem 0 0 0;
    font-weight: 400;
}

.order-actions {
    display: flex;
    gap: 1rem;
}

/* Professional Info Cards */
.order-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.card-header h3 {
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-content {
    padding: 1.5rem;
}

.info-row, .stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.info-row:last-child, .stat-row:last-child {
    border-bottom: none;
}

.info-label, .stat-label {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9rem;
    flex: 1;
}

.info-value, .stat-value {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: right;
    flex: 1;
}

.info-value a, .stat-value a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-value a:hover, .stat-value a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Statistics Card Special Styling */
.info-card:first-child .stat-value {
    color: #28a745;
    font-size: 1rem;
}

.info-card:first-child .stat-row:nth-child(2) .stat-value {
    color: #17a2b8;
}

.info-card:first-child .stat-row:nth-child(3) .stat-value {
    color: #ffc107;
}

.info-card:first-child .stat-row:nth-child(4) .stat-value {
    color: #28a745;
}

/* Responsive design for order detail */
@media (max-width: 768px) {
    .order-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .order-info-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-card {
        margin-bottom: 0;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .info-row, .stat-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .info-value, .stat-value {
        text-align: left;
    }
}
