/* --- Class Grid Table Styling --- */
.card-table-wrapper {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.btn-small {
    background: var(--primary);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

/* This is the secret for responsiveness */
.table-responsive-wrapper {
    overflow-x: auto; /* Adds horizontal scroll on mobile */
    border: 1px solid var(--border);
    border-radius: 5px;
}

.class-grid-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px; /* Forces enough width for A-Z columns */
}


.class-grid-table th {
    background: #bdc3c7; /* Matching the gray header in your image */
    color: var(--dark);
    font-size: 0.75rem;
    padding: 10px;
    text-align: center;
    border: 1px solid #aeb5b9;
}

.class-grid-table td {
    padding: 6px;
    border: 1px solid var(--border);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
}
.class-grid-table td a{
    padding: 6px;
    text-decoration: none;
    color: var(--primary);
}

/* Style for the blue "Class" name and "A" indicators */
.class-grid-table td:first-child {
    color: var(--primary);
    text-align: left;
    background: #fdfdfd;
}

.active-cell {
    color: var(--primary);
}

.class-grid-table tr:hover {
    background-color: #f8f9fc;
}
.class-grid-table tr:last-child {
    padding-bottom: 10px !important;
}