/* User Details Modal - Order History Preview */
.orders-section .recent-orders-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}
.orders-section .order-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(44,62,80,0.07);
  padding: 14px 18px;
  transition: box-shadow 0.18s;
  border: 1px solid #f1f1f1;
}
.orders-section .order-item:hover {
  box-shadow: 0 4px 16px rgba(44,62,80,0.13);
  border-color: #e63946;
}
.orders-section .order-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
}
.orders-section .order-id {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.08em;
}
.orders-section .order-date {
  color: #888;
  font-size: 0.97em;
}
.orders-section .order-details {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.orders-section .order-products {
  color: #444;
  font-size: 1em;
}
.orders-section .order-total {
  font-weight: 500;
  color: #222;
  background: #f8f9fa;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 1em;
}
.orders-section .order-status .status-badge {
  font-size: 0.98em;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}
@media (max-width: 600px) {
  .orders-section .order-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 8px;
  }
  .orders-section .order-details {
    gap: 10px;
  }
}
/* Orders Pagination Buttons */
.pagination-button {
  background: #fff;
  border: 1px solid #e0e0e0;
  color: var(--primary-color);
  padding: 6px 14px;
  margin: 0 2px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.15s;
  outline: none;
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pagination-button i {
  font-size: 1.1em;
}
.pagination-button.active,
.pagination-button:active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}
.pagination-button:disabled {
  background: #f3f3f3;
  color: #bbb;
  border-color: #eee;
  cursor: not-allowed;
}
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 2px;
}
.prev-button, .next-button {
  font-weight: bold;
}
/* Modern Add Product Modal Styles */
.modern-modal-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(44,62,80,0.18);
    max-width: 480px;
    margin: 40px auto;
    padding: 0;
    overflow: hidden;
    border: none;
    animation: fadeInModal 0.3s;
}
@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.modern-modal-header {
    background: var(--gradient-primary);
    color: #fff;
    padding: 20px 28px 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f3f3f3;
}
.modern-modal-header .modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modern-modal-header .modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
}
.modern-modal-header .modal-close:hover {
    color: #ffd6d6;
}
.modern-modal-body {
    padding: 28px 28px 10px 28px;
    background: #fff;
}
.modern-form-grid {
    display: flex;
    gap: 18px;
    margin-bottom: 0.5rem;
}
.modern-form-grid .form-group {
    flex: 1;
    margin-bottom: 0;
}
.modern-image-upload {
    margin-top: 0.5rem;
}
.modern-drop-area {
    border: 2px dashed var(--primary-color);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    background: #fafbfc;
    cursor: pointer;
    transition: border-color 0.2s;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.modern-drop-area.dragover {
    border-color: var(--secondary-color);
    background: #fffbe6;
}
.modern-drop-area .drop-text {
    color: #888;
    font-size: 1rem;
    margin-bottom: 8px;
}
.modern-drop-area .choose-image-link {
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
}
.modern-featured-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.modern-modal-footer {
    background: #f8f9fa;
    padding: 18px 28px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #f3f3f3;
}
@media (max-width: 600px) {
    .modern-modal-card {
        max-width: 98vw;
        margin: 10px;
    }
    .modern-modal-header, .modern-modal-body, .modern-modal-footer {
        padding-left: 10px;
        padding-right: 10px;
    }
    .modern-form-grid {
        flex-direction: column;
        gap: 0;
    }
}
/* Admin Dashboard Styles */

:root {
    /* Brand Colors */
    --primary-color: #e63946;
    --secondary-color: #f77f00;
    --dark-color: #1d1d1d;
    --light-color: #ffffff;
    --theme-pink: #e63946;
    --theme-purple: #f77f00;
    
    /* UI Colors */
    --danger-color: #e63946;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    
    /* Neutral Colors */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Effects */
    --box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --box-shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --border-radius-sm: 0.375rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --transition-speed: 0.2s;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #e63946, #f77f00);
    --gradient-secondary: linear-gradient(135deg, #e63946, #f77f00);
}

/* General admin styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

/* User Avatar in Tables */
.user-info {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 12px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e63946;
    color: white;
    font-weight: bold;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-initials {
    font-size: 14px;
}

.user-name {
    font-weight: 500;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Admin Login Page */
.admin-login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--gradient-secondary);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.admin-login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/images/vector logo harnam.png') center/contain no-repeat;
    opacity: 0.03;
    pointer-events: none;
}

.admin-login-container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-login-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.login-header {
    background: var(--gradient-primary);
    color: white;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
}

.admin-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.admin-logo:hover {
    transform: scale(1.05);
}

.login-form-container {
    padding: 40px 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--gray-100);
}

.form-group input:hover {
    border-color: var(--gray-300);
}

.form-group input:focus {
    border-color: var(--theme-purple);
    outline: none;
    box-shadow: 0 0 0 4px rgba(181, 144, 185, 0.1);
    background-color: white;
}

.form-group:focus-within label {
    color: var(--theme-purple);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn:active {
    transform: translateY(0);
}

.password-input-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--gray-500);
    transition: color 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    background: transparent;
}

