body {
    background-color: #f4f6f9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.menu-header {
    background: white;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
    padding: 0;
}

.menu-header .nav-tabs {
    border-bottom: none;
    padding: 0 15px;
}

.menu-header .nav-link {
    border: none;
    padding: 12px 20px;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s;
}

.menu-header .nav-link:hover {
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

.menu-header .nav-link.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
    background: transparent;
}

.card {
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0 !important;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #343a40;
    color: white;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Warning colors for low stock */
.table-warning {
    background-color: #fff3cd !important;
}

.table-danger {
    background-color: #f8d7da !important;
}

/* Sort icon styling */
.sort-icon {
    cursor: pointer;
    margin-left: 5px;
    font-size: 12px;
    opacity: 0.7;
    transition: all 0.3s;
}

.sort-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.btn {
    border-radius: 5px;
    padding: 5px 15px;
}

.btn-sm {
    padding: 2px 8px;
    margin: 0 2px;
}

#notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
}

.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.table-responsive {
    max-height: 70vh;
    overflow-y: auto;
}

/* Select2 customization */
.select2-container--bootstrap-5 .select2-selection {
    min-height: 38px;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
}

/* Loading spinner */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media print {
    .menu-header, .navbar, .btn, .modal, #notification {
        display: none !important;
    }
}