/* General Body and Layout */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    background: #f5f5f5;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}


.main {
    flex: 1;
    padding: 20px;
    background: #fafafa;
    border-radius: 20px;
    margin: 15px;
    margin-left: 290px;
    margin-top: 90px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    position: relative;
    z-index: 1;
    height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    width: calc(100vw - 320px);
}

/* Custom scrollbar for main content */
.main::-webkit-scrollbar {
    width: 4px;
}

.main::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 2px;
}

.main::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.main::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}


/* Header */
.header {
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
    height: 70px;
    background: linear-gradient(135deg, #008060 0%, #006b4f 50%, #005a45 100%);
    border-bottom: 2px solid rgba(255, 153, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: calc(100vw - 260px);
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 40px;              /* Height of the logo */
    width: auto;               /* Width adjusts automatically */
    max-width: 150px;          /* Maximum width */
    object-fit: contain;       /* Keeps aspect ratio */
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 28px;
    background: linear-gradient(135deg, #ff9900 0%, #e68900 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    font-size: 20px;  /* Reduced from 24px */
    font-weight: 600; /* Slightly lighter */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Notification Section */
.notification-section {
    position: relative;
    z-index: 1001;
}

.notification-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 153, 0, 0.3);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 153, 0, 0.6);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.3);
}

.bell-icon {
    font-size: 22px;
    animation: bellRing 2s ease-in-out infinite;
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2px 5px;
    border: 2px solid #008060;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 153, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 380px;
    max-width: 420px;
    max-height: 600px;
    overflow: hidden;
    z-index: 1002;
}

.notification-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-header {
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.notification-header h3 {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 700;
}

.mark-all-read {
    background: none;
    border: none;
    color: #ff9900;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mark-all-read:hover {
    color: #e68900;
    text-decoration: underline;
}

.notification-list {
    max-height: 450px;
    overflow-y: auto;
}

.notification-list::-webkit-scrollbar {
    width: 8px;
}

.notification-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #ff9900;
    border-radius: 4px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: #e68900;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #fff8f0;
    border-left: 4px solid #ff9900;
}

.notification-item.unread:hover {
    background: #fff4e6;
}

.notification-icon {
    font-size: 28px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.notification-content {
    flex: 1;
}

.notification-message {
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 6px;
    font-weight: 500;
    line-height: 1.4;
}

.notification-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #7f8c8d;
}

.notification-amount {
    font-weight: 600;
    color: #27ae60;
}

.notification-time {
    color: #95a5a6;
}

.notification-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    align-self: flex-start;
    white-space: nowrap;
}

.notification-status.new {
    background: #e3f2fd;
    color: #1976d2;
}

.notification-status.processing {
    background: #fff8e1;
    color: #f57c00;
}

.notification-status.ready {
    background: #e8f5e9;
    color: #388e3c;
}

.no-notifications,
.loading-notifications,
.no-activities,
.loading-activities {
    padding: 40px 20px;
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
}

.notification-footer {
    padding: 15px 20px;
    border-top: 2px solid #f0f0f0;
    text-align: center;
    background: #f8f9fa;
}

.view-all-link {
    color: #ff9900;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.view-all-link:hover {
    color: #e68900;
    text-decoration: underline;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: linear-gradient(135deg, #008060 0%, #006b4f 50%, #005a45 100%);
    height: 100vh;
    padding: 30px 0;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    border-right: 2px solid rgba(255, 153, 0, 0.2);
    box-shadow: 6px 0 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
}

.sidebar a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin: 8px 18px;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    display: flex;
    align-items: center;
    padding: 14px 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.sidebar a:hover {
    color: white;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 153, 0, 0.1) 100%);
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    border-left: 3px solid rgba(255, 153, 0, 0.6);
}

.sidebar a.active {
    color: #ff9900;
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.25) 0%, rgba(255, 153, 0, 0.15) 100%);
    border-left: 4px solid #ff9900;
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
    transform: translateX(5px);
    font-weight: 700;
}

.sidebar a.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.1) 0%, transparent 100%);
    border-radius: 12px;
}

