﻿/* OrgaSphere - Dashboard Styles */

.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    transition: all var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card.warning {
    border-color: var(--accent-warning);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.upcoming {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
}

.stat-icon.pending {
    background: rgba(245, 158, 11, 0.15);
}

.stat-icon.customers {
    background: rgba(16, 185, 129, 0.15);
}

.stat-icon.warning {
    background: rgba(239, 68, 68, 0.15);
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Dashboard Sections */
.dashboard-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 16px;
    font-weight: 600;
}

/* Upcoming Orders Section */
.upcoming-orders {
    min-height: 200px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.order-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.order-item:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

.order-date {
    min-width: 60px;
    text-align: center;
    padding: var(--spacing-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.order-date-day {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.order-date-month {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.order-info {
    flex: 1;
}

.order-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.order-customer {
    font-size: 13px;
    color: var(--text-secondary);
}

.order-time {
    font-size: 12px;
    color: var(--text-muted);
}

.order-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--spacing-xs);
}

.order-delivery {
    font-size: 12px;
    color: var(--text-muted);
}

/* Material Prep Section */
.material-prep {
    min-height: 150px;
}

.material-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.material-prep-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.material-prep-item .material-icon {
    font-size: 20px;
}

.material-prep-info {
    flex: 1;
}

.material-prep-name {
    font-weight: 500;
}

.material-prep-orders {
    font-size: 12px;
    color: var(--text-secondary);
}

.material-prep-qty {
    font-weight: 600;
    font-size: 15px;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

/* Today's Events Section */
.today-events {
    min-height: 150px;
}

.events-timeline {
    position: relative;
}

.timeline-event {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    position: relative;
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 28px;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-event:last-child::before {
    display: none;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    z-index: 1;
}

.timeline-dot.delivery {
    background: rgba(59, 130, 246, 0.2);
}

.timeline-dot.pickup {
    background: rgba(16, 185, 129, 0.2);
}

.timeline-dot.event {
    background: rgba(139, 92, 246, 0.2);
}

.timeline-content {
    flex: 1;
    padding-bottom: var(--spacing-md);
}

.timeline-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.timeline-title {
    font-weight: 500;
}

.timeline-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
}
