.dashboard-container {
    min-height: 100vh;
    padding: 20px;
}

.dashboard-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-card.primary { border-left: 4px solid var(--primary-color); }
.stat-card.success { border-left: 4px solid var(--success-color); }
.stat-card.warning { border-left: 4px solid var(--warning-color); }
.stat-card.danger { border-left: 4px solid var(--danger-color); }
.stat-card.info { border-left: 4px solid var(--info-color); }

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.stat-icon.primary { background: rgba(44, 62, 80, 0.1); color: var(--primary-color); }
.stat-icon.success { background: rgba(39, 174, 96, 0.1); color: var(--success-color); }
.stat-icon.warning { background: rgba(243, 156, 18, 0.1); color: var(--warning-color); }
.stat-icon.danger { background: rgba(231, 76, 60, 0.1); color: var(--danger-color); }
.stat-icon.info { background: rgba(155, 89, 182, 0.1); color: var(--info-color); }

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-change {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 8px;
}

.stat-change.positive { color: var(--success-color); }
.stat-change.negative { color: var(--danger-color); }

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.time-filter {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.btn-time {
    border: 2px solid #e9ecef;
    background: white;
    color: #6c757d;
    font-weight: 500;
    padding: 8px 20px;
    margin: 0 5px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-time.active {
    background: #6c757d;
    color: white;
    border-color: var(--secondary-color);
}

.btn-time:hover:not(.active) {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.recent-activity {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f1f1;
}

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

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
}

.activity-icon.sale { background: rgba(39, 174, 96, 0.1); color: var(--success-color); }
.activity-icon.refund { background: rgba(231, 76, 60, 0.1); color: var(--danger-color); }
.activity-icon.new-product { background: rgba(52, 152, 219, 0.1); color: var(--secondary-color); }

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.activity-time {
    color: #6c757d;
    font-size: 0.85rem;
}

.activity-amount {
    font-weight: 700;
    color: var(--primary-color);
}

.top-products {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.product-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
}

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

.product-rank {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 15px;
    font-size: 0.9rem;
}

.product-rank.top-1 { background: rgba(243, 156, 18, 0.2); color: var(--warning-color); }
.product-rank.top-2 { background: rgba(108, 117, 125, 0.2); color: #6c757d; }
.product-rank.top-3 { background: rgba(141, 94, 88, 0.2); color: #8d5e58; }

.product-info {
    flex: 1;
}

.product-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.product-sales {
    color: #6c757d;
    font-size: 0.85rem;
}

.product-revenue {
    font-weight: 700;
    color: var(--success-color);
}

.dashboard-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.dashboard-section-title i {
    margin-right: 10px;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 20px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .btn-time {
        padding: 6px 15px;
        font-size: 0.9rem;
        margin: 2px;
    }
}