.toggle-password:hover {
    color: var(--theme-purple);
    background: rgba(181, 144, 185, 0.1);
}

.message-container {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
    display: none;
    animation: slideIn 0.3s ease;
}

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

.message-container.error {
    display: block;
    background-color: rgba(230, 57, 70, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(230, 57, 70, 0.2);
}

.message-container.success {
    display: block;
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(46, 204, 113, 0.2);
}

/* Dashboard Layout */
.admin-dashboard {
    display: flex;
    min-height: 100vh;
    background-color: var(--gray-100);
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    color: var(--gray-700);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border-right: 1px solid rgba(230, 57, 70, 0.1);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 120vh;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.sidebar-collapsed {
    width: 70px;
}

.sidebar-collapsed .sidebar-header {
    padding: 16px 10px;
}

.sidebar-collapsed .sidebar-logo {
    max-width: 40px;
    border-radius: 10px;
}

.sidebar-collapsed .nav-link {
    justify-content: center;
    padding: 14px 0;
}

.sidebar-collapsed .nav-icon {
    margin-right: 0;
    font-size: 22px;
}

.sidebar-header {
    padding: 24px 20px;
    text-align: center;
    background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
    position: relative;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.2);
}

.sidebar-logo {
    border-radius: 15px;
    max-width: 150px;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.3); 
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.4);
}

.sidebar-toggle {
    display: none;
    cursor: pointer;
    font-size: 20px;
    padding: 10px;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1001;
    color: white;
    background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.nav-menu {
    list-style: none;
    padding: 24px 16px;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    max-height: 100vh;
    scrollbar-width: thin;
    scrollbar-color: rgba(230, 57, 70, 0.3) transparent;
}

.nav-menu::-webkit-scrollbar {
    width: 6px;
}

.nav-menu::-webkit-scrollbar-track {
    background: transparent;
}

.nav-menu::-webkit-scrollbar-thumb {
    background: rgba(230, 57, 70, 0.3);
    border-radius: 10px;
}

.nav-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(230, 57, 70, 0.5);
}

.nav-item {
    margin-bottom: 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.08) 0%, rgba(247, 127, 0, 0.05) 100%);
    color: #e63946;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.1);
}

.nav-link:hover::before {
    transform: scaleY(1);
}

.nav-link.active {
    background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
    transform: translateX(4px);
}

.nav-link.active::before {
    transform: scaleY(1);
    background: white;
}

.nav-link.active .nav-icon {
    color: white;
    transform: scale(1.1);
}

.nav-icon {
    margin-right: 16px;
    font-size: 20px;
    width: 24px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-collapsed .nav-text {
    display: none;
}

.content-wrapper {
    flex: 1;
    margin-left: 280px;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    background-color: var(--gray-100);
}

.sidebar-collapsed + .content-wrapper {
    margin-left: 70px;
}

.top-navbar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.9) 100%);
    padding: 18px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(230, 57, 70, 0.1);
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.user-dropdown {
    position: relative;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(230, 57, 70, 0.05);
    border: 1px solid rgba(230, 57, 70, 0.1);
}

.user-dropdown:hover {
    background: rgba(230, 57, 70, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.15);
}

.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid rgba(230, 57, 70, 0.1);
    animation: dropdownFade 0.3s ease;
}

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

