
/* css/dashboard.css */

/* Dashboard specific styles */
.dashboard-header {
    padding: 20px 0 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.dashboard-header h1 {
    color: #343a40;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-header h1 i {
    color: var(--primary-color);
}

.welcome-message {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Dashboard stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.stat-content p {
    color: #666;
    font-size: 0.9rem;
}

.stat-trend {
    margin-left: auto;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 20px;
}

.stat-trend.up {
    background: #e8f5e9;
    color: #2e7d32;
}

.stat-trend.down {
    background: #ffebee;
    color: #c62828;
}

/* Quick actions */
.quick-actions {
    margin-top: 20px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
}

.quick-action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.quick-action-btn i {
    font-size: 1.2rem;
}

/* Activity feed */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.activity-icon.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.activity-icon.warning {
    background: #fff3e0;
    color: #ef6c00;
}

.activity-icon.info {
    background: #e3f2fd;
    color: #1976d2;
}

.activity-content p {
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.activity-content small {
    color: #888;
    font-size: 0.85rem;
}

/* Chart container */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Recent sales table */
.table-recent-sales {
    font-size: 0.9rem;
}

.table-recent-sales th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

/* Responsive dashboard */
@media (max-width: 992px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-trend {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .dashboard-header h1 {
        font-size: 1.5rem;
    }
}