/* Dashboard Styles */

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

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

.dashboard-header h1 {
    font-size: 2rem;
    color: #333;
    margin: 0;
}

.dashboard-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-section h2 {
    font-size: 1.5rem;
    color: #555;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #2196F3;
    padding-bottom: 10px;
}

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

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.stat-card:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.9;
}

.stat-content {
    flex: 1;
}

.stat-title {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
}

.stat-trend {
    font-size: 0.85rem;
    margin-top: 5px;
}

.stat-trend.positive {
    color: #a8ff78;
}

.stat-trend.negative {
    color: #ffb3b3;
}

/* Sync Status Card */
.sync-status-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sync-status-card h3 {
    margin: 0 0 15px 0;
    color: #555;
}

.sync-stats {
    display: flex;
    gap: 30px;
}

.sync-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sync-stat-label {
    color: #666;
}

.sync-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 4px;
}

.sync-stat-value.synced {
    background: #e8f5e9;
    color: #4caf50;
}

.sync-stat-value.pending {
    background: #fff3e0;
    color: #ff9800;
}

/* Charts */
.chart-container {
    position: relative;
    height: 300px;
    margin-top: 20px;
}

/* Recent Scans */
.recent-scans-container {
    max-height: 400px;
    overflow-y: auto;
}

.scan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.scan-item:hover {
    background: #f5f5f5;
}

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

.scan-barcode {
    font-weight: 500;
    color: #333;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
}

.scan-details {
    flex: 1;
    margin-left: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.scan-quantity, .scan-time, .scan-user {
    font-size: 0.9rem;
    color: #666;
}

.scan-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.scan-status.synced {
    background: #e8f5e9;
    color: #4caf50;
}

.scan-status.pending {
    background: #fff3e0;
    color: #ff9800;
}

/* Zones Progress */
.zones-progress-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.zone-progress-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.zone-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.zone-name {
    font-weight: 500;
    color: #333;
}

.zone-stats {
    color: #666;
    font-size: 0.9rem;
}

/* Progress Bar */
.progress-bar-container {
    margin: 10px 0;
}

.progress-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.progress-bar {
    width: 100%;
    height: 24px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2196F3, #21CBF3);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    transition: width 0.5s ease;
}

.progress-text {
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Empty State */
.empty-message {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 10px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .sync-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .scan-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .chart-container {
        height: 250px;
    }
}

