:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 50px; /* Reduced from 70px to 50px */
}

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

#wrapper {
    min-height: 100vh;
}

#sidebar-wrapper {
    min-height: 100vh;
    width: var(--sidebar-width);
    margin-left: calc(-1 * var(--sidebar-width));
    transition: margin 0.25s ease-out;
}

#sidebar-wrapper .sidebar-heading {
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

#sidebar-wrapper .list-group-item {
    padding: 12px 20px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

#sidebar-wrapper .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    padding-left: 25px;
}

#sidebar-wrapper .list-group-item.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    border-left: 3px solid #fff;
}

/* Mobile Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.25s ease-out;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

#page-content-wrapper {
    width: 100%;
    min-width: 0;
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    padding: 15px 20px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.stat-card {
    border-radius: 15px;
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.stat-card i {
    font-size: 2.5rem;
    opacity: 0.3;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.stat-card h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-card p {
    margin-bottom: 0;
    opacity: 0.9;
}

.stat-card.primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card.success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.stat-card.info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card.danger {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.product-card {
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 10px;
    overflow: hidden;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.product-card .product-info {
    padding: 15px;
}

.product-card .product-name {
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .product-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.product-card .product-stock {
    font-size: 0.85rem;
    color: #6c757d;
}

.basket-item {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    transition: all 0.3s;
}

.basket-item:hover {
    background: #e9ecef;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
}

.quantity-control input {
    width: 60px;
    text-align: center;
    margin: 0 10px;
    border-radius: 5px;
}

.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
}

.badge-status {
    padding: 5px 15px;
    border-radius: 20px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    #sidebar-wrapper {
        margin-left: calc(-1 * var(--sidebar-width));
        position: fixed;
        z-index: 1000;
        height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    /* Enable smooth scrolling on sidebar */
    #sidebar-wrapper .list-group {
        overflow-y: auto;
        max-height: calc(100vh - 80px);
        -webkit-overflow-scrolling: touch;
    }
    
    #wrapper.toggled #sidebar-wrapper {
        margin-left: 0;
        box-shadow: 3px 0 10px rgba(0, 0, 0, 0.3);
    }
    
    /* Mobile Tables - Make scrollable */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 600px;
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
    
    /* Stat Cards - Stack vertically */
    .stat-card {
        margin-bottom: 15px;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
    
    .stat-card i {
        font-size: 2rem;
    }
    
    /* Product Cards - 2 columns on mobile */
    .product-card {
        margin-bottom: 15px;
    }
    
    .product-card img {
        height: 120px;
    }
    
    /* Buttons - Make more touch-friendly */
    .btn {
        min-height: 44px;
        padding: 10px 16px;
    }
    
    .btn-sm {
        min-height: 36px;
        padding: 6px 12px;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Modal dialogs */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    /* Cards */
    .card {
        margin-bottom: 15px;
        border-radius: 10px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    /* Navbar */
    .navbar {
        padding: 8px 12px;
    }
    
    /* Basket items */
    .basket-item {
        padding: 10px;
        font-size: 0.875rem;
    }
    
    .quantity-control input {
        width: 50px;
        margin: 0 5px;
    }
    
    /* Hide some text on small screens, show icons only */
    .mobile-hide-text {
        display: none;
    }
    
    /* Page content padding */
    #page-content-wrapper .container-fluid {
        padding: 12px;
    }
    
    /* Header adjustments */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    /* Single column layout */
    .col-sm-6,
    .col-md-4,
    .col-md-6,
    .col-lg-3,
    .col-lg-4,
    .col-lg-6 {
        margin-bottom: 15px;
    }
    
    /* Product grid - 1 column on very small screens */
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    /* Stat cards - smaller text */
    .stat-card h3 {
        font-size: 1.25rem;
    }
    
    .stat-card p {
        font-size: 0.875rem;
    }
    
    /* Tables - even more compact */
    .table {
        font-size: 0.75rem;
    }
    
    .table th,
    .table td {
        padding: 0.4rem;
    }
    
    /* Button groups */
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        margin-bottom: 5px;
        border-radius: 5px !important;
    }
    
    /* Action buttons - stack vertically */
    .d-flex.justify-content-between {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .d-flex.justify-content-between > * {
        margin-bottom: 10px;
    }
}

/* Landscape mobile */
@media (max-width: 896px) and (orientation: landscape) {
    #sidebar-wrapper {
        width: 200px;
    }
    
    #sidebar-wrapper .list-group-item {
        padding: 8px 15px;
        font-size: 0.875rem;
    }
}