.user-dropdown-content a {
    color: #495057;
    padding: 14px 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.user-dropdown-content a:last-child {
    border-bottom: none;
}

.user-dropdown-content a:hover {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.08) 0%, rgba(247, 127, 0, 0.05) 100%);
    color: #e63946;
    padding-left: 24px;
}

.user-dropdown.open .user-dropdown-content {
    display: block;
}

.main-content {
    padding: 32px;
    background: linear-gradient(180deg, rgba(248, 249, 250, 0.5) 0%, rgba(255, 255, 255, 0.5) 100%);
    min-height: calc(100vh - 80px);
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(230, 57, 70, 0.1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(230, 57, 70, 0.25);
    border-color: rgba(230, 57, 70, 0.3);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e63946;
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid rgba(230, 57, 70, 0.2);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.4);
}

/* Icon color variations for different stat types */
.stat-icon.icon-users,
.stat-icon.icon-customers {
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
}

.stat-card:hover .stat-icon.icon-users,
.stat-card:hover .stat-icon.icon-customers {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.stat-icon.icon-products,
.stat-icon.icon-inventory {
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.2);
}

.stat-card:hover .stat-icon.icon-products,
.stat-card:hover .stat-icon.icon-inventory {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.stat-icon.icon-orders,
.stat-icon.icon-sales {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.stat-card:hover .stat-icon.icon-orders,
.stat-card:hover .stat-icon.icon-sales {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.stat-icon.icon-revenue,
.stat-icon.icon-earnings {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
}

.stat-card:hover .stat-icon.icon-revenue,
.stat-card:hover .stat-icon.icon-earnings {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #6c757d;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Data Tables */
.data-table {
    width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.12);
    border: 2px solid rgba(230, 57, 70, 0.1);
}

.data-table th,
.data-table td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(230, 57, 70, 0.08);
}

.data-table th {
    background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
    font-weight: 700;
    color: white;
    text-align: left;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tbody tr {
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.05) 0%, rgba(247, 127, 0, 0.03) 100%);
    transform: scale(1.01);
}

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

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

/* Card Styles */
.card {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.12);
    margin-bottom: 24px;
    border: 2px solid rgba(230, 57, 70, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(230, 57, 70, 0.18);
    transform: translateY(-2px);
}

.card-header {
    padding: 24px 28px;
    background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.2);
}

.card-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.card-body {
    padding: 28px;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    font-weight: bold;
    background-color: #f9f9f9;
}

.data-table tbody tr:hover {
    background-color: #f5f5f5;
}

.action-icons {
    display: flex;
    gap: 8px;
}

.action-icons i {
    cursor: pointer;
    font-size: 18px;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icons i:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-icons .fa-edit {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.action-icons .fa-edit:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.action-icons .fa-trash-alt {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.action-icons .fa-trash-alt:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.action-icons .fa-eye {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.action-icons .fa-eye:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.15) 0%, rgba(247, 127, 0, 0.1) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show,
.modal[style*="display: block"] {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.15) 0%, rgba(247, 127, 0, 0.1) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(230, 57, 70, 0.25),
                0 0 0 1px rgba(230, 57, 70, 0.1);
    border: 2px solid rgba(230, 57, 70, 0.1);
}

.modal-dialog {
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    transform: scale(0.9) translateY(-30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 50px auto;
}

.modal-dialog.modal-lg {
    max-width: 900px;
}

.modal.show .modal-dialog,
.modal[style*="display: block"] .modal-dialog,
.modal-backdrop.show .modal-dialog {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 24px 28px;
    background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.2);
}

.modal-title,
.modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 24px;
    cursor: pointer;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-body {
    padding: 28px;
    max-height: calc(90vh - 180px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(230, 57, 70, 0.3) transparent;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(230, 57, 70, 0.3);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(230, 57, 70, 0.5);
}

.modal-footer {
    padding: 20px 28px;
    background: linear-gradient(180deg, rgba(248, 249, 250, 0.5) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-top: 2px solid rgba(230, 57, 70, 0.1);
    text-align: right;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    border-radius: 0 0 20px 20px;
}

.modal-footer .btn {
    margin-left: 0;
    width: auto;
    min-width: 120px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.modal-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
    border-color: transparent;
    color: white;
}

.modal-footer .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.modal-footer .btn-secondary {
    background: white;
    border-color: rgba(230, 57, 70, 0.3);
    color: #e63946;
}

.modal-footer .btn-secondary:hover {
    background: rgba(230, 57, 70, 0.05);
    border-color: #e63946;
}

/* Modal Content Sections */
.modal-body .section-title {
    font-size: 16px;
    font-weight: 700;
    color: #e63946;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(230, 57, 70, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-body .info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.modal-body .info-item {
    background: white;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(230, 57, 70, 0.1);
    transition: all 0.3s ease;
}

.modal-body .info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.1);
    border-color: rgba(230, 57, 70, 0.3);
}

.modal-body .info-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.modal-body .info-value {
    font-size: 15px;
    color: #212529;
    font-weight: 600;
}

.modal-body .items-list {
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(230, 57, 70, 0.1);
    overflow: hidden;
}

.modal-body .item-row {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease;
}

.modal-body .item-row:last-child {
    border-bottom: none;
}

.modal-body .item-row:hover {
    background: rgba(230, 57, 70, 0.02);
}

.modal-body .item-details {
    flex: 1;
}

.modal-body .item-name {
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
}

.modal-body .item-meta {
    font-size: 13px;
    color: #6c757d;
}

.modal-body .item-price {
    font-weight: 700;
    color: #e63946;
    font-size: 16px;
}

.modal-body .total-section {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.05) 0%, rgba(247, 127, 0, 0.03) 100%);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    border: 2px solid rgba(230, 57, 70, 0.2);
}

