/* ========================================
   SELLER DASHBOARD - MOBILE-FIRST DESIGN
   ======================================== */

:root {
    --primary: #ff5722;
    --primary-dark: #e64a19;
    --blue: #3b82f6;
    --green: #10b981;
    --orange: #f59e0b;
    --purple: #8b5cf6;
    --red: #ef4444;
    --dark: #1f2937;
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --sidebar-w: 260px;
    --header-h: 56px;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --transition: all 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-100);
    color: var(--dark);
    line-height: 1.5;
    overflow-x: hidden;
}

/* ===== MOBILE HEADER ===== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.menu-btn, .home-btn {
    width: 40px; height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius);
    font-size: 18px;
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.mobile-header h1 {
    font-size: 16px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.notif-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius);
    font-size: 18px;
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.notif-btn:hover {
    background: var(--gray-200);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--red);
    color: var(--white);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* ===== NOTIFICATION DROPDOWN ===== */
.notification-dropdown {
    position: fixed;
    top: var(--header-h);
    right: -350px;
    width: 350px;
    max-width: 90vw;
    height: calc(100vh - var(--header-h));
    background: var(--white);
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.notification-dropdown.active {
    right: 0;
}

.notification-header {
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-dropdown {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--gray-600);
    cursor: pointer;
    padding: 4px;
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.empty-notif {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-400);
}

.empty-notif i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.notif-item {
    padding: 12px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: background 0.2s;
}

.notif-item:hover {
    background: var(--gray-50);
}

.notif-item.unread {
    background: #fff3e0;
    border-left: 3px solid var(--primary);
}

.notif-item.unread:hover {
    background: #ffe0b2;
}

.notif-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.notif-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
}

.notif-time {
    font-size: 11px;
    color: var(--gray-500);
}

.notif-message {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.4;
}

.notification-footer {
    padding: 12px;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.view-all-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: var(--sidebar-w);
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    z-index: 200;
    transition: var(--transition);
}

.sidebar-brand {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-brand .logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
}

.sidebar-brand span {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: none;
    background: none;
    border-radius: var(--radius);
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 4px;
    position: relative;
}

.nav-item:hover {
    background: var(--gray-100);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.nav-item .badge {
    position: absolute;
    right: 12px;
    background: var(--red);
    color: var(--white);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--gray-200);
}

.add-product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    margin-bottom: 16px;
}

.add-product-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.seller-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.seller-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.seller-info {
    flex: 1;
    min-width: 0;
}

.seller-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seller-status {
    font-size: 12px;
    color: var(--green);
}

.seller-status.unverified {
    color: var(--gray-500);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: var(--sidebar-w);
    padding: 24px;
    min-height: 100vh;
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--dark);
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    position: relative;
}

.stat-card.clickable {
    cursor: pointer;
    transition: var(--transition);
}