/* Tablet devices */
@media (min-width: 769px) and (max-width: 1024px) {
    .stat-card {
        margin-bottom: 15px;
    }
    
    .table {
        font-size: 0.9rem;
    }
}

/* Print styles */
@media print {
    #sidebar-wrapper,
    nav,
    .no-print {
        display: none !important;
    }
    
    #page-content-wrapper {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
    color: white;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Mobile Submit Button Fixes */
@media (max-width: 768px) {
    /* Ensure buttons are properly sized and clickable on mobile */
    .btn {
        min-height: 44px; /* iOS recommended touch target size */
        padding: 12px 16px;
        font-size: 16px; /* Prevent zoom on iOS */
        border-radius: 8px;
        position: relative;
        z-index: 1;
    }
    
    /* Fix for submit buttons in forms */
    input[type="submit"],
    button[type="submit"],
    .btn-primary,
    .btn-success,
    .btn-danger {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-clip: padding-box;
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }
    
    /* Prevent double-tap zoom on buttons */
    .btn, button, input[type="submit"], input[type="button"] {
        touch-action: manipulation;
        -ms-touch-action: manipulation;
    }
    
    /* Fix for modal buttons */
    .modal-footer .btn {
        margin: 5px;
        width: auto;
        min-width: 100px;
    }
    
    /* Form submit buttons */
    .form-submit-container {
        padding: 20px 0;
        text-align: center;
    }
    
    .form-submit-container .btn {
        width: 100%;
        max-width: 300px;
        margin: 10px auto;
        display: block;
    }
    
    /* Fix for floating action buttons */
    .btn-floating {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
        border-radius: 50%;
        width: 56px;
        height: 56px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Prevent iOS Safari button styling issues */
    input[type="submit"]::-webkit-search-decoration,
    input[type="submit"]::-webkit-search-cancel-button,
    input[type="submit"]::-webkit-search-results-button,
    input[type="submit"]::-webkit-search-results-decoration {
        display: none;
    }
    
    /* Fix for card action buttons */
    .card-footer .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .card-footer .btn-group .btn {
        flex: 1;
        min-width: 0;
    }
    
    /* Table action buttons */
    .table-responsive .btn-group {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .table-responsive .btn-group .btn {
        width: 100%;
        margin: 1px 0;
        font-size: 14px;
        padding: 8px 12px;
    }
    
    /* Fix for dropdown buttons */
    .dropdown-toggle::after {
        margin-left: 8px;
    }
    
    /* Ensure proper spacing for button groups */
    .btn-toolbar {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .btn-toolbar .btn-group {
        margin: 0;
    }
}

/* Additional mobile fixes for specific button issues */
@media (max-width: 480px) {
    /* Very small screens - stack buttons vertically */
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin: 5px 0;
    }
    
    /* Fix for inline button groups */
    .btn-group-vertical .btn {
        width: 100%;
        margin-bottom: 5px;
    }
    
    /* Ensure form buttons are easily tappable */
    .form-group .btn {
        margin-top: 10px;
        width: 100%;
    }
}

/* Hover-Based Sidebar Design - Icons Only with Hover Expansion */
@media (min-width: 769px) {
    /* Default collapsed state - icons only */
    #sidebar-wrapper {
        width: var(--sidebar-collapsed-width);
        margin-left: 0; /* Always visible */
        overflow: visible;
        background: #1e293b !important; /* Dark background like the image */
        border-right: 1px solid #334155;
        transition: width 0.3s ease, box-shadow 0.3s ease;
        z-index: 1000;
    }
    
    /* On hover, expand to full width */
    #sidebar-wrapper:hover {
        width: var(--sidebar-width);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    }
    
    /* Adjust main content area - reduced space by 70% */
    #page-content-wrapper {
        margin-left: 20px; /* Reduced from 70px to 20px (about 70% reduction) */
        transition: margin-left 0.3s ease;
    }
    
    #wrapper.toggled #page-content-wrapper {
        margin-left: 20px; /* Reduced from 70px to 20px (about 70% reduction) */
    }
    
    /* Sidebar heading styling */
    #sidebar-wrapper .sidebar-heading {
        background: #1e293b !important;
        border-bottom: 1px solid #334155 !important;
        padding: 20px 0;
        text-align: center;
        transition: all 0.3s ease;
    }
    
    /* Hide heading text by default, show only icon */
    #sidebar-wrapper .sidebar-heading {
        font-size: 0 !important; /* Hide all text */
    }
    
    #sidebar-wrapper .sidebar-heading i {
        font-size: 1.5rem !important; /* Show icon */
    }
    
    /* Ensure heading text stays hidden when not hovering */
    #sidebar-wrapper:not(:hover) .sidebar-heading {
        font-size: 0 !important;
    }
    
    #sidebar-wrapper:hover .sidebar-heading {
        text-align: left;
        padding: 20px;
        font-size: 1rem !important; /* Show text on hover */
    }
    
    #sidebar-wrapper:hover .sidebar-heading i {
        font-size: 1.5rem !important;
        margin-right: 10px;
    }
    
    #sidebar-wrapper .sidebar-heading i {
        font-size: 1.5rem;
        color: var(--primary-color);
        transition: all 0.3s ease;
    }
    
    /* Menu items styling */
    #sidebar-wrapper .list-group-item {
        background: transparent !important;
        border: none !important;
        color: #94a3b8 !important;
        padding: 16px 0;
        margin: 2px 8px;
        border-radius: 8px;
        text-align: center;
        transition: all 0.3s ease;
        white-space: nowrap;
        overflow: hidden;
        position: relative;
    }
    
    #sidebar-wrapper .list-group-item:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
    }
    
    #sidebar-wrapper .list-group-item.active {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
        color: #ffffff !important;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }
    
    /* Icon styling */
    #sidebar-wrapper .list-group-item i {
        font-size: 1.2rem;
        width: 20px;
        text-align: center;
        margin-right: 0;
        transition: all 0.3s ease;
    }
    
    /* Hide text by default - target text content directly */
    #sidebar-wrapper .list-group-item {
        font-size: 0 !important; /* Hide all text */
    }
    
    #sidebar-wrapper .list-group-item i {
        font-size: 1.2rem !important; /* Show icons */
    }
    
    /* Ensure text stays hidden when not hovering */
    #sidebar-wrapper:not(:hover) .list-group-item {
        font-size: 0 !important;
    }
    
    #sidebar-wrapper:not(:hover) .list-group-item i {
        font-size: 1.2rem !important;
    }
    
    /* On sidebar hover, show text and adjust layout */
    #sidebar-wrapper:hover .list-group-item {
        text-align: left;
        padding: 12px 20px;
        font-size: 0.875rem !important; /* Show text on hover */
    }
    
    #sidebar-wrapper:hover .list-group-item i {
        margin-right: 15px;
        font-size: 1.2rem !important; /* Keep icon size */
    }
    
    /* Hide section headers by default */
    #sidebar-wrapper .list-group-item.bg-dark.text-secondary {
        display: none !important;
    }
    
    /* Ensure section headers stay hidden when not hovering */
    #sidebar-wrapper:not(:hover) .list-group-item.bg-dark.text-secondary {
        display: none !important;
    }
    
    /* Show section headers on hover */
    #sidebar-wrapper:hover .list-group-item.bg-dark.text-secondary {
        display: block !important;
        padding: 8px 20px;
        margin: 8px 0 4px 0;
        color: #64748b !important;
        background: transparent !important;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Smooth transitions for all elements */
    #sidebar-wrapper,
    #sidebar-wrapper .list-group-item,
    #sidebar-wrapper .sidebar-heading,
    #sidebar-wrapper .list-group-item span,
    #sidebar-wrapper .list-group-item i {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Close button positioning */
    #sidebar-wrapper .sidebar-heading button {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    #sidebar-wrapper:hover .sidebar-heading button {
        opacity: 1;
    }
    
    /* Initial load state - show full menu for 3 seconds */
    #sidebar-wrapper.sidebar-initial-load {
        width: var(--sidebar-width) !important;
    }
    
    #sidebar-wrapper.sidebar-initial-load .sidebar-heading {
        text-align: left !important;
        padding: 20px !important;
    }
    
    #sidebar-wrapper.sidebar-initial-load .sidebar-heading {
        font-size: 1rem !important;
        text-align: left !important;
        padding: 20px !important;
    }
    
    #sidebar-wrapper.sidebar-initial-load .sidebar-heading i {
        margin-right: 10px !important;
    }
    
    #sidebar-wrapper.sidebar-initial-load .list-group-item {
        text-align: left !important;
        padding: 12px 20px !important;
        font-size: 0.875rem !important;
    }
    
    #sidebar-wrapper.sidebar-initial-load .list-group-item i {
        margin-right: 15px !important;
        font-size: 1.2rem !important;
    }
    
    #sidebar-wrapper.sidebar-initial-load .list-group-item.bg-dark.text-secondary {
        display: block !important;
        padding: 8px 20px !important;
        margin: 8px 0 4px 0 !important;
        font-size: 0.75rem !important;
    }
    
    /* Collapsed state - override hover effects during transition */
    #sidebar-wrapper.sidebar-collapsed:not(:hover) {
        width: var(--sidebar-collapsed-width) !important;
    }
}

