/* =============================================
   Student Page – Modern Design
   ============================================= */
:root {
    --stu-primary:       #1e3a8a;
    --stu-primary-hover: #1e40af;
    --stu-primary-light: #dbeafe;
    --stu-dark:          #0f172a;
    --stu-gray:          #64748b;
    --stu-border:        #e2e8f0;
    --stu-bg:            #f8fafc;
    --stu-radius:        10px;
    --stu-shadow:        0 2px 12px rgba(15,23,42,0.07);
}

/* ── Filter Bar ─────────────────────────────── */
.student-filter-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: #ffffff;
    border: 1.5px solid var(--stu-border);
    border-radius: var(--stu-radius);
    box-shadow: var(--stu-shadow);
    overflow: hidden;
    margin: 14px 0 18px 0;
    width: 100%;
}

.student-filter-select {
    flex: 1;
    border: none;
    border-right: 1.5px solid var(--stu-border);
    border-radius: 0;
    padding: 11px 16px;
    font-size: 14px;
    color: var(--stu-gray);
    background: #ffffff;
    outline: none;
    appearance: auto;
    -webkit-appearance: auto;
    cursor: pointer;
    transition: background 0.2s;
}

.student-filter-select:focus {
    background: #f1f5f9;
    color: var(--stu-dark);
}

.student-filter-btn {
    flex-shrink: 0;
    background: var(--stu-primary);
    color: #ffffff;
    border: none;
    padding: 11px 26px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
    white-space: nowrap;
}

.student-filter-btn:hover {
    background: var(--stu-primary-hover);
}

.student-filter-reset {
    flex-shrink: 0;
    background: #f1f5f9;
    color: var(--stu-gray);
    border: none;
    border-left: 1.5px solid var(--stu-border);
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.student-filter-reset:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* ── Summary / Title Area ───────────────────── */
.title-area {
    padding: 18px 22px 14px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Row 1 — title left, actions right */
.stu-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.stu-title-row h5 {
    font-size: 19px;
    font-weight: 700;
    color: var(--stu-dark);
    margin: 0;
}

.stu-title-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.stu-total-badge {
    font-size: 13px;
    color: var(--stu-gray);
    font-weight: 500;
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--stu-border);
}

.stu-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--stu-primary);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.stu-add-btn:hover {
    background: var(--stu-primary-hover);
    color: #ffffff !important;
}

/* Row 2 — filter bar full width */
.student-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.student-filter-select {
    flex: 1;
    border: 1.5px solid #c8d3e0;
    border-radius: var(--stu-radius);
    padding: 12px 18px;
    font-size: 14px;
    color: #4a5568;
    background: #ffffff;
    outline: none;
    appearance: auto;
    -webkit-appearance: auto;
    cursor: pointer;
    box-shadow: var(--stu-shadow);
    transition: border-color 0.2s, background 0.2s;
}

.student-filter-select:focus {
    border-color: var(--stu-primary);
    background: #f8fafc;
    color: var(--stu-dark);
}

.student-filter-btn {
    flex-shrink: 0;
    background: var(--stu-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--stu-radius);
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: var(--stu-shadow);
    transition: background 0.2s;
    white-space: nowrap;
}

.student-filter-btn:hover {
    background: var(--stu-primary-hover);
}

.student-filter-reset {
    flex-shrink: 0;
    background: #f1f5f9;
    color: var(--stu-gray);
    border: 1.5px solid #c8d3e0;
    border-radius: var(--stu-radius);
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: var(--stu-shadow);
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.student-filter-reset:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* ── Table ──────────────────────────────────── */
#example thead th {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.03em;
    padding: 12px 14px;
    border-bottom: none !important;
}

#example tbody tr:hover {
    background-color: var(--stu-primary-light) !important;
    transition: background 0.15s;
}

#example tbody td {
    font-size: 13.5px;
    color: var(--stu-dark);
    padding: 11px 14px;
    vertical-align: middle;
}
