/* Fast Shop POS System - Modern Professional Layout */
/* Color Palette: Blue gradient (#87CEEB to #1E90FF), Yellow (#FFD700), White */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --primary-blue: #1E90FF;
    --secondary-blue: #4682B4;
    --light-blue: #87CEEB;
    --accent-yellow: #FFD700;
    --dark-yellow: #FFA500;
    --success-green: #28a745;
    --warning-orange: #fd7e14;
    --danger-red: #dc3545;
    --info-cyan: #17a2b8;
    --dark-gray: #2c3e50;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --white: #ffffff;
    --sidebar-width: 260px;
    --header-height: 70px;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--light-gray);
    overflow-x: hidden;
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

.app-container.hidden {
    display: none;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 2000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar * {
    position: relative;
    z-index: inherit;
}

/* Icon Styles */
.nav-icon, .btn-icon, .icon-symbol {
    display: inline-block;
    font-size: inherit;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    text-rendering: auto;
    vertical-align: baseline;
    position: relative;
    z-index: 100;
}

.nav-icon {
    font-size: 1.2rem;
    margin-right: 0.75rem;
    width: 1.5rem;
    text-align: center;
}

.btn-icon {
    font-size: 1rem;
}

.icon-symbol {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.metric-icon .icon-symbol {
    color: white;
    font-size: 1.5rem;
}

/* Ensure all FontAwesome icons are visible */
.fas, .far, .fab, .fal, .fad {
    position: relative;
    z-index: 100;
}

.sidebar .fas, .sidebar .far, .sidebar .fab, .sidebar .fal, .sidebar .fad {
    z-index: 1002;
}

.sidebar-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    background: inherit;
    z-index: 1001;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: bold;
}

.logo-fast {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.logo-shop {
    color: var(--accent-yellow);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-bolt {
    color: var(--accent-yellow);
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.sidebar-nav {
    padding: 1rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    z-index: 2001;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.nav-links li {
    margin: 0;
    padding: 0;
    width: 100%;
    display: block;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    width: 100%;
    z-index: 1500;
    box-sizing: border-box;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-yellow);
    box-shadow: 0 0 10px var(--accent-yellow);
}

.nav-link i {
    font-size: 1.2rem;
    width: 24px;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-link span {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
}

.sidebar-footer {
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sync Status Styles */
.sync-status-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sync-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.sync-status.success {
    color: var(--success-green);
}

.sync-status.error {
    color: #ff4757;
}

.sync-status.info {
    color: var(--primary-blue);
}

.sync-icon {
    font-size: 1rem;
    opacity: 0.8;
}

.sync-status.success .sync-icon {
    color: var(--success-green);
}

.sync-status.error .sync-icon {
    color: #ff4757;
}

.sync-status.info .sync-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-sync {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-sync:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-1px);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.user-info i {
    font-size: 1.5rem;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    background: var(--light-gray);
    min-height: 100vh;
    padding: 2rem;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
    width: calc(100% - var(--sidebar-width));
}

.main-content * {
    position: relative;
    z-index: inherit;
}

.main-content .btn {
    z-index: 100;
}

.main-content i {
    z-index: 101;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    clear: both;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
    position: relative;
    z-index: 2;
}

.section-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.metric-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white !important;
    flex-shrink: 0;
    position: relative;
    z-index: 100;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.metric-icon .icon-symbol {
    position: relative;
    z-index: 101;
    color: white !important;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-card.primary .metric-icon { 
    background: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(30, 144, 255, 0.2);
}

.metric-card.success .metric-icon { 
    background: var(--success-green);
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.metric-card.warning .metric-icon { 
    background: var(--warning-orange);
    box-shadow: 0 0 0 2px rgba(253, 126, 20, 0.2);
}

.metric-card.info .metric-icon { 
    background: var(--info-cyan);
    box-shadow: 0 0 0 2px rgba(23, 162, 184, 0.2);
}

.metric-content {
    position: relative;
    z-index: 10;
}

.metric-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1;
    position: relative;
    z-index: 10;
}

.metric-content p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0.5rem 0;
    position: relative;
    z-index: 10;
}

.metric-change {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    display: inline-block;
}

.metric-change.positive {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-green);
}

.metric-change.negative {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-red);
}

.metric-change.neutral {
    background: rgba(108, 117, 125, 0.1);
    color: var(--text-light);
}

/* Modern Reports Styling */
.reports-content {
    margin-top: 2rem;
}

.report-panel {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.report-panel.active {
    display: block;
}

/* Modern Reports Navigation */
.reports-nav {
    display: flex;
    gap: 0;
    margin-bottom: 2.5rem;
    background: var(--white);
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.report-tab {
    background: none;
    border: none;
    padding: 1rem 2rem;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
    flex: 1;
    justify-content: center;
    white-space: nowrap;
}

.report-tab:hover:not(.active) {
    color: var(--text-dark);
    background: rgba(30, 144, 255, 0.08);
    transform: translateY(-1px);
}

.report-tab.active {
    color: white;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    box-shadow: 0 4px 16px rgba(30, 144, 255, 0.3);
    transform: translateY(-2px);
}

.report-tab .nav-icon {
    font-size: 1.1rem;
    opacity: 0.8;
}

.report-tab.active .nav-icon {
    opacity: 1;
}

/* Modern Report Cards */
.reports-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.report-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.report-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.12);
}

.report-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-yellow), var(--success-green));
    border-radius: 20px 20px 0 0;
}

.report-card.large {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-gray);
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 2px;
}