.modal-body .total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
}

.modal-body .total-row.grand-total {
    font-size: 20px;
    font-weight: 700;
    color: #e63946;
    border-top: 2px solid rgba(230, 57, 70, 0.3);
    padding-top: 16px;
    margin-top: 8px;
}

.modal-body .status-timeline {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(230, 57, 70, 0.1);
}

.modal-body .timeline-item {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    position: relative;
}

.modal-body .timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 18px;
    top: 40px;
    width: 2px;
    height: calc(100% - 20px);
    background: linear-gradient(180deg, rgba(230, 57, 70, 0.3) 0%, rgba(230, 57, 70, 0.1) 100%);
}

.modal-body .timeline-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.modal-body .timeline-content {
    flex: 1;
}

.modal-body .timeline-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
}

.modal-body .timeline-time {
    font-size: 12px;
    color: #6c757d;
}

/* Order Details Content (JS-generated) */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(230, 57, 70, 0.2);
}

.section-header i {
    font-size: 18px;
    color: #e63946;
}

.section-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #e63946;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(230, 57, 70, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.1);
    border-color: rgba(230, 57, 70, 0.3);
}

.info-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.info-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 600;
}

.info-value {
    font-size: 14px;
    color: #212529;
    font-weight: 600;
    text-align: right;
}

.order-section {
    margin-bottom: 24px;
}

.order-meta-bar {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.05) 0%, rgba(247, 127, 0, 0.03) 100%);
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid rgba(230, 57, 70, 0.1);
}

