﻿.report-filters {
    display: flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
}

    .report-filters input, .report-filters select {
        font-size: 13px;
        padding: 6px 10px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: var(--card-bg);
        color: var(--text-main);
        font-family: var(--font);
        min-width: 150px;
        transition: border-color var(--transition), box-shadow var(--transition);
    }

        .report-filters input:focus, .report-filters select:focus {
            outline: none;
            border-color: var(--primary-light);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
        }

.tbl-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--card-bg);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 560px;
    font-family: var(--font);
}

th {
    padding: 10px 14px;
    background: var(--bg);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 12px;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: var(--primary-bg);
}

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-active {
    background: #d1fae5;
    color: #065f46;
}

.badge-inactive {
    background: #f1f5f9;
    color: var(--text-muted);
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-done {
    background: var(--primary-bg);
    color: var(--primary-dark);
}

.empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-family: var(--font);
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font);
}

.pg-btns {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: nowrap; /* keep on one line */
}

.pg-ellipsis {
    padding: 5px 6px;
    font-size: 12px;
    color: var(--text-light);
    user-select: none;
}

.pg-btn {
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    color: var(--text-main);
    cursor: pointer;
    font-size: 12px;
    font-family: var(--font);
    transition: background var(--transition), border-color var(--transition);
}

    .pg-btn:hover {
        background: var(--primary-bg);
        border-color: var(--primary-light);
        color: var(--primary-dark);
    }

    .pg-btn.active {
        background: var(--primary);
        border-color: var(--primary);
        color: #ffffff;
        font-weight: 600;
    }

    .pg-btn:disabled {
        opacity: 0.4;
        cursor: default;
    }

.search-box {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    min-width: 300px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-body {
    overflow-y: auto;
    max-height: 50vh; /* adjust as needed */
    padding-right: 6px; /* avoids scrollbar overlap */
}

    /* optional: nicer scrollbar */
    .modal-body::-webkit-scrollbar {
        width: 6px;
    }

    .modal-body::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 10px;
    }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.student-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.student-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

    .student-item:hover {
        background: #f9f9f9;
    }

.student-avatar {
    width: 40px;
    height: 40px;
    background: #4f46e5;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.student-info {
    display: flex;
    flex-direction: column;
}

.student-name {
    font-weight: 600;
}

.student-roll {
    font-size: 12px;
    color: #666;
}