.card-header h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, var(--text-dark), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern Top Items List */
.top-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.top-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: 16px;
    border: 1px solid rgba(30, 144, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.top-item:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 40px rgba(30, 144, 255, 0.15);
    border-color: rgba(30, 144, 255, 0.2);
}

.top-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-yellow));
    transition: width 0.3s ease;
}

.top-item:hover::before {
    width: 8px;
}

.rank {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(30, 144, 255, 0.3);
    flex-shrink: 0;
}

.top-item:first-child .rank {
    background: linear-gradient(135deg, var(--accent-yellow), var(--dark-yellow));
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.item-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    background: rgba(30, 144, 255, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(30, 144, 255, 0.1);
}

/* Modern Platform Analytics */
.platform-analysis {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(30, 144, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.platform-analysis:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(30, 144, 255, 0.12);
    border-color: rgba(30, 144, 255, 0.2);
}

.platform-analysis::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-yellow));
}

.platform-analysis h4 {
    color: var(--text-dark);
    margin: 0 0 1.5rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.platform-analysis h4::before {
    content: '🏪';
    font-size: 1.2rem;
}

.analysis-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    background: rgba(30, 144, 255, 0.04);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(30, 144, 255, 0.1);
    transition: all 0.2s ease;
    text-align: center;
}

.stat-item:hover {
    background: rgba(30, 144, 255, 0.08);
    transform: translateY(-2px);
}

.stat-label {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.3rem;
}

/* Modern Product Performance */
.product-performance-list {
    display: grid;
    gap: 2rem;
}

.product-performance-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(30, 144, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
}

.product-performance-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(30, 144, 255, 0.15);
    border-color: rgba(30, 144, 255, 0.25);
}

.product-performance-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--success-green), var(--primary-blue), var(--accent-yellow));
}