.order-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.order-date,
.order-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-processing {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.status-badge.status-shipped {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.status-badge.status-delivered {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.status-badge.status-cancelled {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.status-badge.status-placed {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
}

/* Forms */
.form-horizontal .form-group {
    display: flex;
    margin-bottom: 15px;
}

.form-horizontal label {
    flex: 0 0 30%;
    padding-right: 15px;
    text-align: right;
    padding-top: 10px;
}

.form-control {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(230, 57, 70, 0.15);
    border-radius: 10px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.form-control:hover {
    border-color: rgba(230, 57, 70, 0.3);
}

.form-control:focus {
    border-color: #e63946;
    outline: none;
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
    transform: translateY(-1px);
}

.form-actions {
    text-align: right;
    margin-top: 20px;
}

/* Button variations */
.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #3a4047);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #c82333);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #a71d2a);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

/* Contrasting buttons for red backgrounds */
.btn-white,
.btn-outline {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    color: #e63946;
    border: 2px solid #e63946;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-white:hover,
.btn-outline:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #c82333;
    border-color: #c82333;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Dark button for better visibility on gradient backgrounds */
.btn-dark {
    background: linear-gradient(135deg, #1d1d1d, #343a40);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-dark:hover {
    background: linear-gradient(135deg, #343a40, #495057);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* Info button with blue gradient */
.btn-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-info:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* Buttons inside gradient headers - high contrast */
.card-header .btn,
.card-header button,
.stat-card .btn,
[style*="gradient"] .btn,
[style*="background: linear-gradient"] .btn {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #e63946 !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.card-header .btn:hover,
.card-header button:hover,
.stat-card .btn:hover,
[style*="gradient"] .btn:hover,
[style*="background: linear-gradient"] .btn:hover {
    background: #ffffff !important;
    color: #c82333 !important;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px) scale(1.05);
}

/* View All / Action buttons - white variant for red backgrounds */
.btn-view-all,
.view-all-btn,
button.view-all {
    background: rgba(255, 255, 255, 0.95);
    color: #e63946;
    border: 2px solid rgba(230, 57, 70, 0.3);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.btn-view-all:hover,
.view-all-btn:hover,
button.view-all:hover {
    background: #ffffff;
    color: #c82333;
    border-color: #e63946;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Small buttons in cards */
.card-header .btn-sm,
.card .btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    min-width: auto;
    width: auto;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 10px;
    color: white;
}

.badge-success {
    background-color: var(--success-color);
}

.badge-danger {
    background-color: var(--danger-color);
}

.badge-warning {
    background-color: var(--warning-color);
    color: #333;
}

.badge-info {
    background-color: var(--info-color);
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Utilities */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }

/* Image uploads */
.image-preview {
    max-width: 100px;
    max-height: 100px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

.file-upload {
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.file-upload input[type=file] {
    position: absolute;
    font-size: 100px;
    right: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}

/* Search and filter section */
.search-filter-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    padding: 24px;
    margin-bottom: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.12);
    border: 2px solid rgba(230, 57, 70, 0.1);
}

.search-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.search-filter-form .form-group {
    flex: 1;
    min-width: 220px;
    margin-bottom: 0;
}

.search-filter-form .form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.search-filter-actions {
    display: flex;
    gap: 12px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 28px;
    list-style: none;
    padding: 0;
    gap: 8px;
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    border: 2px solid rgba(230, 57, 70, 0.2);
    color: #e63946;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
}

.page-link:hover {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(247, 127, 0, 0.08) 100%);
    border-color: #e63946;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.2);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
    transform: translateY(-2px);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.15);
    }
    
    .sidebar.show {
        transform: translateX(0);
        box-shadow: 8px 0 40px rgba(230, 57, 70, 0.2);
    }
    
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .content-wrapper {
        margin-left: 0 !important;
    }
    
    .top-navbar {
        padding: 14px 18px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .main-content {
        padding: 20px 16px;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
}

/* Status chip style */
.status-chip {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}

.status-processing {
    background-color: #b3e0ff;
    color: #0066cc;
}

.status-shipped {
    background-color: #ffe0b3;
    color: #cc6600;
}

.status-delivered {
    background-color: #c8e6c9;
    color: #2e7d32;
}

.status-cancelled {
    background-color: #ffcdd2;
    color: #c62828;
}

.status-new {
    background-color: #e0e0e0;
    color: #424242;
}

.status-handled {
    background-color: #c8e6c9;
    color: #2e7d32;
}

/* Sortable table headers */
.sortable {
    cursor: pointer;
    position: relative;
}

.sortable::after {
    content: '↕';
    position: absolute;
    right: 5px;
    color: #999;
}

.sortable.asc::after {
    content: '↑';
    color: var(--primary-color);
}

.sortable.desc::after {
    content: '↓';
    color: var(--primary-color);
}

/* Toast notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background-color: white;
    border-left: 4px solid #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding: 15px 20px;
    margin-bottom: 10px;
    min-width: 250px;
    max-width: 350px;
    border-radius: 4px;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left-color: var(--success-color);
}

.toast-error {
    border-left-color: var(--danger-color);
}

.toast-warning {
    border-left-color: var(--warning-color);
}

.toast-info {
    border-left-color: var(--info-color);
}

.toast-icon {
    margin-right: 10px;
    font-size: 20px;
}

.toast-success .toast-icon {
    color: var(--success-color);
}

.toast-error .toast-icon {
    color: var(--danger-color);
}

.toast-warning .toast-icon {
    color: var(--warning-color);
}

.toast-info .toast-icon {
    color: var(--info-color);
}

.toast-message {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 0 5px;
}

/* Dashboard cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

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

.stat-icon {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    color: #777;
    font-size: 14px;
}

/* Sortable items (for reordering) */
.sortable-item {
    background-color: white;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
}

.sortable-item:active {
    cursor: grabbing;
}

.sortable-item .drag-handle {
    padding: 5px;
    cursor: grab;
}

.sortable-placeholder {
    border: 1px dashed #ccc;
    background-color: #f9f9f9;
    height: 40px;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
}

/* Loader Styles */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.15) 0%, rgba(247, 127, 0, 0.1) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
    opacity: 1;
    visibility: visible;
}

.loader-container.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
}

/* Modern Gradient Spinner */
.loader-spinner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #e63946 0deg,
        #f77f00 90deg,
        #e63946 180deg,
        #f77f00 270deg,
        #e63946 360deg
    );
    animation: spin 1.2s linear infinite;
    position: relative;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(230, 57, 70, 0.3);
}

.loader-spinner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.loader-spinner::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #e63946;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.8);
}

/* Alternative Loader: Dots */
.loader-dots {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.loader-dots span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
    animation: bounce 1.4s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.loader-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Alternative Loader: Pulse Circle */
.loader-pulse {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
    animation: pulse 1.5s ease-in-out infinite;
    margin-bottom: 24px;
    position: relative;
}

.loader-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #e63946;
    transform: translate(-50%, -50%);
    animation: ripple 1.5s ease-out infinite;
}

/* Loading Text */
.loader-container p {
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0;
    animation: fadeInOut 1.5s ease-in-out infinite;
    letter-spacing: 0.5px;
}

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

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(230, 57, 70, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 12px 48px rgba(230, 57, 70, 0.5);
    }
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes ballBounce {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-40px);
    }
}

@keyframes progress {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Panel-specific loaders */
.panel-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.08) 0%, rgba(247, 127, 0, 0.05) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    border-radius: 16px;
}

.panel-loader.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0s linear;
}

