/* Dashboard Widgets Styling */
.dashboard-widgets {
    margin-bottom: 20px;
}

.dashboard-stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-stat-card {
        margin-bottom: 10px;
    }
    
    .dashboard-stat-card h3 {
        font-size: 16px !important;
    }
    
    .dashboard-stat-card p {
        font-size: 12px !important;
    }
    
    .dashboard-stat-card > div > div:last-child {
        width: 40px !important;
        height: 40px !important;
    }
    
    .dashboard-stat-card > div > div:last-child i {
        font-size: 20px !important;
    }
}

/* Recent Messages & Activity Cards */
.dashboard-message-card,
.dashboard-activity-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-message-card h4,
.dashboard-activity-card h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
}

/* Scrollbar styling */
.dashboard-message-card > div:first-of-type,
.dashboard-activity-card > div:first-of-type {
    max-height: 250px;
    overflow-y: auto;
}

.dashboard-message-card > div:first-of-type::-webkit-scrollbar,
.dashboard-activity-card > div:first-of-type::-webkit-scrollbar {
    width: 6px;
}

.dashboard-message-card > div:first-of-type::-webkit-scrollbar-track,
.dashboard-activity-card > div:first-of-type::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.dashboard-message-card > div:first-of-type::-webkit-scrollbar-thumb,
.dashboard-activity-card > div:first-of-type::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.dashboard-message-card > div:first-of-type::-webkit-scrollbar-thumb:hover,
.dashboard-activity-card > div:first-of-type::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Recommended section */
.dashboard-recommended-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-recommended-card h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .dashboard-widgets .col-lg-3,
    .dashboard-widgets .col-md-6 {
        margin-bottom: 10px;
    }
    
    .dashboard-message-card,
    .dashboard-activity-card,
    .dashboard-recommended-card {
        margin-bottom: 15px;
    }
}