.product-performance-item h4 {
    color: var(--text-dark);
    margin: 0 0 1.5rem 0;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-performance-item h4::before {
    content: '📦';
    font-size: 1.2rem;
}

.performance-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.metric {
    text-align: center;
    background: rgba(30, 144, 255, 0.04);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    border: 1px solid rgba(30, 144, 255, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric:hover {
    background: rgba(30, 144, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.12);
}

.metric-label {
    display: block;
    color: var(--text-light);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.metric-value {
    display: block;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1;
}

/* Enhanced No Data State */
.no-data {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 16px;
    border: 2px dashed rgba(30, 144, 255, 0.2);
    font-size: 1.1rem;
}

.no-data::before {
    content: '📊';
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.dashboard-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    position: relative;
    z-index: 2;
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.card-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.view-all {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: var(--secondary-blue);
}

.period-selector {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 50;
    overflow: visible;
}

.btn i {
    z-index: 51;
    position: relative;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-edit {
    background: var(--info-cyan);
    color: white;
}

.btn-edit:hover {
    background: #138496;
}

.btn-delete {
    background: var(--danger-red);
    color: white;
}

.btn-delete:hover {
    background: #c82333;
}

/* Sales Overview */
.sales-overview {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.sales-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    transition: border-color 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.sales-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.summary-card {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.2);
}

.summary-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.summary-card p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Tables and Lists */
.sales-table-container,
.orders-grid {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.table-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-gray);
}

.table-actions input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 250px;
}

.order-item {
    background: var(--white);
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.order-item:hover {
    background: var(--light-gray);
}

.order-item:last-child {
    border-bottom: none;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.order-header h4 {
    color: var(--text-dark);
    font-size: 1.2rem;
}

.order-customer {
    margin-bottom: 1rem;
}

.customer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(30, 144, 255, 0.2);
}

.customer-icon {
    font-size: 0.9rem;
}

.customer-name {
    font-weight: 600;
}

.customer-phone {
    opacity: 0.9;
    font-size: 0.8rem;
}

.platform-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
    background: var(--primary-blue);
    color: white;
}

.order-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.order-detail {
    text-align: center;
}

.order-detail strong {
    display: block;
    color: var(--primary-blue);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Products Table Layout */
.products-table-wrapper {
    margin-top: 2rem;
}

.products-table-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.products-table thead {
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
}

.products-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid var(--border-color);
}

.products-table th:last-child {
    border-right: none;
}

.products-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: top;
}

.products-table td:last-child {
    border-right: none;
}

.product-row:hover {
    background: var(--bg-light);
}

.product-row:nth-child(even) {
    background: rgba(248, 249, 250, 0.5);
}

.product-row:nth-child(even):hover {
    background: var(--bg-light);
}

.product-info-cell {
    min-width: 200px;
    max-width: 250px;
}

.product-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.product-description {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.3;
}

.sku-cell {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    min-width: 80px;
}

.barcode-cell {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    min-width: 120px;
    color: var(--text-dark);
}

.category-cell {
    color: var(--text-dark);
    min-width: 100px;
}

.stock-cell {
    text-align: center;
    font-weight: 600;
    min-width: 80px;
}

.stock-value {
    color: var(--primary-blue);
    font-size: 1rem;
}

.status-cell {
    text-align: center;
    min-width: 100px;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.status-in-stock {
    background: #e8f5e8;
    color: #2d5a2d;
}

.status-low-stock {
    background: #fff3e0;
    color: #cc5500;
}

.status-out-of-stock {
    background: #ffebee;
    color: #c62828;
}

.price-cell {
    text-align: right;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 80px;
}

.margin-cell {
    text-align: right;
    font-weight: 600;
    color: var(--primary-blue);
    min-width: 70px;
}

.threshold-cell {
    text-align: center;
    color: var(--text-dark);
    min-width: 80px;
}

.actions-cell {
    min-width: 120px;
    text-align: center;
}

.table-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.btn-icon {
    padding: 0.5rem;
    border: none;
    background: var(--bg-light);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-1px);
}

.btn-icon.btn-danger:hover {
    background: #dc3545;
    color: white;
}

/* Customers Header and Table */
.customers-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.customers-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.customers-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.customers-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.customers-filters select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 0.9rem;
    min-width: 160px;
}

.customers-search {
    flex: 1;
    min-width: 200px;
}

.customers-search input {
    width: 100%;
    max-width: 300px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.customers-table-wrapper {
    margin-top: 2rem;
}

.customers-table-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.customers-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.customers-table thead {
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
}

.customers-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid var(--border-color);
}

.customers-table th:last-child {
    border-right: none;
}

.customers-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: top;
}

.customers-table td:last-child {
    border-right: none;
}

.customer-row:hover {
    background: var(--bg-light);
}

.customer-row:nth-child(even) {
    background: rgba(248, 249, 250, 0.5);
}

.customer-row:nth-child(even):hover {
    background: var(--bg-light);
}

.customer-info-cell {
    min-width: 180px;
    max-width: 220px;
}

.customer-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.customer-notes {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.3;
}

.phone-cell {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    min-width: 130px;
}

.address-cell {
    min-width: 200px;
    max-width: 250px;
    line-height: 1.4;
}

.email-cell {
    min-width: 150px;
    color: var(--primary-blue);
}

.orders-cell {
    text-align: center;
    font-weight: 600;
    min-width: 80px;
}

.order-count {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 700;
}

.date-cell {
    font-size: 0.85rem;
    color: var(--text-light);
    min-width: 100px;
}

.status-vip {
    background: #fff3cd;
    color: #856404;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8f9fa;
    color: #6c757d;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.platform-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.product-card::before,
.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-yellow), var(--dark-yellow));
    border-radius: 16px 16px 0 0;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.platform-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.product-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

