/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.header-info {
    flex: 1;
    display: flex;
    justify-content: center;
}

.stand-indicator {
    background: #f1f5f9;
    color: #475569;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Last Refresh Timestamp */
.last-refresh {
    font-size: 0.75rem;
    color: rgba(30, 41, 59, 0.6);
    font-weight: 400;
    padding: 0.5rem 0.75rem;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: all 0.2s ease;
    min-width: 60px;
    text-align: center;
}

.last-refresh:empty::after {
    content: "--:--";
    color: rgba(30, 41, 59, 0.4);
}

/* Tab Navigation */
.tab-navigation {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    color: #64748b;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.tab-btn:hover {
    color: #374151;
    background: #f8fafc;
}

.tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.requests-count {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 1.25rem;
    text-align: center;
}

.tab-btn:not(.active) .requests-count {
    background: #64748b;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-brand .logo {
    height: 100%;
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.header-brand h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-section .logo {
    height: 100%;
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-section h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Legacy logo styles for other uses */
.logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.product-card:active {
    transform: translateY(-2px);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f1f5f9;
    padding: 0.5rem;
}

.product-info {
    padding: 1.25rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    text-align: center;
}

/* Size Status Bubbles */
.size-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
    margin-top: 0.75rem;
    min-height: 32px;
    align-items: center;
}

.size-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 0.5rem;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: default;
    transition: all 0.2s ease;
}

/* Size bubble states */
.size-bubble.in-stock {
    background: #6b7280; /* Grey - in stock */
    color: white;
}

.size-bubble.out-of-stock {
    background: #ef4444; /* Red - out of stock */
    color: white;
}

.size-bubble.recently-restocked {
    background: #10b981; /* Green - recently restocked */
    color: white;
    animation: pulseGlow 2s infinite;
}

.no-sizes {
    color: #9ca3af;
    font-size: 0.75rem;
    font-style: italic;
}

@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% { 
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
    }
}

/* Review Modal Styles */
.review-items {
    max-height: 400px;
    overflow-y: auto;
    margin: 1rem 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.review-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    gap: 1rem;
}

.review-item:last-child {
    border-bottom: none;
}

.review-item-number {
    background: #3b82f6;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.review-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.review-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-item-details {
    flex: 1;
}

.review-item-details h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: #1e293b;
}

.review-item-size {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.review-item-size .size-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
}

.review-item-remove {
    flex-shrink: 0;
}

.btn-remove-item {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-remove-item:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
    transform: translateY(-1px);
}

.review-summary {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.summary-line:last-child {
    margin-bottom: 0;
    padding-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
    font-weight: 600;
}

.btn-send-final {
    background: #10b981 !important;
    border-color: #10b981 !important;
    font-weight: 600;
}

.btn-send-final:hover {
    background: #059669 !important;
    border-color: #059669 !important;
}



.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #059669;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.modal-body {
    padding: 1.5rem;
}

.product-preview {
    text-align: center;
    margin-bottom: 2rem;
}

.product-preview img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.product-preview h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.product-preview p {
    font-size: 1.125rem;
    font-weight: 700;
    color: #059669;
}

/* Size Options */
.size-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.75rem;
}

