/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    padding: 3rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 25%, #475569 50%, #64748b 75%, #94a3b8 100%);
    color: white;
    margin-bottom: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(30, 41, 59, 0.4);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.logo-icon {
    font-size: 4rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3); }
    100% { box-shadow: 0 12px 48px rgba(59, 130, 246, 0.6); }
}

.logo-text {
    text-align: left;
}

.brand-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    line-height: 0.9;
}

.brand-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.header-tagline {
    text-align: center;
}

.header-tagline p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 500;
}

    color: #f1f5f9;
}

.header-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.btn-admin-link {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.btn-admin-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Admin Modal Styles */
.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10000;
}

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

.modal-header h2 {
    margin: 0;
    color: #1f2937;
}

.close {
    color: #6b7280;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #374151;
}

.modal-body {
    padding: 1.5rem;
}

.admin-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-link {
    background: #667eea;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.admin-link:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.logout-btn {
    background: #ef4444;
}

.logout-btn:hover {
    background: #dc2626;
}

/* Mobile responsive header */
@media (max-width: 768px) {
    .logo-section {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .brand-title {
    font-size: 2.5rem;
    }
    
    .brand-subtitle {
        font-size: 1rem;
    }
    
    .header-tagline p {
    font-size: 1.1rem;
    }
    
    header {
        padding: 2rem 0;
    }
}

/* Upload Help Styles */
.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.btn-help {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-help:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.help-icon {
    font-size: 1rem;
}

/* CSV Help Modal Styles */
.help-section {
    max-width: 600px;
    margin: 0 auto;
}

.help-intro {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 500;
}

.help-link {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.help-link p {
    margin-bottom: 1rem;
    color: #374151;
    font-weight: 600;
}

.ebay-link {
    display: inline-block;
    background: linear-gradient(135deg, #0064d2, #0052a3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 100, 210, 0.3);
}

.ebay-link:hover {
    background: linear-gradient(135deg, #0052a3, #003d7a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 100, 210, 0.4);
}

.report-instructions {
    margin-bottom: 2rem;
}

.report-type {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.report-type h3 {
    color: #1f2937;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.steps-list li {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
    position: relative;
    padding-left: 2.5rem;
}

.steps-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.report-type:first-of-type .steps-list {
    counter-reset: step-counter;
}

.help-tips {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #0ea5e9;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.help-tips h4 {
    color: #0369a1;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    color: #0c4a6e;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.tips-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0ea5e9;
    font-weight: bold;
}

.help-footer {
    text-align: center;
}

/* Mobile responsive help modal */
@media (max-width: 768px) {
    .step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .btn-help {
        align-self: flex-start;
    }
    
    .help-section {
        padding: 0 1rem;
    }
    
    .steps-list li {
        padding-left: 2rem;
        font-size: 0.875rem;
    }
}

/* Upload Progress Bar Styles */
.upload-progress {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.progress-percentage {
    font-size: 0.875rem;
    font-weight: 600;
    color: #3b82f6;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, .2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, .2) 50%,
        rgba(255, 255, 255, .2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 20px 20px;
    animation: progress-stripes 1s linear infinite;
}

@keyframes progress-stripes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 0;
    }
}

/* Progress states */
.progress-processing .progress-fill {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.progress-complete .progress-fill {
    background: linear-gradient(90deg, #10b981, #059669);
}

.progress-error .progress-fill {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Upload section */
.upload-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.upload-area {
    border: 3px dashed #ddd;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fafafa;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.upload-area.dragover {
    border-color: #667eea;
    background: #e8f0ff;
    transform: scale(1.02);
}

.upload-content {
    pointer-events: none;
}

.upload-icon {
    width: 64px;
    height: 64px;
    color: #667eea;
    margin-bottom: 20px;
}

.upload-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.upload-content p {
    color: #666;
    margin-bottom: 5px;
}

.file-info {
    font-size: 0.9rem;
    color: #888;
}

/* Sample section */
.sample-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.sample-section h3 {
    margin-bottom: 15px;
    color: #333;
}

/* Progress bar */
.upload-progress {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

#progressText {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Dashboard */
.dashboard {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-height: 500px;
    overflow: visible;
    width: 100%;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.dashboard-header h2 {
    color: #1f2937;
    font-size: 1.75rem;
    margin: 0;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card.clickable-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-header h3 {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
}

.card-icon {
    font-size: 1.5rem;
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.chart-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e0e0e0;
}

.chart-container h3 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.chart-container canvas {
    max-height: 300px;
}

/* Analysis Section */
.analysis-section {
    margin-bottom: 40px;
}

.analysis-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 25px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-panel {
    display: none;
}

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

/* Analysis Grid */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.analysis-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.analysis-card h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
}

.item-list {
    max-height: 300px;
    overflow-y: auto;
}

.item-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.item-title {
    font-weight: 600;
    color: #333;
    flex: 1;
    margin-right: 10px;
}

.item-price {
    font-weight: 700;
    color: #667eea;
}

.item-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-overpriced {
    background: #ffebee;
    color: #c62828;
}

.status-well-priced {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-underpriced {
    background: #fff3e0;
    color: #f57c00;
}

/* Performance Metrics */
.performance-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.metric {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.metric h4 {
    margin-bottom: 15px;
    color: #333;
}

/* Recommendations */
.recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.recommendation-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.recommendation-card h4 {
    margin-bottom: 15px;
    color: #333;
}

.recommendation-item {
    background: white;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #667eea;
}

.recommendation-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.recommendation-text {
    color: #666;
    font-size: 0.9rem;
}

/* Export Section */
.export-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.export-section h3 {
    margin-bottom: 20px;
    color: #333;
}

.export-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

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

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .upload-section,
    .dashboard {
        padding: 20px;
    }
    
    .upload-area {
        padding: 40px 15px;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .performance-metrics {
        grid-template-columns: 1fr;
    }
    
    .recommendations {
        grid-template-columns: 1fr;
    }
    
    .export-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .analysis-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
    }
}

/* Loading animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes pulse-highlight {
    0%, 100% { 
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 40px rgba(102, 126, 234, 0.8);
        transform: scale(1.05);
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Scrollbar styling */
.item-list::-webkit-scrollbar {
    width: 6px;
}

.item-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.item-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.item-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Collection Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 1.5rem;
}

.collection-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.stat-card h3 {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.collection-analysis {
    margin-bottom: 2rem;
}

.collection-analysis h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.price-range-item {
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.timeline-month {
    font-weight: 600;
    color: #1f2937;
}

.timeline-stats {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Clickable Collection Styles */
.clickable-collection {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    position: relative;
}

.clickable-collection:hover {
    background: #f0f9ff;
    border-color: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.click-hint {
    font-size: 0.75rem;
    color: #6b7280;
    font-style: italic;
    margin-top: 0.25rem;
}

.no-data {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 2rem;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95vw;
        max-height: 95vh;
    }
    
    .collection-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Landing Page Styles */
.landing-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-section h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.welcome-section p {
    color: white;
    font-size: 1.125rem;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Unified Upload Section */
.unified-upload-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.upload-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

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

.step-content {
    flex: 1;
}

.step-content h3 {
    color: #1f2937;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.file-status {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    display: none;
}

.file-status.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    display: block;
}

.file-status.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    display: block;
}

.file-status.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
    display: block;
}

.file-status.warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    display: block;
}

.upload-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.btn-icon {
    margin-right: 0.5rem;
}

.sample-data-section {
    margin-top: 1rem;
}

.sample-data-section p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

/* Executive Dashboard */
.executive-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: transparent;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.dashboard-header h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.dashboard-header p {
    color: white;
    font-size: 1.125rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.executive-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.metric-card.clickable-metric {
    cursor: pointer;
}

.metric-card.clickable-metric:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px -1px rgba(0, 0, 0, 0.2);
}

.metric-card.primary {
    border-left: 4px solid #3b82f6;
}

.metric-card.success {
    border-left: 4px solid #10b981;
}

.metric-card.info {
    border-left: 4px solid #06b6d4;
}

.metric-card.warning {
    border-left: 4px solid #f59e0b;
}

.metric-icon {
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
}

.metric-content h3 {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.metric-value {
    color: #1f2937;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.metric-subtitle {
    color: #9ca3af;
    font-size: 0.75rem;
}

.performance-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.overview-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.overview-section h3 {
    color: #1f2937;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.performance-grid {
    display: grid;
    gap: 0.75rem;
}

.performance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.performance-item .label {
    color: #6b7280;
    font-size: 0.875rem;
}

.performance-item .value {
    color: #1f2937;
    font-weight: 600;
}

.dashboard-navigation {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    text-align: center;
}

.dashboard-navigation h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: white;
    border: 2px solid #e5e7eb;
    color: #374151;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #f0f9ff;
}

/* Executive Dashboard Tabs */
.exec-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: white;
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.exec-tab-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    background: transparent;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.exec-tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.exec-tab-content {
    display: none;
}

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

/* Annual Business Review Styles */
.annual-review-header {
    text-align: center;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.annual-review-header h3 {
    color: #1f2937;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* eBay Store Snapshot */
.store-snapshot-container {
    margin-bottom: 2rem;
}

.store-snapshot-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid #667eea;
}

.store-snapshot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.store-snapshot-header > div:first-child {
    flex: 1;
}

.store-snapshot-header h4 {
    color: #1f2937;
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}

.unsold-upload-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.unsold-upload-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.unsold-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.unsold-upload-btn .upload-icon {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .store-snapshot-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .unsold-upload-section {
        width: 100%;
        align-items: stretch;
    }
    
    .unsold-upload-btn {
        justify-content: center;
    }
}

.store-snapshot-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.store-metric {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.store-metric:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.store-metric-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.store-metric-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.store-metric-label {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.store-metric-sublabel {
    font-size: 0.75rem;
    color: #6b7280;
}

.store-metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .store-snapshot-metrics {
        grid-template-columns: 1fr;
    }
}

/* Current Snapshots */
.snapshots-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.snapshot-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    color: white;
}

.snapshot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.snapshot-header h4 {
    color: white;
    font-size: 1.125rem;
    margin: 0;
}

.snapshot-period {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.snapshot-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.snapshot-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.snapshot-metric .metric-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.snapshot-metric .metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

@media (max-width: 768px) {
    .snapshots-container {
        grid-template-columns: 1fr;
    }
    
    .snapshot-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Current Month Snapshot (Enhanced) */
.current-month-snapshot {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 2px solid #667eea;
}

.month-snapshot-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.month-snapshot-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.month-snapshot-subtitle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.month-separator {
    color: #d1d5db;
}

.month-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.month-metric-card {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.month-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.month-metric-card .metric-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.month-metric-card .metric-value-large {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.month-metric-card .metric-subtext {
    font-size: 0.75rem;
    color: #9ca3af;
    font-style: italic;
}

@media (max-width: 1024px) {
    .month-snapshot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .month-snapshot-grid {
        grid-template-columns: 1fr;
    }
}

.monthly-analysis-section,
.weekly-analysis-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Month Grid */
.months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.month-box {
    padding: 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.month-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.month-box .month-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.month-box .month-sales {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.month-box .month-items {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Weekly Chart Container */
.weekly-chart-container {
    position: relative;
    height: 300px;
    padding: 1rem;
}

/* Detail Views */
.detail-header {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.detail-header h3 {
    color: #1f2937;
    font-size: 1.5rem;
    flex: 1;
}

.top-items-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.top-items-table-wrapper {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

/* Secret Analysis Styles */
.secret-analysis-header {
    text-align: center;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.secret-analysis-header h3 {
    color: #1f2937;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.secret-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Days of Week Grid */
.days-of-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
}

.day-box {
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.day-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.day-box .day-name {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.day-box .day-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.day-box .day-avg {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Keywords Container */
.keywords-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.keyword-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: default;
}

.keyword-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.keyword-box .keyword-text {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.keyword-box .keyword-revenue {
    font-size: 1.25rem;
    font-weight: 700;
}

.keyword-box .keyword-count {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* State Analysis */
.state-map-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.usa-map-wrapper {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    position: relative;
}

#usaMap {
    max-width: 100%;
    height: auto;
}

#usaMap path {
    fill: #e5e7eb;
    stroke: #ffffff;
    stroke-width: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

#usaMap path:hover {
    stroke: #667eea;
    stroke-width: 2;
    filter: brightness(0.95);
}

#usaMap text {
    font-size: 10px;
    fill: #1f2937;
    pointer-events: none;
    font-weight: 600;
}

.map-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.legend-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
}

.legend-scale {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
}

/* State Map Tooltip */
.state-map-tooltip {
    position: absolute;
    background: white;
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    z-index: 10000;
    min-width: 180px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.state-table {
    width: 100%;
    border-collapse: collapse;
}

.state-table th,
.state-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.state-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.state-table tbody tr:hover {
    background: #f9fafb;
}

.state-rankings {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.state-rank-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.state-rank-item .state-name {
    font-weight: 600;
    color: #1f2937;
}

.state-rank-item .state-revenue {
    font-weight: 700;
    color: #059669;
}

@media (max-width: 1024px) {
    .days-of-week-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .state-map-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .days-of-week-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Key Insights Section */
.insights-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.insights-section h4 {
    color: white !important;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.insight-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.insight-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.insight-card .insight-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.insight-card .insight-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.insight-card .insight-text {
    font-size: 1.125rem;
    line-height: 1.6;
    color: white;
}

.insight-card .insight-recommendation {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
}

/* Customer Retention Dashboard Styles */
.retention-dashboard-section {
    border: 3px solid #7c3aed !important;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%) !important;
}

.business-impact-section {
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.business-scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.scenario-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.scenario-card.current-scenario {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.scenario-card.danger-scenario {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.scenario-card.reduced-scenario {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.scenario-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.scenario-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.scenario-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.scenario-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.scenario-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scenario-value {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #22c55e;
}

.scenario-value.danger {
    color: #ef4444;
}

.scenario-value.warning {
    color: #f59e0b;
}

.scenario-breakdown {
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 8px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.breakdown-item span:first-child {
    color: #6b7280;
    font-weight: 500;
}

.breakdown-item span:last-child {
    color: #1f2937;
    font-weight: 700;
}

.breakdown-item.danger-text span {
    color: #ef4444 !important;
}

.retention-value-insight {
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.6;
}

/* CLV Metrics */
.clv-metrics-section {
    margin-bottom: 2rem;
}

.clv-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.clv-metric-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.clv-metric-card.highlight {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border-color: #7c3aed;
}

.clv-metric-card.projected {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
}

.clv-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.clv-metric-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.clv-metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #7c3aed;
    margin-bottom: 0.5rem;
}

.clv-metric-subtext {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Retention Rates */
.retention-rates-section {
    margin-bottom: 2rem;
}

.retention-rates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.retention-rate-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.retention-rate-card:hover {
    border-color: #7c3aed;
    transform: translateY(-2px);
}

.retention-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.retention-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.retention-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #7c3aed;
    margin-bottom: 0.5rem;
}

.retention-subtext {
    font-size: 0.75rem;
    color: #9ca3af;
}

.retention-chart-wrapper {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    height: 300px;
}

/* Responsive Design for Retention Dashboard */
@media (max-width: 1024px) {
    .business-scenarios-grid {
        grid-template-columns: 1fr;
    }
    
    .clv-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .retention-rates-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .clv-metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* Repeat Customer Analysis Styles */
.repeat-customer-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.repeat-metric-card {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.repeat-metric-card.highlight-card {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border-color: #a78bfa;
}

.repeat-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.repeat-metric-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.repeat-metric-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.repeat-metric-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.repeat-metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.repeat-metric-subtext {
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
}

/* Order Value Comparison */
.repeat-comparison-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    border: 2px solid #fbbf24;
}

.order-value-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1rem;
}

.value-comparison-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comparison-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.comparison-sublabel {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.comparison-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.comparison-value.repeat {
    color: #7c3aed;
}

.comparison-value.single {
    color: #6b7280;
}

.comparison-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    display: inline-block;
    font-weight: 600;
}

.repeat-badge {
    background: #ede9fe;
    color: #7c3aed;
}

.single-badge {
    background: #f3f4f6;
    color: #6b7280;
}

.value-comparison-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-badge {
    background: #f59e0b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.comparison-insight {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* Time Between Orders */
.repeat-timing-section {
    margin-bottom: 2rem;
}

.timing-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.timing-metric-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.timing-metric-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.timing-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.timing-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.timing-value {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.25rem;
}

.timing-subtext {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Loyalty Distribution */
.repeat-distribution-section {
    margin-bottom: 2rem;
}

.loyalty-chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    height: 300px;
}

/* Top Repeat Customers Table */
.top-repeat-customers-section {
    margin-bottom: 2rem;
}

.top-repeat-table-wrapper {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.repeat-customers-table {
    width: 100%;
    border-collapse: collapse;
}

.repeat-customers-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.repeat-customers-table th {
    padding: 1rem;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.repeat-customers-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s ease;
}

.repeat-customers-table tbody tr:hover {
    background: #f9fafb;
}

.repeat-customers-table td {
    padding: 1rem;
    font-size: 0.875rem;
    color: #1f2937;
}

.repeat-customers-table tbody tr:last-child {
    border-bottom: none;
}

.thank-you-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.2);
}

.thank-you-btn:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(124, 58, 237, 0.3);
}

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

.thank-you-icon {
    font-size: 0.875rem;
}

/* Repeat Customer Insights Grid */
.repeat-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.repeat-insight-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    border-radius: 8px;
    color: white;
}

.repeat-insight-card .insight-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.repeat-insight-card .insight-text {
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .repeat-customer-overview {
        grid-template-columns: 1fr;
    }
    
    .order-value-comparison {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .value-comparison-divider {
        display: none;
    }
    
    .timing-metrics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .repeat-metric-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Collection Bubbles */
.collections-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 250px) !important;
    gap: 1.5rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.collection-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    width: 250px;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.collection-bubble.has-purchase-data::after {
    content: '💼';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    background: rgba(251, 191, 36, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Top 1/3 - Green */
.collection-bubble-top {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Middle 1/3 - Yellow */
.collection-bubble-middle {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Bottom 1/3 - Red */
.collection-bubble-bottom {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.collection-bubble:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.collection-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 16px;
}

.collection-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.collection-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.collection-metric {
    text-align: center;
}

.collection-metric-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.collection-metric-value {
    font-size: 1.125rem;
    font-weight: 600;
}

.collection-days {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Top 10 List */
.top-10-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

.top-10-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    transition: all 0.2s ease;
}

.top-10-item:hover {
    background: #e0f2fe;
    transform: translateX(2px);
}

.top-10-rank {
    font-weight: 600;
    color: #3b82f6;
    margin-right: 1rem;
    min-width: 2rem;
}

.top-10-name {
    flex: 1;
    font-weight: 500;
    color: #1f2937;
}

.top-10-price {
    font-weight: 600;
    color: #059669;
    font-size: 1.125rem;
}

/* Collection Sales Chart */
.chart-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

/* Collection Details View */
.collection-details {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-top: 2rem;
}

.collection-details-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.collection-details-header h2 {
    color: #1f2937;
    margin: 0;
}

.collection-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.collection-metric-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.collection-metric-card h3 {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.collection-metric-card .metric-value {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
}

.collection-metric-card small {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.profit-card {
    background: #dcfce7;
    border: 2px solid #10b981;
}

.profit-card.negative {
    background: #fee2e2;
    border: 2px solid #ef4444;
}

.profit-card .metric-value {
    color: #065f46;
}

.profit-card.negative .metric-value {
    color: #991b1b;
}

.chart-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.chart-section h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.sales-list-section {
    margin-bottom: 2rem;
}

.sales-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.sales-list-header h3 {
    color: #1f2937;
    margin: 0;
}

.sort-controls {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.sales-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
}

.sales-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s;
}

.sales-item:hover {
    background: #f8fafc;
}

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

.sales-item-title {
    flex: 1;
    font-weight: 500;
    color: #1f2937;
}

.sales-item-price {
    font-weight: 600;
    color: #059669;
    font-size: 1.125rem;
}

.sales-item-date {
    color: #6b7280;
    font-size: 0.875rem;
    margin-left: 1rem;
}

.price-range-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.price-range-section h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.price-range-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.price-range-item {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.price-range-label {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.price-range-value {
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .collections-grid {
        grid-template-columns: repeat(3, 250px);
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .collections-grid {
        grid-template-columns: repeat(2, 250px);
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .collections-grid {
        grid-template-columns: 1fr;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .landing-page {
        padding: 1rem;
    }
    
    .upload-step {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-number {
        align-self: flex-start;
    }
    
    .executive-metrics {
        grid-template-columns: 1fr;
    }
    
    .performance-overview {
        grid-template-columns: 1fr;
    }
    
    .nav-buttons {
        flex-direction: column;
    }
    
    .btn-outline {
        justify-content: center;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    .collection-metrics {
        grid-template-columns: 1fr;
    }
}

/* ========== COLLECTION MANAGEMENT STYLES ========== */

.management-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.form-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-section h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.collection-form .form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

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

.form-group small {
    display: block;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.collections-list-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.collections-list-section h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.saved-collections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.collection-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    background: #f9fafb;
    transition: all 0.2s;
}

.collection-item:hover {
    background: #f3f4f6;
    border-color: #3b82f6;
}

.collection-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.collection-item-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.125rem;
}

.collection-item-sku {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
}

.collection-item-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0.75rem;
}

.collection-detail {
    display: flex;
    flex-direction: column;
}

.collection-detail-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
}

.collection-detail-value {
    font-weight: 600;
    color: #1f2937;
}

.collection-item-notes {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #6b7280;
}

.collection-item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.btn-small-action {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-small-action:hover {
    background: #f3f4f6;
}

.btn-small-action.delete {
    color: #ef4444;
    border-color: #ef4444;
}

.btn-small-action.delete:hover {
    background: #fef2f2;
}

/* ========== BUSINESS SETTINGS STYLES ========== */

.settings-container {
    max-width: 800px;
    margin: 2rem auto;
}

.settings-intro {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.settings-intro p {
    color: #1e40af;
    margin: 0;
}

.business-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.business-form .form-section {
    box-shadow: none;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.business-form .form-section:last-child {
    border-bottom: none;
}

.business-form .form-section h3 {
    margin-top: 0;
}

.current-settings {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.current-settings h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.setting-item {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.setting-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.setting-value {
    display: block;
    font-weight: 600;
    color: #1f2937;
    font-size: 1.125rem;
}

/* Responsive styles for management sections */
@media (max-width: 1024px) {
    .management-container {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .collection-item-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== AUTHENTICATION STYLES ========== */

.auth-screen {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    max-width: 480px;
    width: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 3rem;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.auth-logo h1 {
    color: #1f2937;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-logo p {
    color: #6b7280;
    font-size: 0.875rem;
}

.auth-form-wrapper h2 {
    color: #1f2937;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    color: #6b7280;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form .form-group label {
    display: block;
    color: #374151;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.auth-form .form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

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

.auth-form .form-group small {
    display: block;
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
    width: auto;
}

.forgot-password {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.forgot-password:hover {
    color: #2563eb;
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.auth-divider span {
    padding: 0 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.auth-features {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #374151;
    font-size: 0.875rem;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.terms-link {
    color: #3b82f6;
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Auth Screen Responsive */
@media (max-width: 640px) {
    .auth-container {
        padding: 2rem 1.5rem;
    }
    
    .auth-logo h1 {
        font-size: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========== QUICK COLLECTION ENTRY STYLES ========== */

.quick-collection-entry {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.quick-entry-header {
    margin-bottom: 1.5rem;
}

.quick-entry-header h3 {
    color: #78350f;
    margin-bottom: 0.5rem;
}

.quick-collection-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.quick-collection-form .form-group {
    margin-bottom: 0;
}

.quick-collection-form .form-group label {
    display: block;
    color: #78350f;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.quick-collection-form .form-group input,
.quick-collection-form .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #fbbf24;
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
}

.quick-collection-form .form-group input:focus,
.quick-collection-form .form-group textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.quick-collection-form .form-group input[readonly] {
    background: #fef3c7;
    color: #78350f;
    font-weight: 500;
}

.quick-collection-form .form-group small {
    display: block;
    color: #92400e;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .quick-collection-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* ========== PROFITABILITY SECTION STYLES ========== */

.profitability-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border: 2px solid #bae6fd;
}

.profitability-section h3 {
    margin-bottom: 1.5rem;
}

.card.profit-metric {
    border: 2px solid #e5e7eb;
}

/* ========== SALES TABLE STYLES ========== */

.sales-table-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.sales-table-header {
    margin-bottom: 1.5rem;
}

.sales-table-header h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.sales-table-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.sort-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sort-buttons .btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.sales-table-wrapper {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    max-height: 600px;
    overflow-y: auto;
}

.sales-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.sales-table thead {
    background: #f9fafb;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sales-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.sales-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.15s;
}

.sales-table tbody tr:hover {
    background-color: #f9fafb;
}

.sales-table td {
    padding: 0.75rem 1rem;
    color: #1f2937;
}

.sales-table td:nth-child(2) {
    font-weight: 500;
}

.sales-table td:nth-child(4) {
    color: #059669;
    font-weight: 600;
}

/* eBay item link styles */
.sales-table td a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.sales-table td a:hover {
    color: #6d28d9;
    border-bottom-color: #6d28d9;
    text-decoration: none;
}

.table-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .sales-table-controls {
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
    }
    
    .sort-buttons {
        width: 100%;
        justify-content: stretch;
    }
    
    .sort-buttons button {
        flex: 1;
    }
}

/* ========== PLATFORM SELECTOR STYLES ========== */

.platform-selector {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.platform-selector-container {
    max-width: 1400px;
    width: 100%;
}

.platform-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.platform-header h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.platform-subtitle {
    color: white;
    font-size: 1.2rem;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.logout-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 1400px) {
    .platforms-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.platform-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.platform-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.platform-card-coming-soon {
    opacity: 0.7;
}

.platform-card-coming-soon:hover {
    transform: translateY(-4px);
}

.platform-card-header {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.platform-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

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

.platform-card h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.platform-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.platform-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.platform-badge.coming-soon {
    background: #fef3c7;
    color: #92400e;
}

.platform-description {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    text-align: center;
}

.platform-features {
    margin-bottom: 2rem;
}

.feature-item-small {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #374151;
    font-size: 0.95rem;
}

.feature-item-small.disabled {
    color: #9ca3af;
}

.check-icon {
    color: #10b981;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-item-small.disabled .check-icon {
    color: #d1d5db;
}

.platform-launch-btn {
    margin-top: auto;
}

.platform-footer {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
}

.user-icon {
    font-size: 1.5rem;
}

.platform-footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.footer-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Platform Selector */
@media (max-width: 1024px) {
    .platforms-grid {
        grid-template-columns: 1fr;
    }
    
    .platform-header h1 {
        font-size: 2rem;
    }
    
    .logout-btn {
        position: static;
        margin: 1rem auto 0;
    }
    
    .platform-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .platform-selector {
        padding: 1rem;
    }
    
    .platform-card {
        padding: 2rem 1.5rem;
    }
    
    .platform-header h1 {
        font-size: 1.75rem;
    }
    
    .platform-subtitle {
        font-size: 1rem;
    }
}

/* ========== IMAGE OPTIMIZER STYLES ========== */

.image-optimizer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.optimizer-step {
    animation: fadeIn 0.3s ease;
}

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

.optimizer-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.optimizer-back-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.optimizer-header h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.optimizer-header p {
    color: white;
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Upload Step */
.optimizer-upload-container {
    max-width: 900px;
    margin: 0 auto;
}

.optimizer-intro {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.optimizer-intro h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.optimizer-intro p {
    color: white;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.intro-note {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 1rem !important;
    font-weight: 500;
}

.optimizer-upload-zone {
    background: white;
    border: 3px dashed #d1d5db;
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.optimizer-upload-zone:hover {
    border-color: #667eea;
    background: #f9fafb;
}

.optimizer-upload-zone.dragover {
    border-color: #667eea;
    background: #eff6ff;
    transform: scale(1.02);
}

.upload-zone-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: #9ca3af;
}

.upload-zone-content h4 {
    color: #1f2937;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.upload-zone-content p {
    color: #6b7280;
    font-size: 1.1rem;
}

.upload-zone-link {
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
}

.upload-zone-link:hover {
    text-decoration: underline;
}

.upload-zone-hint {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-top: 1rem !important;
}

.optimizer-file-list {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    max-height: 400px;
    overflow-y: auto;
}

.optimizer-file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
}

.optimizer-file-item:hover {
    background: #f9fafb;
}

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

.file-item-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.file-item-info {
    flex: 1;
}

.file-item-name {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.file-item-size {
    font-size: 0.85rem;
    color: #6b7280;
}

.file-item-remove {
    padding: 0.5rem 1rem;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

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

.optimizer-upload-actions {
    text-align: center;
}

/* Options Step */
.optimizer-options-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.optimizer-option-card {
    background: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    overflow: hidden;
}

.optimizer-option-card:has(.option-checkbox:checked) {
    border-color: #667eea;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.option-checkbox {
    display: none;
}

.option-card-label {
    display: block;
    padding: 2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.option-card-label:hover {
    background: #f9fafb;
}

.option-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.option-icon {
    font-size: 2.5rem;
}

.option-card-header h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.option-card-label p {
    color: #6b7280;
    margin: 0;
    font-size: 0.95rem;
}

.option-settings {
    padding: 0 2rem 2rem;
    border-top: 2px solid #f3f4f6;
    margin-top: 1rem;
    padding-top: 1.5rem;
    background: #f9fafb;
}

.setting-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.setting-row label {
    color: #374151;
    font-weight: 500;
    font-size: 0.9rem;
    min-width: 120px;
}

.setting-input,
.setting-select {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.setting-input-small {
    width: 80px;
    padding: 0.5rem 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.95rem;
}

.setting-input:focus,
.setting-select:focus,
.setting-input-small:focus {
    outline: none;
    border-color: #667eea;
}

.setting-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
}

.setting-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    transition: all 0.2s;
}

.setting-slider::-webkit-slider-thumb:hover {
    background: #764ba2;
    transform: scale(1.1);
}

.setting-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

.setting-file {
    flex: 1;
}

.watermark-preview {
    width: 100%;
    max-width: 150px;
    max-height: 150px;
    margin-top: 1rem;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem;
    display: none;
}

.watermark-preview img {
    width: 100%;
    height: auto;
}

.watermark-preview.show {
    display: block;
}

.rename-preview {
    color: #667eea;
    font-weight: 600;
    font-family: monospace;
}

.optimizer-options-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Processing Step */
.optimizer-processing-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 4rem 3rem;
    text-align: center;
}

.processing-progress {
    margin: 0 auto;
}

.progress-bar-container {
    width: 100%;
    height: 20px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Preview Step */
.optimizer-preview-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
}

.preview-actions-top {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.optimizer-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.preview-item {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.preview-item:hover {
    border-color: #667eea;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.preview-item-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: #f9fafb;
    padding: 1rem;
}

.preview-item-info {
    padding: 1rem;
    background: white;
    border-top: 2px solid #f3f4f6;
}

.preview-item-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.preview-item-size {
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 0.75rem;
}

.preview-item-download {
    width: 100%;
    padding: 0.5rem 1rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.preview-item-download:hover {
    background: #764ba2;
    transform: scale(1.02);
}

/* Responsive Image Optimizer */
@media (max-width: 1024px) {
    .optimizer-options-container {
        grid-template-columns: 1fr;
    }
    
    .optimizer-back-btn {
        position: static;
        margin-bottom: 1rem;
        transform: none;
    }
    
    .optimizer-header {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .image-optimizer {
        padding: 1rem;
    }
    
    .optimizer-header h2 {
        font-size: 2rem;
    }
    
    .optimizer-upload-zone {
        padding: 2rem 1rem;
    }
    
    .upload-zone-icon {
        width: 60px;
        height: 60px;
    }
    
    .optimizer-options-actions {
        flex-direction: column;
    }
    
    .optimizer-preview-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-actions-top {
        flex-direction: column;
    }
    
    .setting-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========== NEW EXECUTIVE DASHBOARD LAYOUT ========== */

.results-bucket {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 6px solid;
}

.results-bucket:first-of-type {
    border-left-color: #10b981; /* Green for sales */
}

.results-bucket#futureResultsBucket {
    border-left-color: #8b5cf6; /* Purple for future */
}

.bucket-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

.bucket-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.bucket-header p {
    color: #6b7280;
    font-size: 1rem;
}

.bucket-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.bucket-metric-card {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 2px solid;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bucket-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: currentColor;
    opacity: 0.3;
}

.bucket-metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.bucket-metric-card.success {
    border-color: #10b981;
}

.bucket-metric-card.info {
    border-color: #3b82f6;
}

.bucket-metric-card.primary {
    border-color: #8b5cf6;
}

.bucket-metric-card.warning {
    border-color: #f59e0b;
}

.bucket-metric-card.future {
    border-color: #8b5cf6;
}

.metric-icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.metric-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: block;
}

.metric-value-xl {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-align: center;
    word-break: break-word;
}

.metric-subtext {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Revenue Projection Section */
.revenue-projection-section {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #6b7280;
    font-size: 0.95rem;
}

.revenue-chart-wrapper {
    height: 400px;
    position: relative;
}

/* New Dashboard Navigation */
.dashboard-navigation-new {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.nav-category {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.nav-category:hover {
    border-color: #667eea;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

.nav-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

.nav-category-icon {
    font-size: 2.5rem;
}

.nav-category-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.nav-category-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    width: 100%;
    text-align: left;
}

.btn-nav:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.nav-btn-icon {
    font-size: 1.5rem;
}

.nav-btn-text {
    flex: 1;
    margin-left: 1rem;
}

.nav-btn-arrow {
    font-size: 1.25rem;
    color: #667eea;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-nav:hover .nav-btn-arrow {
    opacity: 1;
}

.danger-zone {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid #fef2f2;
}

/* Responsive New Layout */
@media (max-width: 1024px) {
    .bucket-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .bucket-metrics {
        grid-template-columns: 1fr;
    }
    
    .results-bucket,
    .revenue-projection-section,
    .dashboard-navigation-new {
        padding: 1.5rem;
    }
    
    .metric-value-xl {
        font-size: 1.5rem;
    }
    
    .revenue-chart-wrapper {
        height: 300px;
    }
}