.platform-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Product Card Inventory Styles */
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.product-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-in-stock {
    background: #e8f5e8;
    color: #2d5a2d;
}

.status-low-stock {
    background: #fff3e0;
    color: #cc5500;
}

.status-out-of-stock {
    background: #ffebee;
    color: #c62828;
}

.product-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.info-value {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.stock-info {
    background: var(--bg-light);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stock-quantity {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-blue);
}

.stock-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.product-actions {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.card-actions {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .card-actions,
.platform-card:hover .card-actions {
    opacity: 1;
}

/* Reports */
.reports-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: var(--white);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.report-tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.report-tab.active,
.report-tab:hover {
    background: var(--primary-blue);
    color: white;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.report-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.report-card.large {
    grid-column: 1 / -1;
}

.report-panel {
    display: none;
}

.report-panel.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* Delivery Analytics */
.delivery-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.delivery-zone {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.delivery-zone.inside-beirut::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--success-green);
}

.delivery-zone.outside-beirut::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--warning-orange);
}

.zone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.zone-header h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
}

.zone-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.inside-beirut .zone-icon {
    background: var(--success-green);
}

.outside-beirut .zone-icon {
    background: var(--warning-orange);
}

.zone-metrics {
    display: grid;
    gap: 1.5rem;
}

.zone-metrics .metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.zone-metrics .metric .value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.zone-metrics .metric .label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--white);
    margin: 2vh auto;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.modal-content.large {
    max-width: 800px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    background: var(--white);
}

.modal-header h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
}

.close {
    color: var(--text-light);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    padding: 0.25rem;
}

.close:hover {
    color: var(--primary-blue);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 120px); /* Account for header and some padding */
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.delivery-info-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-yellow);
}

.delivery-info-card h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-item label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.info-item .value {
    font-weight: 700;
    color: var(--text-dark);
}