.sidebar a span {
    margin-left: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.sidebar a::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.sidebar a:hover::after,
.sidebar a.active::after {
    opacity: 1;
    background: #ff9900;
}

/* Sidebar Logo/Brand */
.sidebar-brand {
    padding: 0 25px 30px 25px;
    border-bottom: 2px solid rgba(255, 153, 0, 0.3);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border-radius: 0 0 20px 20px;
    margin: 0 10px 20px 10px;
    padding-top: 20px;
}

.sidebar-logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.4s ease;
    background: transparent;
    border: none;
    outline: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.sidebar-logo:hover {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
    background: transparent;
}

.sidebar-brand h2 {
    color: white;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sidebar-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin: 5px 0 0 0;
    font-size: 12px;
    text-align: center;
    font-weight: 400;
}

/* Sidebar Navigation Section */
.sidebar-nav {
    flex: 1;
    padding: 0 10px;
}

.sidebar-nav-title {
    color: rgba(255, 153, 0, 0.8);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 20px 25px 12px 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Generic Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table th,
table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

table th {
    background-color: #f5f5f5;
}

/* Dashboard Section */
#dashboard {
    background: #f8f9fa;
    padding: 0;
    min-height: auto;
    height: auto;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.card {
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ff9900 0%, #e68900 100%);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.card h4 {
    margin: 0 0 15px 0;
    color: #6c757d;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card .value {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.card[data-status="Orders"]::before {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.card[data-status="Sales"]::before {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.card[data-status="StockIn"]::before {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.card[data-status="StockOut"]::before {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}


/* Enhanced Cards */
.card-icon {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.card h4 {
    margin: 0 0 8px 0;
    color: #6c757d;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card .value {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.card-change {
    font-size: 10px;
    font-weight: 500;
    margin-top: 4px;
    padding: 3px 6px;
    border-radius: 8px;
    display: inline-block;
}

.card-change.positive {
    background: #d4edda;
    color: #155724;
}

.card-change.negative {
    background: #f8d7da;
    color: #721c24;
}

.card-change.neutral {
    background: #e2e3e5;
    color: #6c757d;
}

/* Dashboard Content */
.dashboard-content {
    margin-bottom: 8px;
}

.main-chart {
    margin-bottom: 8px;
}

.chart-container h3 {
    margin: 0 0 4px 0;
    color: #2c3e50;
    font-size: 12px;
    font-weight: 600;
}

/* Account Section */
.account-section {
    position: relative;
    z-index: 1001;
}

.account-info {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 153, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 12px;
}

.account-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 153, 0, 0.4);
    border-color: rgba(255, 153, 0, 0.6);
    background: rgba(255, 255, 255, 0.2);
}

.account-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff9900 0%, #e68900 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.avatar-icon {
    font-size: 16px;
    color: white;
}

.account-details {
    flex: 1;
    display: block; /* Show text in header */
}

.account-name {
    font-weight: 600;
    color: white;
    font-size: 14px;
    margin-bottom: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.account-role {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.account-actions {
    margin-left: 8px;
}

.account-btn {
    background: rgba(255, 153, 0, 0.2);
    border: 1px solid rgba(255, 153, 0, 0.4);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 4px;
}

.account-btn:hover {
    background: rgba(255, 153, 0, 0.4);
    border-color: rgba(255, 153, 0, 0.6);
    transform: rotate(90deg);
}

/* Account Menu */
.account-menu {
    position: absolute;
    top: 70px;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    border: 1px solid #f0f0f0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 280px;
}

.account-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.user-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 4px;
}

.user-email {
    font-size: 14px;
    color: #6c757d;
}

.menu-items {
    padding: 8px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #2c3e50;
}

.menu-item:hover {
    background: #f8f9fa;
}

.menu-item.sign-out:hover {
    background: #f8d7da;
    color: #dc3545;
}

.menu-icon {
    font-size: 16px;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.menu-text {
    font-size: 14px;
    font-weight: 500;
}

.menu-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 8px 0;
}

/* Settings Modal */
.settings-section {
    margin-top: 20px;
}

.settings-section h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.settings-section p {
    margin: 0 0 20px 0;
    color: #6c757d;
    font-size: 14px;
}

.avatar-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.avatar-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.avatar-option:hover {
    border-color: #ff9900;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.2);
}

.avatar-option.selected {
    border-color: #ff9900;
    background: #fff8f0;
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.avatar-preview {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.avatar-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    text-align: center;
}

.settings-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-primary {
    background: linear-gradient(135deg, #ff9900 0%, #e68900 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.chart-container {
    background: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.chart-wrapper {
    position: relative;
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.chart-wrapper canvas {
    max-width: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    height: 100% !important;
}


.chart-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.charts .chart-container {
    margin-bottom: 0;
}

.charts .chart-container h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}


/* Inventory Section */
.inventory-container {
    background: #f8f9fa;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: auto;
    height: auto;
}

.inventory-header {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title h2 {
    margin: 0 0 5px 0;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.header-subtitle {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

.inventory-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 24px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #ff9900;
    border-radius: 12px;
    color: #000;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

.inventory-filters {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.categories {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.category {
    padding: 15px;
    background: #f0f2f5;
    border-radius: 18px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
    min-width: 100px;
}

.category:hover,
.category.active {
    transform: scale(1.05);
    background: #dfe9df;
}

.inventory-table-container {
    background: white;
    padding: 0;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    overflow: hidden;
    margin-top: 0;
}

#inventoryTable {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
}

#inventoryTable th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#inventoryTable td {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
    color: #2c3e50;
}

#inventoryTable tbody tr:hover {
    background: #f8f9fa;
    transition: background-color 0.2s ease;
}

#inventoryTable img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

#inventoryTable img:hover {
    transform: scale(1.05);
}

.product-name {
    font-weight: 600;
    color: #2c3e50;
}

.product-category {
    color: #7f8c8d;
    font-size: 14px;
}

.product-price {
    font-weight: 700;
    color: #27ae60;
    font-size: 16px;
}

.product-quantity {
    font-weight: 600;
    color: #e74c3c;
}

/* Products Section */
.products-container {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
}


.products-header {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.header-title h2 {
    margin: 0 0 5px 0;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.header-subtitle {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 400;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-primary, .btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
}

.btn-primary {
    background: #ff9900;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: #e68900;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
}

.btn-secondary {
    background: #ff9900;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: #e68900;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
}

.btn-icon {
    font-size: 16px;
}

.products-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.products-filters {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.users-filters {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-box {
    position: relative;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #667eea;
    z-index: 1;
}

#productSearch, #userSearch {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

#productSearch:focus, #userSearch:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background: #ff9900;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
}

.filter-btn:hover {
    background: #e68900;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
}

.filter-btn.active {
    background: #e68900;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
    transform: translateY(-1px);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    flex: 1;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 32px;
    opacity: 0.8;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 500;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.product-card {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 18px;
}

.quantity-control {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

.quantity-control button {
    padding: 5px 10px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.quantity-control span {
    margin: 0 10px;
    font-size: 16px;
    font-weight: bold;
}

.product-actions {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.product-actions button {
    background: #eee;
    border: none;
    padding: 5px 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.products-table-container {
    background: white;
    padding: 0;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    overflow: hidden;
    margin-top: 0;
}

.users-table-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    backdrop-filter: blur(15px);
    position: relative;
}


#productsTable {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

#productsTable thead {
    background: #f8f9fa;
}

#productsTable th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#productsTable td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f3f4;
    font-size: 14px;
    color: #495057;
    vertical-align: middle;
}

#productsTable tbody tr {
    transition: all 0.2s ease;
}

#productsTable tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
}

#productsTable img {
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

#productsTable img:hover {
    transform: scale(1.05);
}

.product-name {
    font-weight: 600;
    color: #2c3e50;
}

.product-category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.product-price {
    font-weight: 700;
    color: #27ae60;
    font-size: 16px;
}

.product-quantity {
    font-weight: 600;
    color: #e74c3c;
}

.actions-cell {
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.edit-product-btn, .delete-product-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
}

.edit-product-btn { 
    background: #ff9900;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
}

.edit-product-btn:hover {
    background: #e68900;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.4);
}

.delete-product-btn {
    background: #ff9900;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
}

.delete-product-btn:hover {
    background: #e68900;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.4);
}

/* Users Section */
.users-container {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    position: relative;
    overflow: visible;
    z-index: 1;
}


.users-header {
    margin-bottom: 25px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.header-title h2 {
    margin: 0 0 5px 0;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.header-subtitle {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 400;
}

.users-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.users-table-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

#userSearch {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    margin: 20px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

#userSearch:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

#usersTable {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

#usersTable thead {
    background: #f8f9fa;
}

#usersTable th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#usersTable td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f3f4;
    font-size: 14px;
    color: #495057;
    vertical-align: middle;
}

#usersTable tbody tr {
    transition: all 0.2s ease;
}

#usersTable tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
    transform: scale(1.01);
}

.edit-user-btn,
.delete-user-btn,
.edit-customer-btn,
.delete-customer-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
    margin-right: 8px;
}

.edit-user-btn,
.edit-customer-btn {
    background: #ff9900;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
}

.edit-user-btn:hover,
.edit-customer-btn:hover {
    background: #e68900;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.4);
}

.delete-user-btn,
.delete-customer-btn {
    background: #dc3545;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.delete-user-btn:hover,
.delete-customer-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* User Edit Modal */
#editUserModal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
}

#editUserModal .modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#editUserModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

#editUserModal .modal-header h3 {
    margin: 0;
    color: #333;
}

#editUserModal .close {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

#editUserModal .close:hover {
    color: #333;
}

#editUserModal .form-group {
    margin-bottom: 15px;
}

#editUserModal .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

#editUserModal .form-group input,
#editUserModal .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

#editUserModal .form-group input:focus,
#editUserModal .form-group select:focus {
    outline: none;
    border-color: #ff9900;
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.2);
}