.panel-spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #e63946 0deg,
        #f77f00 90deg,
        #e63946 180deg,
        #f77f00 270deg,
        #e63946 360deg
    );
    animation: spin 1s linear infinite;
    position: relative;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.3);
}

.panel-spinner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.panel-loader p {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInOut 1.5s ease-in-out infinite;
}

/* Mini Inline Loader */
.loader-inline {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.loader-inline span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
    animation: bounce 1.4s ease-in-out infinite;
}

.loader-inline span:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-inline span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Skeleton Loader for Cards */
.skeleton-loader {
    background: linear-gradient(
        90deg,
        rgba(230, 57, 70, 0.05) 0%,
        rgba(247, 127, 0, 0.1) 50%,
        rgba(230, 57, 70, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 12px;
    border-radius: 6px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

/* Ring Loader */
.loader-ring {
    width: 80px;
    height: 80px;
    position: relative;
    margin-bottom: 24px;
}

.loader-ring div {
    box-sizing: border-box;
    position: absolute;
    width: 100%;
    height: 100%;
    border: 8px solid transparent;
    border-top-color: #e63946;
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-ring div:nth-child(1) {
    animation-delay: -0.45s;
    border-top-color: #e63946;
}

.loader-ring div:nth-child(2) {
    animation-delay: -0.3s;
    border-top-color: #f77f00;
}

.loader-ring div:nth-child(3) {
    animation-delay: -0.15s;
    border-top-color: #e63946;
}

/* Bouncing Balls Loader */
.loader-balls {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    height: 60px;
    margin-bottom: 24px;
}

.loader-balls span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
    animation: ballBounce 0.8s ease-in-out infinite alternate;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.loader-balls span:nth-child(1) {
    animation-delay: 0s;
}

.loader-balls span:nth-child(2) {
    animation-delay: 0.1s;
}

.loader-balls span:nth-child(3) {
    animation-delay: 0.2s;
}

/* Progress Bar Loader */
.loader-progress {
    width: 200px;
    height: 8px;
    background: rgba(230, 57, 70, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.loader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #e63946 0%, #f77f00 50%, #e63946 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: progress 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.5);
}

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

/* Message detail styles */
.sender-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.sender-info-item {
    flex: 1;
    min-width: 200px;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sender-info-item h4 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.info-row {
    margin-bottom: 8px;
    line-height: 1.5;
}

.message-container h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.message-content {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 5px;
    border: 1px solid #eee;
    white-space: pre-wrap;
    line-height: 1.6;
}

.admin-notes h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.status-update-container {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.status-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .status-update-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .status-actions {
        margin-top: 10px;
        width: 100%;
    }
    
    /* Modal Responsive */
    .modal-dialog {
        width: 95%;
        max-width: 95%;
        max-height: 95vh;
    }
    
    .modal-content {
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 18px 20px;
        border-radius: 16px 16px 0 0;
    }
    
    .modal-title,
    .modal-header h3 {
        font-size: 18px;
    }
    
    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
        max-height: calc(95vh - 160px);
    }
    
    .modal-body .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .modal-body .section-title {
        font-size: 14px;
    }
    
    .modal-footer {
        padding: 16px 20px;
        flex-wrap: wrap;
        border-radius: 0 0 16px 16px;
    }
    
    .modal-footer .btn {
        min-width: 100px;
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Make sure body doesn't scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Sidebar Logout Link */
.nav-item.mt-auto {
    margin-top: auto !important;
    border-top: 1px solid var(--gray-200);
}

.nav-link.logout-link {
    color: var(--danger-color);
}

.nav-link.logout-link:hover {
    background-color: rgba(230, 57, 70, 0.1);
    color: var(--danger-color);
}

.nav-link.logout-link .nav-icon {
    color: var(--danger-color);
}

/* Payment Column Styles */
.payment-cell {
    vertical-align: middle;
}

.payment-info-compact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.payment-badge i {
    margin-right: 4px;
    font-size: 11px;
}

.payment-status-text {
    font-size: 11px;
    color: #666;
    font-weight: 400;
}

.payment-done {
    background-color: #e7f8ef;
    color: #00a650;
}

.payment-pending {
    background-color: #fff8e6;
    color: #d68102;
}

.payment-failed {
    background-color: #ffe7e7;
    color: #e63946;
}

.payment-unknown {
    background-color: #f0f0f0;
    color: #666;
}

.payment-info-btn {
    margin-left: 5px;
    padding: 4px 8px !important;
    font-size: 12px;
}

.actions-cell {
    white-space: nowrap;
}

/* Payment Info Modal Styles */
#payment-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

#payment-info-modal.modal-visible {
    display: flex !important;
}

#payment-info-modal .modal-dialog {
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#payment-info-modal .modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

#payment-info-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#payment-info-modal .modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

#payment-info-modal .modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#payment-info-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

#payment-info-modal .modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

#payment-info-modal .modal-footer {
    padding: 16px 24px;
    background: #f9fafb;
    border-top: 2px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

.payment-info-modal .info-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 2px solid #f3f4f6;
}

.payment-info-modal .info-row:last-child {
    border-bottom: none;
}

.payment-info-modal .info-label {
    font-weight: 700;
    color: #6b7280;
    flex: 0 0 45%;
    font-size: 14px;
}

.payment-info-modal .info-value {
    color: #1f2937;
    flex: 0 0 55%;
    text-align: right;
    font-weight: 600;
    font-size: 14px;
}

/* Adjust table column widths for payment column */
#orders-table th:nth-child(1),
#orders-table td:nth-child(1) {
    width: 10%;
}

#orders-table th:nth-child(2),
#orders-table td:nth-child(2) {
    width: 18%;
}

#orders-table th:nth-child(3),
#orders-table td:nth-child(3) {
    width: 12%;
}

#orders-table th:nth-child(4),
#orders-table td:nth-child(4) {
    width: 8%;
    text-align: center;
}

#orders-table th:nth-child(5),
#orders-table td:nth-child(5) {
    width: 12%;
}