.info-item .value.profit {
    color: var(--success-green);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Order Controls */
.order-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.controls-left {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.controls-left select,
.controls-left input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
}

/* Products Header */
.products-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.products-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.products-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.products-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.products-filters select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 0.9rem;
    min-width: 160px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.products-search {
    flex: 1;
    min-width: 200px;
}

.products-search input {
    width: 100%;
    max-width: 300px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.platforms-overview {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.platform-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .delivery-comparison {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .sales-filters {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 1vh auto;
        max-height: 95vh;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-header h3 {
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 1.5rem;
        max-height: calc(95vh - 80px);
    }
    
    .order-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .products-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        padding: 1rem;
    }

    .products-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .products-filters {
        flex-direction: column;
        gap: 0.75rem;
    }

    .products-filters select {
        min-width: auto;
    }

    .products-search {
        min-width: auto;
    }

    .products-search input {
        width: 100%;
        max-width: none;
    }

    /* Mobile table responsiveness */
    .products-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .products-table {
        min-width: 900px; /* Increased to accommodate barcode column */
    }

    .products-table th,
    .products-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    .product-info-cell {
        min-width: 150px;
        max-width: 180px;
    }

    .product-description {
        display: none; /* Hide descriptions on mobile to save space */
    }

    .table-actions {
        flex-direction: column;
        gap: 0.25rem;
    }

    .btn-icon {
        min-width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    /* Customers table mobile styles */
    .customers-header {
        gap: 1rem;
        padding: 1rem;
    }

    .customers-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .customers-filters {
        flex-direction: column;
        gap: 0.75rem;
    }

    .customers-filters select {
        min-width: auto;
    }

    .customers-search {
        min-width: auto;
    }

    .customers-search input {
        max-width: none;
    }

    .customers-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .customers-table {
        min-width: 800px;
    }

    .customer-notes {
        display: none;
    }

    .address-cell {
        max-width: 180px;
        font-size: 0.8rem;
    }

    .reports-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .report-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: bold;
}

.logo-fast {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #1E90FF, #4682B4);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
}

.logo-shop {
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.logo-bolt {
    color: #FFD700;
    font-size: 2rem;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #1E90FF;
}

/* Hero Section - Dashboard */
.hero {
    background: linear-gradient(135deg, #1E90FF 0%, #4682B4 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hexagons" x="0" y="0" width="50" height="43.4" patternUnits="userSpaceOnUse"><polygon points="25,0 50,14.4 50,28.9 25,43.4 0,28.9 0,14.4" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23hexagons)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Quick Stats Cards */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #FFD700;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Sections */
.section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.95);
    margin: 2rem 0;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #1E90FF;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* Order Controls */
.order-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

#platformFilter {
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
}

/* Orders List */
.orders-list {
    display: grid;
    gap: 1rem;
}

.order-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #1E90FF;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.order-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.order-detail {
    text-align: center;
}

.order-detail strong {
    display: block;
    color: #1E90FF;
    margin-bottom: 0.25rem;
}

/* Products Grid */
.products-grid,
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card,
.platform-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-top: 4px solid #FFD700;
    position: relative;
}

.product-card:hover,
.platform-card:hover {
    transform: translateY(-5px);
}

.product-card h3,
.platform-card h3 {
    color: #1E90FF;
    margin-bottom: 1rem;
}

/* Login Modal and Authentication */
#loginModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    visibility: visible;
    opacity: 1;
}

.login-modal {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: loginSlideIn 0.5s ease-out;
    position: relative;
    z-index: 10001;
}

@keyframes loginSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-modal.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header .login-logo {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-header .logo-fast {
    color: var(--primary-blue);
    background: rgba(30, 144, 255, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
}

.login-header .logo-shop {
    color: var(--accent-yellow);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.login-header .logo-bolt {
    color: var(--accent-yellow);
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.login-header h2 {
    color: var(--text-dark);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.login-header p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

#loginForm {
    width: 100%;
}

#loginForm .form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

#loginForm label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

#loginForm input[type="text"],
#loginForm input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    box-sizing: border-box;
}

#loginForm input[type="text"]:focus,
#loginForm input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
    background: white;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.btn-login {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.login-help {
    text-align: center;
    padding: 1rem;
    background: rgba(30, 144, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(30, 144, 255, 0.1);
}

.login-help p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Enhanced User Info */
.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logout-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Notification System */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    z-index: 10001;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.3s ease-out;
    display: none;
}

.notification.success {
    background: linear-gradient(135deg, var(--success-green), #20a041);
}

.notification.error {
    background: linear-gradient(135deg, var(--danger-red), #c82333);
}

.notification.info {
    background: linear-gradient(135deg, var(--info-cyan), #138496);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
}

.card-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit {
    background: #17a2b8;
    color: white;
}

.btn-edit:hover {
    background: #138496;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
}

/* Reports Grid */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.report-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.delivery-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.delivery-stat {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.delivery-stat h4 {
    color: #1E90FF;
    margin-bottom: 0.5rem;
}

/* Modal Styles */
.modal {
    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);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #1E90FF;
}

.modal form {
    display: grid;
    gap: 1rem;
}

.modal input,
.modal select,
.modal textarea {
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
}

.modal input:focus,
.modal select:focus,
.modal textarea:focus {
    outline: none;
    border-color: #1E90FF;
}

.delivery-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #FFD700;
}

.delivery-info p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 2rem 0;
    backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 60px 0;
        margin: 1rem;
        border-radius: 15px;
    }
    
    .order-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .delivery-stats {
        grid-template-columns: 1fr;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
}

.logo {
    color: #007bff;
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cta-button:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background: white;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
}

.section p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #666;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #007bff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #007bff;
}

.contact-form button {
    background: #007bff;
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: 600;
}

.contact-form button:hover {
    background: #0056b3;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}