.class-cell {
    white-space: normal;
    word-wrap: break-word;
}

/* Modern Dashboard Styles */
.main-content {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.stat-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-card .card-body {
    padding: 20px;
}

.stat-card .card-title {
    font-size: 0.9rem;
    opacity: 0.8;
}

.stat-card h2 {
    font-size: 2.2rem;
    font-weight: 600;
}

.stat-icon {
    font-size: 3rem;
    opacity: 0.6;
}

.card-header {
    border-bottom: 1px solid #e9ecef;
    padding: 15px 20px;
    background-color: #ffffff;
    font-weight: 600;
    color: #343a40;
}

.table thead th {
    background-color: #e9ecef;
    color: #495057;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: #f1f3f5;
}

.badge {
    padding: 0.5em 0.75em;
    border-radius: 0.35rem;
    font-weight: 500;
}

/* Adjustments for specific card colors */
.stat-card.bg-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
}

.stat-card.bg-success {
    background: linear-gradient(45deg, #28a745, #1e7e34);
}

.stat-card.bg-info {
    background: linear-gradient(45deg, #17a2b8, #117a8b);
}

.stat-card.bg-warning {
    background: linear-gradient(45deg, #ffc107, #d39e00);
    color: #343a40 !important; /* Ensure text is readable on warning background */
}

.stat-card.bg-warning .stat-icon, .stat-card.bg-warning .card-title {
    color: rgba(0, 0, 0, 0.6) !important;
}

@media (max-width: 767.98px) {
    .main-content {
        margin-left: 0 !important; /* Override fixed sidebar margin for mobile */
    }
}

.cta-section {
    background-color: #f8f9fa;
    padding: 2rem 0;
}