#orders-table th:nth-child(6),
#orders-table td:nth-child(6) {
    width: 10%;
    text-align: right;
}

#orders-table th:nth-child(7),
#orders-table td:nth-child(7) {
    width: 12%;
}

#orders-table th:nth-child(8),
#orders-table td:nth-child(8) {
    width: 18%;
    text-align: center;
}

/* ========================================
   ORDERS CARDS LAYOUT - MODERN DESIGN
   ======================================== */

/* Stats Grid */
.orders-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.stat-icon {
    font-size: 40px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    flex-shrink: 0;
}

.stat-icon.placed { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.stat-icon.processing { 
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); 
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}
.stat-icon.shipped { 
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); 
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}
.stat-icon.delivered { 
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); 
    box-shadow: 0 4px 15px rgba(67, 233, 123, 0.3);
}
.stat-icon.total { 
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); 
    box-shadow: 0 4px 15px rgba(250, 112, 154, 0.3);
}

.stat-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.stat-content p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Orders Grid */
.orders-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Order Card - Single Layer Design */
.order-card {
    background: white;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: visible;
}

.order-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 0 0 12px;
}

.order-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: #667eea;
}

/* Order ID & Date */
.order-id-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

.order-id-badge {
    font-size: 13px;
    font-weight: 800;
    color: #667eea;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.order-date-badge {
    font-size: 10.4px;
    color: #6b7280;
    font-weight: 500;
}