.size-helper-text {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.size-btn {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.size-btn:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1e40af;
}

.size-btn:active {
    transform: scale(0.95);
}

.size-btn.selected {
    background: #3b82f6;
    color: white;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.size-btn.size-out-of-stock {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
    cursor: not-allowed;
    opacity: 0.8;
}

.size-btn.size-out-of-stock:hover {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
    transform: none;
}

.size-btn.size-in-cart {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
    opacity: 0.7;
}

.size-btn.size-in-cart:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #64748b;
    transform: none;
}

.size-emoji {
    font-size: 1.2em;
    margin-right: 0.25rem;
}

.size-text {
    font-size: 0.9em;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
}

.btn-close:hover {
    background: #f1f5f9;
    color: #374151;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #059669;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: none;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1001;
}

.toast.show {
    display: flex;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.loading.show {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .main-content {
        padding: 1.5rem 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
    
    .modal-content {
        width: 95%;
    }
}

/* iPad Specific Optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .product-card {
        border-radius: 16px;
    }
    
    .product-image {
        height: 220px;
    }
    
    .size-options {
        gap: 1rem;
    }
    
    .size-btn {
        padding: 1.25rem;
        font-size: 1.125rem;
    }
}

/* Touch Optimizations */
@media (pointer: coarse) {
    .product-card {
        min-height: 280px;
    }
    
    .btn, .size-btn {
        min-height: 48px;
        min-width: 48px;
    }
    
    .btn-close {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Stand Setup Styles */
.stand-setup {
    text-align: center;
}

.stand-setup p {
    margin-bottom: 2rem;
    color: #64748b;
    line-height: 1.5;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background: white;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Color Selection */
.color-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.5rem;
}

.color-option {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.color-option.selected {
    border-color: #1f2937;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #1f2937;
}

.color-check {
    color: white;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.color-option.selected .color-check {
    opacity: 1;
}

.stand-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.stand-info p {
    color: #0c4a6e;
    font-size: 0.875rem;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.stand-info i {
    color: #0369a1;
    margin-top: 0.125rem;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Modal Backdrop for Stand Setup */
#standModal {
    backdrop-filter: blur(8px);
}

#standModal .modal-content {
    max-width: 600px;
}

/* Status Notifications */
.status-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
    min-width: 300px;
}

.status-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
}

.notification-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.notification-text {
    flex: 1;
}

.notification-text h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.notification-text p {
    color: #64748b;
    line-height: 1.5;
}

.notification-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: #f1f5f9;
    color: #64748b;
}

/* Responsive notifications */
@media (max-width: 768px) {
    .status-notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
        min-width: auto;
    }
}

/* Requests Tab Styles */
.requests-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.requests-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.requests-list {
    display: grid;
    gap: 1rem;
}

.request-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #e2e8f0;
    transition: all 0.2s ease;
}

.request-item.status-pending {
    border-left-color: #fbbf24;
}

.request-item.status-fulfilled {
    border-left-color: #10b981;
}

.request-item.status-out-of-stock {
    border-left-color: #f97316;
    border-left-width: 6px;
    background: 
        linear-gradient(145deg, rgba(249, 115, 22, 0.25) 0%, rgba(255, 237, 213, 0.4) 50%, rgba(255, 255, 255, 0.9) 100%);
    box-shadow: 
        0 4px 16px rgba(249, 115, 22, 0.25), 
        0 0 0 1px rgba(249, 115, 22, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
}

.request-item.status-out-of-stock::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(249, 115, 22, 0.15) 0%, 
        rgba(249, 115, 22, 0.05) 50%, 
        rgba(249, 115, 22, 0.15) 100%
    );
    border-radius: 12px;
    pointer-events: none;
}

.request-item.status-pending-restock {
    border-left-color: #3b82f6;
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.request-product {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.request-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.request-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.request-details p {
    color: #64748b;
    font-size: 0.875rem;
}

/* Updated .request-status is defined later with cancel button support */

.request-status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

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

.request-status-badge.fulfilled {
    background: #dcfce7;
    color: #166534;
}

.request-status-badge.out-of-stock {
    background: 
        linear-gradient(145deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border: 2px solid #f97316;
    box-shadow: 
        0 4px 12px rgba(249, 115, 22, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: outOfStockPulse 2s ease-in-out infinite;
}

@keyframes outOfStockPulse {
    0%, 100% { 
        box-shadow: 
            0 4px 12px rgba(249, 115, 22, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% { 
        box-shadow: 
            0 6px 20px rgba(249, 115, 22, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

/* Getting Low Size Buttons */
.size-btn.size-getting-low, .batch-size-btn.batch-size-getting-low {
    background: linear-gradient(145deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    color: #d97706;
    font-weight: 600;
    position: relative;
    animation: gettingLowGlow 3s ease-in-out infinite;
}

.size-btn.size-getting-low:hover, .batch-size-btn.batch-size-getting-low:hover {
    background: linear-gradient(145deg, #fde68a 0%, #fcd34d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.size-btn.size-getting-low .size-emoji, .batch-size-btn.batch-size-getting-low .size-emoji {
    animation: grimacePulse 2s ease-in-out infinite;
}

@keyframes gettingLowGlow {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    }
    50% { 
        box-shadow: 0 4px 16px rgba(245, 158, 11, 0.5);
    }
}

@keyframes grimacePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.request-status-badge.pending-restock {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #3b82f6;
}

.request-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Request Cancel Button */
.request-cancel-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.request-cancel-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.request-cancel-btn:active {
    transform: scale(0.95);
}

.request-status {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

/* Alert Modal Styles */
.alert-modal-overlay {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
}

.alert-modal-overlay.urgent-alert {
    background: rgba(239, 68, 68, 0.2);
    animation: urgentPulse 2s ease-in-out infinite;
}

.alert-modal-overlay.info-alert {
    background: rgba(59, 130, 246, 0.15);
}

@keyframes urgentPulse {
    0%, 100% { background: rgba(239, 68, 68, 0.2); }
    50% { background: rgba(239, 68, 68, 0.3); }
}

.alert-modal-content {
    max-width: 500px;
    width: 90%;
    margin: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: alertSlideIn 0.3s ease-out;
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.alert-modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.alert-priority-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.alert-priority-indicator.urgent {
    color: #ef4444;
}

.alert-priority-indicator.info {
    color: #3b82f6;
}

.alert-priority-indicator .priority-icon {
    font-size: 2rem;
    animation: bounce 1s ease-in-out infinite;
}

.urgent-alert .priority-icon {
    animation: urgentBounce 0.8s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes urgentBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.alert-priority-indicator .priority-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.alert-timestamp {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.alert-modal-body {
    padding: 0 2rem 1.5rem;
    text-align: center;
}

.alert-message {
    font-size: 1.375rem;
    line-height: 1.6;
    color: #1e293b;
    margin: 1.5rem 0;
    font-weight: 500;
}

.urgent-alert .alert-message {
    color: #dc2626;
    font-weight: 600;
}

.alert-sender {
    font-size: 0.875rem;
    color: #64748b;
    font-style: italic;
    margin-top: 1rem;
}

.alert-modal-actions {
    padding: 1.5rem 2rem 2rem;
    text-align: center;
}

.btn-acknowledge {
    font-size: 1.125rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.btn-acknowledge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.urgent-alert .btn-acknowledge {
    background: linear-gradient(145deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.urgent-alert .btn-acknowledge:hover {
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.info-alert .btn-acknowledge {
    background: linear-gradient(145deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.info-alert .btn-acknowledge:hover {
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Mobile alert optimizations */
@media (max-width: 768px) {
    .alert-modal-content {
        width: 95%;
        margin: 1rem auto;
    }
    
    .alert-modal-header,
    .alert-modal-body,
    .alert-modal-actions {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .alert-message {
        font-size: 1.25rem;
    }
    
    .btn-acknowledge {
        width: 100%;
        font-size: 1rem;
        padding: 1rem;
    }
}

/* Notification Bubble System */
.notification-bubbles {
    display: flex;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

.bubble {
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.375rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: bubbleAppear 0.3s ease-out;
}

@keyframes bubbleAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Grey Bubble - Pending orders */
.grey-bubble {
    background: linear-gradient(145deg, #6b7280 0%, #4b5563 100%);
    border: 1px solid #374151;
}

/* Green Bubble - Ready orders */
.green-bubble {
    background: linear-gradient(145deg, #10b981 0%, #059669 100%);
    border: 1px solid #047857;
    animation: greenPulse 2s ease-in-out infinite;
}

@keyframes greenPulse {
    0%, 100% { 
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% { 
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(16, 185, 129, 0.2);
    }
}

/* Red Bubble - Out of stock */
.red-bubble {
    background: linear-gradient(145deg, #ef4444 0%, #dc2626 100%);
    border: 1px solid #b91c1c;
    animation: redPulse 2s ease-in-out infinite;
}

@keyframes redPulse {
    0%, 100% { 
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% { 
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(239, 68, 68, 0.2);
    }
}

/* Bubble hover effects */
.bubble:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Responsive bubble sizing */
@media (max-width: 768px) {
    .notification-bubbles {
        gap: 0.2rem;
        margin-left: 0.25rem;
    }
    
    .bubble {
        min-width: 18px;
        height: 18px;
        font-size: 0.7rem;
        padding: 0 0.3rem;
    }
}

.request-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.request-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.request-meta-item i {
    width: 16px;
    color: #9ca3af;
}

/* Empty Requests State */
.requests-empty {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.requests-empty i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.requests-empty h3 {
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Responsive Design for Tabs */
@media (max-width: 768px) {
    .tab-navigation {
        padding: 0 1rem;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .requests-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .request-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .request-status {
        align-self: stretch;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .request-cancel-btn {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        margin-top: 0;
    }
    
    .request-meta {
        grid-template-columns: 1fr;
    }
}

/* Products Header */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.products-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

/* Batch Request Modal */
.batch-modal {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
}

.batch-instructions {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #0c4a6e;
}

.batch-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.batch-product-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.batch-product-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.batch-product-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.batch-product-info h4 {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.batch-product-info p {
    color: #64748b;
    font-size: 0.875rem;
}

.batch-size-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 0.5rem;
}

.batch-size-btn {
    padding: 0.5rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.batch-size-btn:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1e40af;
}

.batch-size-btn.selected {
    border-color: #3b82f6;
    background: #3b82f6;
    color: white;
}

.batch-size-btn.batch-size-out-of-stock {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
    cursor: not-allowed;
    opacity: 0.8;
}

.batch-size-btn.batch-size-out-of-stock:hover {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
    transform: none;
}

/* Batch Summary */
.batch-summary {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.batch-summary h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.batch-items {
    display: grid;
    gap: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
}

.batch-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.batch-item-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.batch-item-image {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    object-fit: cover;
}

.batch-item-info {
    font-size: 0.875rem;
}

/* Section Header Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.section-header h2 {
    color: #1f2937;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.section-header p {
    color: #6b7280;
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
}

.section-header .btn {
    flex-shrink: 0;
    margin-left: 1rem;
}

/* Enhanced Navigation Tabs for Touch Interface */
.nav-tabs {
    display: flex;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
    margin: 0;
    gap: 0;
}

.nav-tab {
    flex: 1;
    padding: 1.25rem 1rem;
    border: none;
    background: #f9fafb;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    border-bottom: 3px solid transparent;
    min-height: 80px;
    position: relative;
}

.nav-tab:hover {
    background: #f3f4f6;
    color: #374151;
}

.nav-tab.active {
    background: white;
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.nav-tab i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.nav-tab .badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.nav-tab.active .badge {
    background: #3b82f6;
}

/* Size Selection Modal Enhancements */
.product-modal-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.modal-product-image {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.modal-product-details {
    flex: 1;
}

.modal-product-details h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #374151;
}

/* Compact modal for better mobile experience */
#sizeModal .modal-content {
    max-height: 85vh;
    max-width: 400px;
}

#sizeModal .modal-body {
    padding: 0 1.5rem 1.5rem;
}

.batch-item-name {
    font-weight: 600;
    color: #1e293b;
}

.batch-item-size {
    color: #64748b;
}

.batch-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.batch-item-remove:hover {
    background: #fee2e2;
}

/* Batch Actions */
.batch-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.batch-empty {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 2rem;
}

/* Responsive Batch Modal */
@media (max-width: 768px) {
    .batch-modal {
        width: 98%;
        margin: 1rem;
    }
    
    .batch-products {
        grid-template-columns: 1fr;
    }
    
    .products-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .batch-actions {
        flex-direction: column;
    }
}

/* Inline Restock Alert on Product Cards */
.inline-restock-alert {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    margin: 0.75rem 0 0.5rem 0;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 12px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.inline-restock-alert.show {
    opacity: 1;
    transform: translateY(0);
    animation: restockPulse 2s ease-in-out infinite;
}

@keyframes restockPulse {
    0%, 100% { 
        box-shadow: 
            0 4px 12px rgba(16, 185, 129, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% { 
        box-shadow: 
            0 6px 16px rgba(16, 185, 129, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

.restock-alert-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.restock-icon {
    font-size: 1.5rem;
    animation: bounceIcon 1.5s ease-in-out infinite;
}

@keyframes bounceIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.restock-text {
    flex: 1;
}

.restock-sizes {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.restock-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 600;
}

.restock-timer i {
    font-size: 0.7rem;
}

/* Mobile responsive inline alerts */
@media (max-width: 768px) {
    .inline-restock-alert {
        margin: 0.5rem 0;
        padding: 0.75rem 0.875rem;
    }
    
    .restock-alert-content {
        gap: 0.5rem;
    }
    
    .restock-icon {
        font-size: 1.25rem;
    }
    
    .restock-sizes {
        font-size: 0.8rem;
    }
    
    .restock-timer {
        font-size: 0.7rem;
    }
}

/* iPad specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .inline-restock-alert {
        margin: 1rem 0 0.75rem 0;
        padding: 1rem 1.25rem;
    }
    
    .restock-sizes {
        font-size: 0.9rem;
    }
    
    .restock-timer {
        font-size: 0.8rem;
    }
}

/* High contrast support for inline alerts */
@media (prefers-contrast: high) {
    .inline-restock-alert {
        border: 2px solid white;
        background: #059669;
    }
}

/* Reduced motion support for inline alerts */
@media (prefers-reduced-motion: reduce) {
    .inline-restock-alert {
        animation: none;
        transition: opacity 0.3s ease;
    }
    
    .inline-restock-alert.show {
        animation: none;
    }
    
    .restock-icon {
        animation: none;
    }
    
    @keyframes restockPulse {
        /* Disable pulse for reduced motion */
    }
}

/* Cart System Styles */
.cart-status {
    text-align: center;
    margin-top: 0.5rem;
}

.cart-help-text {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

.btn-send-order {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulseOrder 2s ease-in-out infinite;
}

.btn-send-order:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

@keyframes pulseOrder {
    0%, 100% { 
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }
    50% { 
        box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
    }
}

.product-actions {
    margin-top: 1rem;
    text-align: center;
}

.btn-add-to-cart {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
}

.btn-add-to-cart:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Cart Items Display */
.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.cart-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.cart-item-details p {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    padding: 0.5rem;
    border-radius: 8px;
}

.btn-qty {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-qty:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.btn-qty:active {
    transform: scale(0.95);
}

.qty-display {
    font-weight: 600;
    color: #1e293b;
    min-width: 24px;
    text-align: center;
}

.cart-item-actions {
    flex-shrink: 0;
}

.btn-remove {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.empty-cart {
    text-align: center;
    padding: 3rem 2rem;
    color: #64748b;
}

.empty-cart i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.empty-cart h3 {
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Cart Actions */
.cart-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Mobile responsiveness for cart */
@media (max-width: 768px) {
    .btn-send-order {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .cart-item-quantity {
        align-self: center;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .btn-add-to-cart {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
}