.stat-card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.stat-arrow {
    position: absolute;
    right: 16px;
    color: var(--gray-400);
    font-size: 12px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.pending { background: #fef3c7; color: #d97706; }
.stat-icon.earnings { background: #d1fae5; color: #059669; }
.stat-icon.products { background: #dbeafe; color: #2563eb; }
.stat-icon.rating { background: #fce7f3; color: #db2777; }

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.stat-label {
    font-size: 13px;
    color: var(--gray-500);
}

/* ===== SALES STATS ===== */
.sales-stats {
    margin-bottom: 24px;
}

.sales-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 16px;
}

.sales-stat {
    text-align: center;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.sales-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 4px;
}

.sales-label {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

/* ===== ORDER LIST ===== */
.order-list, .low-stock-list, .transactions-list {
    padding: 12px;
}

.order-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-100);
}

.order-item:hover {
    background: var(--gray-50);
}

.order-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-item .order-info {
    flex: 1;
    min-width: 0;
}

.order-item .order-id {
    font-weight: 600;
    font-size: 14px;
}

.order-item .order-buyer {
    font-size: 13px;
    color: var(--gray-500);
}

.order-items-preview {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-preview-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: var(--gray-50);
    border-radius: 8px;
}

.order-preview-row img {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.order-preview-info {
    flex: 1;
    min-width: 0;
}

.order-preview-name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-preview-variant {
    display: inline-block;
    font-size: 11px;
    background: #fff3e0;
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
}

.order-preview-qty {
    font-size: 12px;
    color: var(--gray-500);
}

.order-preview-price {
    font-weight: 600;
    font-size: 13px;
    text-align: right;
}

.order-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px dashed var(--gray-200);
}

.order-quick-actions {
    display: flex;
    gap: 6px;
}

.btn-quick {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.2s ease;
}

.btn-quick.btn-accept {
    background: #e8f5e9;
    color: #4caf50;
}

.btn-quick.btn-accept:hover {
    background: #4caf50;
    color: white;
}

.btn-quick.btn-reject {
    background: #ffebee;
    color: #f44336;
}

.btn-quick.btn-reject:hover {
    background: #f44336;
    color: white;
}

.btn-quick.btn-dispatch {
    background: #e3f2fd;
    color: #2196f3;
}

.btn-quick.btn-dispatch:hover {
    background: #2196f3;
    color: white;
}

.btn-quick.btn-deliver {
    background: #e8f5e9;
    color: #4caf50;
}

.btn-quick.btn-deliver:hover {
    background: #4caf50;
    color: white;
}

.btn-quick.btn-view {
    background: var(--gray-100);
    color: var(--gray-600);
}

.btn-quick.btn-view:hover {
    background: var(--primary);
    color: white;
}

.order-item .order-meta {
    text-align: right;
}

.order-item .order-amount {
    font-weight: 600;
    color: var(--dark);
    font-size: 15px;
}

.order-item .order-time {
    font-size: 12px;
    color: var(--gray-400);
}

.order-more-items {
    font-size: 12px;
    color: var(--gray-500);
    text-align: center;
    padding: 4px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending { background: #fef3c7; color: #92400e; }
.status-badge.confirmed { background: #dbeafe; color: #1e40af; }
.status-badge.out_for_delivery { background: #e9d5ff; color: #6b21a8; }
.status-badge.delivered { background: #d1fae5; color: #065f46; }
.status-badge.cancelled { background: #fee2e2; color: #991b1b; }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== FILTERS BAR ===== */
.filters-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filters-bar select {
    padding: 10px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    font-size: 14px;
    cursor: pointer;
}

.search-box {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-primary:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-success {
    background: var(--green);
    color: var(--white);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.product-card .img {
    position: relative;
    height: 140px;
    background: var(--gray-100);
}

.product-card .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .stock-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.stock-badge.in-stock { background: #d1fae5; color: #065f46; }
.stock-badge.low-stock { background: #fef3c7; color: #92400e; }
.stock-badge.out-of-stock { background: #fee2e2; color: #991b1b; }

.product-card .body {
    padding: 12px;
}

.product-card h4 {
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .price {
    color: var(--primary);
    font-weight: 700;
}

.product-card .actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.product-card .actions button {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.product-card .actions button:hover {
    background: var(--gray-50);
}

/* ===== EARNINGS SECTION ===== */
.earnings-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.earnings-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.earnings-card .label {
    font-size: 13px;
    color: var(--gray-500);
}

.earnings-card .amount {
    font-size: 28px;
    font-weight: 700;
}

.earnings-card.available {
    background: linear-gradient(135deg, var(--green), #059669);
    color: var(--white);
}

.earnings-card.available .label {
    color: rgba(255,255,255,0.8);
}

.earnings-card.available .btn {
    margin-top: auto;
}

.earnings-card small {
    font-size: 11px;
    color: var(--gray-400);
}

/* ===== STORE FORM ===== */
.store-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

/* ===== VERIFICATION STATUS ===== */
.verification-status {
    padding: 20px;
}

.verification-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.verification-badge.verified {
    background: #d1fae5;
    color: #065f46;
}

.verification-badge.unverified {
    background: #fef3c7;
    color: #92400e;
}

.verification-badge i {
    font-size: 24px;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    font-size: 18px;
}

.close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 20px;
}

/* ===== DISPATCH MODAL ===== */
.dispatch-modal {
    max-width: 420px;
}

.dispatch-info {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 20px;
}

.dispatch-upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 20px;
}

.dispatch-upload-area:hover {
    border-color: var(--primary);
    background: #fff5f2;
}

.dispatch-upload-area.has-image {
    padding: 0;
    border-style: solid;
}

.upload-placeholder {
    color: var(--gray-500);
}

.upload-placeholder i {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}

.dispatch-preview {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: var(--radius);
}

.dispatch-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.dispatch-actions button {
    flex: 1;
}

/* ===== CONFIRMATION MODAL ===== */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.confirm-modal {
    background: var(--white);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        transform: translateY(20px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.confirm-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.confirm-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.confirm-modal-header i {
    color: var(--orange);
    font-size: 20px;
}

.confirm-modal-body {
    padding: 24px 20px;
}

.confirm-modal-body p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.6;
}

.confirm-modal-actions {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.confirm-modal-actions button {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-danger {
    background: var(--red);
    color: var(--white);
}

.btn-danger:hover {
    background: #d32f2f;
}

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.success { border-left: 4px solid var(--green); }
.toast.error { border-left: 4px solid var(--red); }
.toast.info { border-left: 4px solid var(--blue); }
.toast.warning { border-left: 4px solid var(--orange); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .earnings-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 80px 16px 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .toast-container {
        bottom: 16px;
        left: 16px;
        right: 16px;
    }
}

/* ===== SIDEBAR OVERLAY (Mobile) ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 150;
}

.sidebar-overlay.active {
    display: block;
}

/* ===== ORDER ACTIONS ===== */
.order-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.order-actions button {
    flex: 1;
}

/* ===== ORDER DETAILS ===== */
.order-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

.order-detail-row:last-child {
    border-bottom: none;
}

.order-items-list {
    margin: 16px 0;
}

.order-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: 8px;
}

.order-item-row img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
}

.order-item-details {
    flex: 1;
}

.order-item-details h5 {
    font-size: 14px;
    margin-bottom: 2px;
}

.order-item-details small {
    color: var(--gray-500);
}

.order-item-variant-badge {
    display: inline-block;
    background: #fff3e0;
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 6px;
}

/* ===== LOW STOCK ITEM ===== */
.low-stock-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
}

.low-stock-item img {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
}

.low-stock-item .info {
    flex: 1;
}

.low-stock-item .info h5 {
    font-size: 14px;
}

.low-stock-item .stock-warning {
    color: var(--orange);
    font-size: 13px;
    font-weight: 500;
}

.low-stock-item .btn-restock {
    padding: 6px 12px;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}