/* Customer Section */
.order-customer-section {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 170px;
    padding-right: 14px;
    border-right: 1px solid #e5e7eb;
}

.customer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #667eea;
    flex-shrink: 0;
}

.customer-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 17px;
    flex-shrink: 0;
}

.customer-details {
    flex: 1;
    min-width: 0;
}

.customer-name {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-contact {
    font-size: 10.4px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Order Info Items */
.order-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 11px;
    border-right: 1px solid #e5e7eb;
    min-width: 85px;
}

.order-info-item:last-of-type {
    border-right: none;
}

.info-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    font-size: 9.5px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.info-value {
    font-size: 13.9px;
    font-weight: 700;
    color: #1f2937;
}

.info-value.price {
    color: #059669;
    font-size: 15.6px;
}

/* Payment Status Badge */
.payment-status-badge {
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 8.6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
    display: inline-block;
}

.payment-status-badge.done {
    background: #d1fae5;
    color: #065f46;
}

.payment-status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.payment-status-badge.failed {
    background: #fee2e2;
    color: #991b1b;
}

/* Status Select */
.order-status-section {
    min-width: 120px;
    padding: 0 11px;
    border-right: 1px solid #e5e7eb;
}

.order-status-select {
    width: 100%;
    padding: 6px 8px;
    border-radius: 7px;
    border: 2px solid #e5e7eb;
    font-weight: 600;
    cursor: pointer;
    font-size: 11.3px;
    background: white;
    transition: all 0.3s ease;
    color: #1f2937;
}

.order-status-select:hover {
    border-color: #667eea;
}

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

/* Actions Section */
.order-actions-section {
    display: flex;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.order-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    border: 2px solid #e5e7eb;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    color: #6b7280;
}

.order-action-btn:hover {
    border-color: #667eea;
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.order-action-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.order-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Empty State Enhancement */
.empty-state {
    text-align: center;
    padding: 80px 40px;
}

.empty-state i {
    font-size: 80px;
    color: #e5e7eb;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 28px;
    color: #1f2937;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.empty-state p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .order-card {
        flex-wrap: wrap;
    }
    
    .order-card-header {
        border-right: none;
        border-bottom: 2px solid #e5e7eb;
        min-width: 100%;
    }
    
    .order-customer {
        border-right: none;
        border-bottom: 1px solid #f3f4f6;
        min-width: 100%;
    }
    
    .order-details-grid {
        flex: 1;
        min-width: 100%;
    }
    
    .order-card-footer {
        border-left: none;
        border-top: 2px solid #e5e7eb;
        min-width: 100%;
        flex-direction: row;
        justify-content: space-around;
    }
    
    .order-actions {
        flex-direction: row;
        width: auto;
    }
    
    .action-btn {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 768px) {
    .orders-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    
    .stat-content h3 {
        font-size: 24px;
    }
    
    .order-details-grid {
        flex-direction: column;
    }
    
    .order-detail-item {
        width: 100%;
    }
}