#editUserModal .form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

#editUserModal .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#editUserModal .btn-primary {
    background: #ff9900;
    color: white;
}

#editUserModal .btn-primary:hover {
    background: #e68900;
}

#editUserModal .btn-secondary {
    background: #6c757d;
    color: white;
}

#editUserModal .btn-secondary:hover {
    background: #5a6268;
}

/* Customer Edit Modal */
#editCustomerModal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
}

#editCustomerModal .modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#editCustomerModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

#editCustomerModal .modal-header h3 {
    margin: 0;
    color: #333;
}

#editCustomerModal .close {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

#editCustomerModal .close:hover {
    color: #333;
}

#editCustomerModal .form-group {
    margin-bottom: 15px;
}

#editCustomerModal .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

#editCustomerModal .form-group input,
#editCustomerModal .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

#editCustomerModal .form-group input:focus,
#editCustomerModal .form-group select:focus {
    outline: none;
    border-color: #ff9900;
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.2);
}

#editCustomerModal .form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

#editCustomerModal .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#editCustomerModal .btn-primary {
    background: #ff9900;
    color: white;
}

#editCustomerModal .btn-primary:hover {
    background: #e68900;
}

#editCustomerModal .btn-secondary {
    background: #6c757d;
    color: white;
}

#editCustomerModal .btn-secondary:hover {
    background: #5a6268;
}