/* Mobile - keep original behavior */
@media (max-width: 768px) {
    #sidebar-wrapper {
        width: var(--sidebar-width);
        margin-left: calc(-1 * var(--sidebar-width));
        transition: margin 0.25s ease-out;
    }
    
    #wrapper.toggled #sidebar-wrapper {
        margin-left: 0;
    }
    
    #page-content-wrapper {
        margin-left: 0;
    }
}

/* Enhanced Horizontal Scroll for Products Table */
.products-table-container {
    position: relative;
    overflow-x: auto;
    overflow-y: visible;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: white;
}

.products-table-container::-webkit-scrollbar {
    height: 12px;
}

.products-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.products-table-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 6px;
    border: 2px solid #f1f1f1;
}

.products-table-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6b4d8a 100%);
}

/* Enhanced table styling for better horizontal scroll experience */
.products-table {
    min-width: 1200px; /* Ensure minimum width for horizontal scroll */
    margin-bottom: 0;
    white-space: nowrap;
}

.products-table th,
.products-table td {
    padding: 12px 8px;
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
    white-space: nowrap;
}

.products-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
    color: #495057;
    border-top: none;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Specific column widths for better layout */
.products-table th:nth-child(1), /* Image */
.products-table td:nth-child(1) {
    width: 80px;
    min-width: 80px;
}

