/* All styles scoped inside .student-directory-wrapper */
.student-directory-wrapper {
    font-family: 'Inter', sans-serif;
    color: #334155;
    font-size: 14px;
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0;
}

/* Header Icon Box */
.student-directory-wrapper .header-icon-box {
    width: 36px;
    height: 36px;
    background: #4f46e5;
    color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* React / Tailwind Card Style */
.student-directory-wrapper .tw-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

/* Stat Box Component */
.student-directory-wrapper .stat-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px 8px;
}

.student-directory-wrapper .stat-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.student-directory-wrapper .stat-value {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0;
}

.student-directory-wrapper .text-indigo { color: #4f46e5; }
.student-directory-wrapper .text-slate { color: #334155; }
.student-directory-wrapper .text-emerald { color: #059669; }
.student-directory-wrapper .text-rose { color: #e11d48; }

/* Input & Select */
.student-directory-wrapper .tw-input {
    border: 1px solid #cbd5e1;
    border-radius: 8px !important;
    padding: 8px 12px;
    font-size: 13px;
    color: #1e293b;
    transition: all 0.2s;
}

.student-directory-wrapper .tw-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Secondary Button */
.student-directory-wrapper .btn-tw-secondary {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    border-radius: 8px;
    font-weight: 500;
    padding: 6px 14px;
    transition: all 0.2s;
}

.student-directory-wrapper .btn-tw-secondary:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

/* Custom Table Border Style */
.student-directory-wrapper .custom-bordered-table {
    border: 1px solid #cbd5e1 !important;
}

.student-directory-wrapper .custom-bordered-table th, 
.student-directory-wrapper .custom-bordered-table td {
    border: 1px solid #cbd5e1 !important;
    padding: 12px 10px;
    vertical-align: middle;
}

.student-directory-wrapper .tw-thead {
    background-color: #f8fafc;
}

.student-directory-wrapper .tw-thead th {
    color: #475569;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Square Student Avatar */
.student-directory-wrapper .student-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #cbd5e1;
    display: inline-block;
}

/* Tailwind-style Badges */
.student-directory-wrapper .tw-badge {
    font-weight: 600;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.student-directory-wrapper .tw-badge-indigo { background: #e0e7ff; color: #3730a3; }
.student-directory-wrapper .tw-badge-emerald { background: #d1fae5; color: #065f46; }
.student-directory-wrapper .tw-badge-amber { background: #fef3c7; color: #92400e; }
.student-directory-wrapper .tw-badge-rose { background: #ffe4e6; color: #9f1239; }
.student-directory-wrapper .tw-badge-slate { background: #f1f5f9; color: #475569; }

/* Print Rules */
@media print {
    .student-directory-wrapper .tw-card:nth-child(3), 
    .student-directory-wrapper .btn {
        display: none !important;
    }
}


/* Class Tab Buttons Styling */
.student-directory-wrapper .class-tab-btn {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.student-directory-wrapper .class-tab-btn:hover {
    background-color: #f1f5f9;
    color: #1e293b;
    border-color: #94a3b8;
}

.student-directory-wrapper .class-tab-btn.active {
    background-color: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

/* Class Table Pane Toggle */
.student-directory-wrapper .class-table-pane {
    display: none;
}

.student-directory-wrapper .class-table-pane.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}