/* Dashboard Sections */
.dashboard-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.dashboard-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.section-header h3 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.section-icon {
    font-size: 20px;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.activity-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.activity-time {
    font-size: 12px;
    color: #666;
}

.activity-value {
    font-weight: 600;
    color: #ff9900;
    font-size: 14px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.quick-action-btn:hover {
    background: #ff9900;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.action-icon {
    font-size: 24px;
}

.action-text {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

/* Sales Overview Section */
.sales-overview-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.overview-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.overview-icon {
    font-size: 24px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.overview-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e9ecef;
}

.overview-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    font-size: 14px;
}

.overview-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.time-slot, .trend-item, .breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.time-slot:last-child, .trend-item:last-child, .breakdown-item:last-child {
    border-bottom: none;
}

.time, .trend-label, .breakdown-label {
    font-size: 13px;
    color: #666;
}

.percentage, .trend-value, .breakdown-value {
    font-weight: 600;
    font-size: 13px;
}

.trend-value.positive {
    color: #28a745;
}

/* Top Products Section */
.top-products-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

/* Removed duplicate .products-header definition */

.products-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-rank-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.product-rank-card:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rank-number {
    width: 40px;
    height: 40px;
    background: #ff9900;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.product-info {
    flex: 1;
}

.product-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.product-category {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.product-stats {
    display: flex;
    gap: 16px;
}

.units-sold, .revenue {
    font-size: 12px;
    color: #666;
}

.product-performance {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 80px;
}

.performance-bar {
    width: 60px;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.performance-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff9900, #e68900);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.performance-text {
    font-size: 12px;
    font-weight: 600;
    color: #ff9900;
}

/* New Products Inventory Style */
/* Removed duplicate .products-header definition */

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 12px 40px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 25px;
    background: #f8f9fa;
    font-size: 14px;
    width: 250px;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #027353;
    background: white;
    box-shadow: 0 0 0 2px rgba(2, 115, 83, 0.1);
}

.search-icon, .clear-icon {
    position: absolute;
    color: #666;
    font-size: 16px;
    cursor: pointer;
}

.search-icon {
    left: 15px;
}

.clear-icon {
    right: 15px;
    font-size: 18px;
    font-weight: bold;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background: #ff9900;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
}

.action-btn:hover {
    background: #e68900;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
}

.action-btn.primary {
    background: #ff9900;
    color: white;
}

.action-btn.primary:hover {
    background: #e68900;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
}

/* Categories Section */
.categories-section {
    margin-bottom: 40px;
}

.category-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.category-card.active {
    background: #e8f5e8;
    border: 2px solid #4CAF50;
}

.category-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Products Section */
.products-section {
    margin-top: 30px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-item:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-image {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
    margin-right: 15px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.product-quantity {
    font-size: 14px;
    color: #666;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #27ae60;
    flex-shrink: 0;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-products p {
    font-size: 16px;
    margin: 0;
}

/* Edit Category Modal Styles */
.category-edit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.category-info {
    flex: 1;
    margin-right: 15px;
}

.category-name-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: white;
}

.category-actions {
    display: flex;
    gap: 8px;
}

.btn-save-category, .btn-delete-category {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-save-category {
    background: #28a745;
    color: white;
}

.btn-save-category:hover {
    background: #218838;
}

.btn-delete-category {
    background: #dc3545;
    color: white;
}

.btn-delete-category:hover {
    background: #c82333;
}

/* Sales Section */
.sales-container {
    background: #f8f9fa;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: auto;
    height: auto;
}

.sales-header {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sales-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.sales-filters {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filters-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.filter-select, .filter-input {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s ease;
}

.filter-select:focus, .filter-input:focus {
    outline: none;
    border-color: #ff9900;
}

.sales-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}


.chart-container h3 {
    margin: 0 0 4px 0;
    color: #2c3e50;
    font-size: 12px;
    font-weight: 600;
}

.chart-placeholder {
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

.chart-icon {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.chart-placeholder p {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

.sales-table-container {
    background: white;
    padding: 0;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid #e9ecef;
}

.table-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.table-actions {
    display: flex;
    gap: 10px;
}

#salesTable {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

#salesTable th {
    background: #f8f9fa;
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#salesTable td {
    padding: 20px 15px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
    color: #2c3e50;
}

#salesTable tbody tr:hover {
    background: #f8f9fa;
    transition: background-color 0.2s ease;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.product-category {
    color: #7f8c8d;
    font-size: 12px;
}

.units-sold {
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.revenue {
    font-weight: 700;
    color: #27ae60;
    font-size: 16px;
}

.profit {
    font-weight: 600;
    color: #3498db;
    font-size: 14px;
}

.date {
    color: #7f8c8d;
    font-size: 14px;
}

.stat-change {
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
}

.stat-change.positive {
    color: #27ae60;
}

.stat-change.negative {
    color: #e74c3c;
}


/* Orders section */
.order-history {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

/* Order Details Dropdown Styles */
.order-datetime {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-date {
    font-weight: 600;
    color: #2c3e50;
}

.order-time {
    font-size: 12px;
    color: #6c757d;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #6c757d;
    color: white;
}

.status-pick-up {
    background: #ffc107;
    color: #212529;
}

.status-completed {
    background: #28a745;
    color: white;
}

.status-cancelled {
    background: #dc3545;
    color: white;
}

.order-details-btn {
    background: linear-gradient(135deg, #ff9900 0%, #e68900 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-details-btn:hover {
    background: linear-gradient(135deg, #e68900 0%, #d17a00 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.order-details-btn.active {
    background: linear-gradient(135deg, #027353 0%, #025a47 100%);
}

.order-details-row {
    background: #f8f9fa;
    border-left: 4px solid #ff9900;
}

.order-details-content {
    padding: 20px;
    background: white;
    border-radius: 8px;
    margin: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.order-info h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
}

.customer-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.order-items h5 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.items-list {
    margin-bottom: 20px;
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.item-row:last-child {
    border-bottom: none;
}

.item-name {
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
}

.item-details {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 14px;
}

.quantity {
    color: #6c757d;
    font-weight: 500;
}

.price {
    color: #027353;
    font-weight: 600;
}

.subtotal {
    color: #2c3e50;
    font-weight: 700;
    font-size: 16px;
}

.order-total {
    text-align: right;
    padding: 15px 0;
    border-top: 2px solid #ff9900;
    font-size: 18px;
    color: #2c3e50;
}

.no-items {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

.order-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin: 10px 0;
    border-left: 4px solid #ff9900;
}

/* Order Action Buttons */
.order-actions {
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #dee2e6;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.action-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px dashed #ced4da;
}

.action-header h5 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-subtitle {
    margin: 0;
    color: #6c757d;
    font-size: 13px;
    font-style: italic;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-accept-order,
.btn-decline-order,
.btn-complete-order,
.btn-prepare-order {
    flex: 1;
    min-width: 180px;
    padding: 16px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-accept-order::before,
.btn-decline-order::before,
.btn-complete-order::before,
.btn-prepare-order::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.btn-accept-order:hover::before,
.btn-decline-order:hover::before,
.btn-complete-order:hover::before,
.btn-prepare-order:hover::before {
    left: 100%;
}

.btn-accept-order {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-accept-order:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.4);
}

.btn-decline-order {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.btn-decline-order:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.4);
}

.btn-complete-order {
    background: linear-gradient(135deg, #ff9900 0%, #ff6b00 100%);
    color: white;
    max-width: 300px;
}

.btn-complete-order:hover {
    background: linear-gradient(135deg, #ff6b00 0%, #ff4500 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 153, 0, 0.4);
}

.btn-prepare-order {
    background: linear-gradient(135deg, #fd7e14 0%, #e55100 100%);
    color: white;
    max-width: 300px;
}

.btn-prepare-order:hover {
    background: linear-gradient(135deg, #e55100 0%, #d84315 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(253, 126, 20, 0.4);
}

.btn-accept-order:active,
.btn-decline-order:active,
.btn-complete-order:active,
.btn-prepare-order:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-accept-order .btn-icon,
.btn-decline-order .btn-icon,
.btn-complete-order .btn-icon,
.btn-prepare-order .btn-icon {
    font-size: 24px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    text-align: left;
}

.btn-text strong {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.btn-text small {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* Loading state for buttons */
.btn-accept-order:disabled,
.btn-decline-order:disabled,
.btn-complete-order:disabled,
.btn-prepare-order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-accept-order,
    .btn-decline-order,
    .btn-complete-order,
    .btn-prepare-order {
        width: 100%;
        min-width: auto;
    }
}

.order-summary p {
    margin: 5px 0;
    font-size: 14px;
}

.order-summary strong {
    color: #2c3e50;
    font-size: 16px;
}

.order-header h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
}

#orderTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#orderTable th {
    background: #f8f9fa;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#orderTable td {
    padding: 15px 12px;
    border-bottom: 1px solid #f1f3f4;
    color: #2c3e50;
}

#orderTable tbody tr:hover {
    background: #f8f9fa;
    transition: background-color 0.2s ease;
}

.order-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.order-tabs button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
    color: #6c757d;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    opacity: 0.8;
}

.order-tabs button:hover {
    background: rgba(255, 255, 255, 0.8);
    color: #495057;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 1;
}

.order-tabs button.active {
    background: linear-gradient(135deg, #ff9900 0%, #e68900 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
    opacity: 1;
    border: 2px solid #ff9900;
}

.order-tabs button.active:hover {
    background: linear-gradient(135deg, #e68900 0%, #d17a00 100%);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.5);
}

/* Enhanced active states for specific status buttons */
.order-tabs .pending.active {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
    border: 2px solid #6c757d !important;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4) !important;
}

.order-tabs .pickup.active {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%) !important;
    border: 2px solid #ffc107 !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4) !important;
    color: #212529 !important;
}

.order-tabs .completed.active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border: 2px solid #28a745 !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4) !important;
}

.order-tabs .cancelled.active {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    border: 2px solid #dc3545 !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4) !important;
}

.order-tabs .preparing.active {
    background: linear-gradient(135deg, #ffeb3b 0%, #ffc107 100%) !important;
    border: 2px solid #ffeb3b !important;
    box-shadow: 0 4px 15px rgba(255, 235, 59, 0.6) !important;
    color: #212529 !important;
}

.order-tabs .completed {
    background: #28a745 !important;
    color: white !important;
}

.order-tabs .pickup {
    background: #ffc107 !important;
    color: #212529 !important;
}

.order-tabs .pending {
    background: #6c757d !important;
    color: white !important;
}

.order-tabs .cancelled {
    background: #dc3545 !important;
    color: white !important;
}

.order-tabs .preparing {
    background: #fd7e14 !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(253, 126, 20, 0.4) !important;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-header h3 {
    margin: 0;
    color: #ff6600;
}

#orderTable {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

#orderTable th,
#orderTable td {
    white-space: nowrap;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fafafa;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-content h3 {
    margin-top: 0;
}

.modal-content label {
    display: block;
    margin: 10px 0 5px;
    text-align: left;
}

.modal-content input,
.modal-content select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.modal-content button {
    width: 100%;
    padding: 12px 24px;
    background: #ff9900;
    border: none;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
    transition: all 0.3s ease;
}

.modal-content button:hover {
    background: #e68900;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

/* --- New Styles for Inventory Page --- */

/* Styles for the Category Modal */
#categoryModal .modal-content {
    width: 90%;
    max-width: 400px;
}

#categoryForm button {
    background-color: #027353;
    margin-top: 10px;
}

/* Styles for Edit Mode */
.category .delete-icon {
    display: none; /* Hidden by default */
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #d9534f;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
}

.category {
    position: relative; /* Needed for positioning the delete icon */
}

/* When edit mode is active, show the delete icon */
.categories.edit-mode .delete-icon {
    display: block;
}

/* ========================================
   CANCELLED ORDERS PAGE STYLES
   ======================================== */

/* Cancelled Orders Page Styles */
#cancelled-orders {
    padding: 20px;
}

.cancelled-orders-container {
    max-width: 1400px;
    margin: 0 auto;
}

.cancelled-header {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cancelled-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card.stat-danger {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #d32f2f;
}

.cancelled-table-container {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cancelled-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cancelled-orders-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.cancelled-orders-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.cancelled-order-row:hover {
    background: #fff5f5;
}

.order-number {
    font-weight: 600;
    color: #d32f2f;
}

.phone-number {
    color: #495057;
    font-size: 13px;
}

.amount-lost {
    font-weight: 600;
    color: #d32f2f;
    font-size: 15px;
}

.date-time {
    color: #6c757d;
    font-size: 13px;
}

.reason-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffebee;
    color: #c62828;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    max-width: 300px;
}

.reason-icon {
    font-size: 14px;
}

.reason-text {
    line-height: 1.4;
}

.no-reason {
    color: #999;
    font-style: italic;
    font-size: 12px;
}

.notes-text {
    color: #6c757d;
    font-size: 12px;
    cursor: help;
}

.no-cancelled-orders {
    padding: 60px 20px;
}

.empty-state {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.empty-state p {
    color: #6c757d;
    margin: 0 0 20px 0;
}

/* Responsive for Cancelled Orders */
@media (max-width: 768px) {
    .cancelled-orders-table {
        font-size: 12px;
    }
    
    .cancelled-orders-table th,
    .cancelled-orders-table td {
        padding: 8px;
    }
}

/* ========================================
   ORDER DETAILS MODAL STYLES
   ======================================== */

/* Order Details Modal */
#orderDetailsModal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.order-details-modal {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.2s ease-out;
    position: relative;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
}

.order-details-modal h3 {
    background: linear-gradient(135deg, #ff9900 0%, #e68900 100%);
    color: white;
    margin: 0;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
    font-size: 1.4em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-details-body {
    padding: 0;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
    border-radius: 0 0 12px 12px;
}

.order-details-body::-webkit-scrollbar {
    width: 8px;
}

.order-details-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.order-details-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.order-details-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

#modalOrderContent {
    padding: 25px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Order Details Modal */
@media (max-width: 768px) {
    .order-details-modal {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .order-details-modal h3 {
        padding: 15px 20px;
        font-size: 1.2em;
    }
    
    #modalOrderContent {
        padding: 20px;
    }
}