.products-table th:nth-child(2), /* Product Code */
.products-table td:nth-child(2) {
    width: 120px;
    min-width: 120px;
}

.products-table th:nth-child(3), /* Part Number */
.products-table td:nth-child(3) {
    width: 120px;
    min-width: 120px;
}

.products-table th:nth-child(4), /* Name */
.products-table td:nth-child(4) {
    width: 200px;
    min-width: 200px;
    white-space: normal;
    word-wrap: break-word;
}

.products-table th:nth-child(5), /* Category */
.products-table td:nth-child(5) {
    width: 120px;
    min-width: 120px;
}

.products-table th:nth-child(6), /* Brand */
.products-table td:nth-child(6) {
    width: 120px;
    min-width: 120px;
}

.products-table th:nth-child(7), /* Store */
.products-table td:nth-child(7) {
    width: 130px;
    min-width: 130px;
}

.products-table th:nth-child(8), /* Cost Price */
.products-table td:nth-child(8) {
    width: 100px;
    min-width: 100px;
    text-align: right;
}

.products-table th:nth-child(9), /* Selling Price */
.products-table td:nth-child(9) {
    width: 100px;
    min-width: 100px;
    text-align: right;
}

.products-table th:nth-child(10), /* Stock */
.products-table td:nth-child(10) {
    width: 80px;
    min-width: 80px;
    text-align: center;
}

.products-table th:nth-child(11), /* Status */
.products-table td:nth-child(11) {
    width: 90px;
    min-width: 90px;
    text-align: center;
}

.products-table th:last-child, /* Actions */
.products-table td:last-child {
    width: 120px;
    min-width: 120px;
    text-align: center;
    position: sticky;
    right: 0;
    background: white;
    border-left: 2px solid #dee2e6;
    box-shadow: -2px 0 4px rgba(0,0,0,0.1);
}

.products-table th:last-child {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Hover effects for table rows */
.products-table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

.products-table tbody tr:hover td:last-child {
    background-color: rgba(102, 126, 234, 0.05);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .products-table {
        min-width: 800px;
        font-size: 0.875rem;
    }
    
    .products-table th,
    .products-table td {
        padding: 8px 6px;
    }
    
    .products-table th:nth-child(4), /* Name */
    .products-table td:nth-child(4) {
        width: 150px;
        min-width: 150px;
    }
}

/* Pagination Styling */
.pagination-info {
    display: flex;
    align-items: center;
    height: 100%;
}

.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
    padding: 0.375rem 0.75rem;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination-info {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .pagination {
        justify-content: center !important;
    }
    
    .pagination .page-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
}
