

*** updated css ****/ .load-more-indicator {
    text-align: center;
    padding: 20px;
    display: none;
}

.load-more-indicator.visible {
    display: block;
}

.load-complete {
    text-align: center;
    padding: 15px;
    color: #6c757d;
    font-style: italic;
    display: none;
}

.load-complete.visible {
    display: block;
}

/* Enhanced Tabs Navigation Styles */
.stages-tabs-container {
    position: relative;
    margin-bottom: 10px;
    background-color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eaeef3;
}

.stages-tabs-scroll {
    position: relative;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
    padding: 0 40px;
    background: linear-gradient(to right, #f8faff 0%, #ffffff 100%);
}

.stages-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.stages-tabs {
    display: flex;
    gap: 15px;
    width: 100%;
    padding: 10px 0;
    min-width: min-content;
}

.stage-tab {
    min-width: max-content;
    white-space: nowrap;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    padding: 9px 22px;
    margin: 0 4px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    color: #4b5563;
    position: relative;
    border: 1px solid #d1d5db;
    gap: 13px;
    background-color: #f9fafb;
}

.stage-tab.active {
    background-color: rgba(37, 99, 235, 0.08);
    color: #1e40af;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.stage-tab:hover:not(.active) {
    background-color: #f5f7ff;
    transform: translateY(-1px);
}

.stage-tab-name {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.stage-count {
    background-color: #e5e7eb;
    color: #4b5563;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 600;
    min-width: 32px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stage-tab.active .stage-count {
    background-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(37, 99, 235, 0.3);
}

.tab-nav-arrow {
    position: absolute;
    top: 0;
    height: 100%;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    border: none;
    font-size: 18px;
    color: #4b5563;
    border-radius: 0;
    transition: all 0.2s ease;
}

.tab-nav-arrow.left {
    left: 0;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    border-right: 1px solid #eaeef3;
}

.tab-nav-arrow.right {
    right: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, #ffffff 100%);
    border-left: 1px solid #eaeef3;
}

.tab-nav-arrow:hover {
    color: #1e40af;
    background-color: #f0f4ff;
}

.tab-nav-arrow i {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

/* Tab Section Styles */
.tab-section {
    background: #f9fafb;
    border-radius: 10px;
    min-width: 324px;
    overflow: hidden;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.tab-section:hover {
    background: #f5f7ff;
    border-color: #9ca3af;
}

.tab-section-header {
     display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    justify-content: center;
    font-size:13px;
}

.tab-section-header .tab-icon {
    font-size: 16px;
    color: #4b5563;
    flex-shrink: 0;
}

.tab-section-name {
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    flex: 1;
}

.tab-section-options {
     display: flex;
    flex-direction: row;
    justify-content: center;
}

.tab-option {
padding: 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  margin: 9px 4px;
  border: 1px solid #d1d5db !important;
  transform: translateY(-2px);
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
}

.tab-option:last-child {
    border-bottom: none;
}

.tab-option:hover {
    background: #f8fafc;
}

.tab-option.active {
    background: #2563eb;
       color: #fff;
}

.tab-option .option-icon {
    font-size: 13px;
    color: #6b7280;
    flex-shrink: 0;
}

.tab-option.active .option-icon {
    color: #fff !important;
}



/* Tab Content Section */
.tab-content-section {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #eaeef3;
}

.tab-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom:12px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeef3;
    flex-wrap: wrap;
    gap: 15px;
}

.tab-content-title {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    position: relative;
    padding-left: 15px;
}

.tab-content-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
    width: 4px;
    background-color: #2563eb;
    border-radius: 2px;
}

/* Header Search Group */
.header-search-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.header-search-group .student-search {
    min-width: 300px;
}

.header-search-group .filter-btn {
    white-space: nowrap;
}

/* Controls Section */
.student-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-filter-group {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex-grow: 1;
    max-width: 600px;
}

.student-search {
    position: relative;
    flex-grow: 1;
}

.student-search input {
    padding: 12px 15px 12px 45px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    width: 100%;
    font-size: 14px;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.student-search input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    outline: none;
}

.student-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 16px;
}

.filter-btn {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    color: #4b5563;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.filter-btn:hover {
    background-color: #f3f4f6;
    color: #1f2937;
    border-color: #b1b5bc;
}

.filter-btn i {
    margin-right: 10px;
    font-size: 15px;
}

.student-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.unread-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.unread-toggle input {
    margin-right: 10px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.unread-toggle span {
    font-weight: 500;
    color: #4b5563;
}

.export-btn {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background-color: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    color: #4338ca;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(67, 56, 202, 0.1);
}

.export-btn:hover {
    background-color: #e0e7ff;
    box-shadow: 0 3px 7px rgba(67, 56, 202, 0.15);
    transform: translateY(-1px);
}

.export-btn i {
    margin-right: 10px;
    font-size: 15px;
}

/* Enhanced Table Styles */
.student-table-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.student-table-scroll {
    overflow-x: auto;
    max-width: 100%;
    position: relative;
}

.student-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    min-width: 1450px;
    table-layout: fixed;
}

.student-table th,
.student-table td {
    padding: 7px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.student-table th {
background: #edf2fd;
  color: #3977ff;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 16px;
}

.student-table tr:last-child td {
    border-bottom: none;
}

.student-table tr:hover td {
    background-color: #f8fafc;
}

.student-table th.fixed-column,
.student-table td.fixed-column {
    position: sticky;
    left: 0;
    z-index: 20;
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.1);
    width: 200px;
    min-width: 200px;
    max-width: 200px;
}

.student-table th.fixed-column {
    z-index: 21;
   
}

.student-table td.fixed-column {
    background-color: #fff;
    font-weight: 500;
}

.student-table tr:nth-child(2n+1) {
    background: #fafbfc;
}

.student-table tr:hover td.fixed-column {
    background-color: #f8fafc;
}

/* Column Widths */
.student-table th:nth-child(1),
.student-table td:nth-child(1) {
    width: 200px; /* Student Details - Fixed */
}

.student-table th:nth-child(2),
.student-table td:nth-child(2) {
    width: 120px; /* Application Status */
}

.student-table th:nth-child(3),
.student-table td:nth-child(3) {
    width: 120px; /* Interview Status */
}

.student-table th:nth-child(4),
.student-table td:nth-child(4) {
    width: 140px; /* Ready for CAS Interview */
}

.student-table th:nth-child(5),
.student-table td:nth-child(5) {
    width: 120px; /* Visa Status */
}

.student-table th:nth-child(6),
.student-table td:nth-child(6) {
    width: 120px; /* CAS Status */
}

.student-table th:nth-child(7),
.student-table td:nth-child(7) {
    width: 100px; /* Nationality */
}

.student-table th:nth-child(8),
.student-table td:nth-child(8) {
    width: 150px; /* Personal Info */
}

.student-table th:nth-child(9),
.student-table td:nth-child(9) {
    width: 120px; /* Education */
}

.student-table th:nth-child(10),
.student-table td:nth-child(10) {
    width: 150px; /* Verification */
}

.student-table th:nth-child(11),
.student-table td:nth-child(11) {
    width: 120px; /* Agent */
}

.student-table th:nth-child(12),
.student-table td:nth-child(12) {
    width: 120px; /* Days in System */
}

.student-table th:nth-child(13),
.student-table td:nth-child(13) {
    width: 100px; /* Actions */
}

/* Student Info Styles */
.student-info {
    padding: 8px 0;
    flex-direction: column;
}

.student-id {
    font-size: 11px;
    color: #6b7280;
    margin: 0 0 4px 0;
    font-weight: 500;
}

.student-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.student-email {
    font-size: 12px;
    color: #4b5563;
    margin: 0 0 4px 0;
    word-break: break-all;
}

.join-date {
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
}

/* Status Badge Styles */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-approved {
    background-color: #d1fae5;
    color: #065f46;
}

.status-rejected {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-scheduled {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background-color: #d1fae5;
    color: #065f46;
}

/* Status Cell Styles */
.status-cell {
    text-align: center;
}

.status-details {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
}

.status-details small {
    display: block;
    margin-bottom: 2px;
}

.ready-indicator, .cas-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 500;
    margin-top: 4px;
    padding: 2px 6px;
    border-radius: 8px;
}

.ready-indicator.ready, .cas-indicator.issued {
    background-color: #d1fae5;
    color: #065f46;
}

.ready-indicator.not-ready, .cas-indicator.pending {
    background-color: #fef3c7;
    color: #92400e;
}

/* Personal Info Styles */
.personal-info {
    font-size: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
    align-items: center;
}

.info-label {
    font-weight: 500;
    color: #6b7280;
    font-size: 11px;
}

.info-value {
    color: #111827;
    font-weight: 500;
    text-align: right;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Education Info Styles */
.education-info {
    text-align: center;
}

.education-level {
    margin-bottom: 8px;
}

.level-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.level-high_school {
    background-color: #e0e7ff;
    color: #3730a3;
}

.level-bachelors {
    background-color: #dbeafe;
    color: #1e40af;
}

.level-masters {
    background-color: #d1fae5;
    color: #065f46;
}

.level-phd {
    background-color: #fce7f3;
    color: #be185d;
}

.education-flags {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.flag {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 4px;
    justify-content: center;
}

.flag.has {
    background-color: #d1fae5;
    color: #065f46;
}

.flag.missing, .flag.no {
    background-color: #fee2e2;
    color: #991b1b;
}

.flag i {
    font-size: 9px;
}

/* Verification Info Styles */
.verification-info {
    text-align: center;
}

.verification-progress {
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 11px;
    font-weight: 600;
    color: #111827;
}

.verification-stats {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.stat-number.done {
    color: #059669;
}

.stat-number.pending {
    color: #d97706;
}

.stat-number.conflict {
    color: #dc2626;
}

.stat-label {
    font-size: 9px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Agent Info Styles */
.agent-info {
    text-align: center;
}

.agent-name {
    font-size: 12px;
    font-weight: 500;
    color: #111827;
    padding: 4px 8px;
    background-color: #f3f4f6;
    border-radius: 6px;
    display: inline-block;
}

.no-agent {
    font-size: 11px;
    color: #9ca3af;
    font-style: italic;
}

/* Contact Info Styles */
.contact-info {
    font-size: 11px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    color: #4b5563;
}

.contact-item i {
    font-size: 10px;
    color: #6b7280;
    width: 12px;
}

.email-truncated {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Account Status Styles */
.account-status {
    text-align: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 8px;
}

.status-indicator.active {
    background-color: #d1fae5;
    color: #065f46;
}

.status-indicator.inactive {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Ready Status Styles */
.ready-status {
    text-align: center;
}

/* CAS Status Styles */
.cas-status {
    text-align: center;
}

/* Nationality Info Styles */
.nationality-info {
    text-align: center;
}

.nationality-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: #e0e7ff;
    color: #3730a3;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 15px;
}

/* Additional Info Styles */
.additional-info {
    text-align: center;
}

.info-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 500;
    margin: 2px;
    white-space: nowrap;
}

.info-tag.english-test {
    background-color: #dbeafe;
    color: #1e40af;
}

.info-tag.gap-year {
    background-color: #fef3c7;
    color: #92400e;
}

.info-tag.travel-history {
    background-color: #d1fae5;
    color: #065f46;
}

.info-tag.criminal-records {
    background-color: #fee2e2;
    color: #991b1b;
}

.info-tag i {
    margin-right: 4px;
    font-size: 9px;
}

.no-tags {
    font-size: 11px;
    color: #9ca3af;
    font-style: italic;
}

/* Action Buttons Styles */
.action-buttons {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.btn-action {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.btn-view {
    background-color: #dbeafe;
    color: #1e40af;
}

.btn-view:hover {
    background-color: #bfdbfe;
    transform: translateY(-1px);
}

.btn-edit {
    background-color: #fef3c7;
    color: #92400e;
}

.btn-edit:hover {
    background-color: #fde68a;
    transform: translateY(-1px);
}

.btn-message {
    background-color: #d1fae5;
    color: #065f46;
}

.btn-message:hover {
    background-color: #a7f3d0;
    transform: translateY(-1px);
}

.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-icon.success {
    background-color: #d1fae5;
    color: #059669;
}

.status-icon.warning {
    background-color: #fef3c7;
    color: #d97706;
}

.status-icon.danger {
    background-color: #fee2e2;
    color: #dc2626;
}

.doc-badge {
    display: inline-flex;
    align-items: center;
    background-color: #e0e7ff;
    color: #4338ca;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(67, 56, 202, 0.1);
}

.confidence-high {
    color: #059669;
    font-weight: 600;
}

.confidence-medium {
    color: #d97706;
    font-weight: 600;
}

.confidence-low {
    color: #dc2626;
    font-weight: 600;
}

.days-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 13px;
    padding: 0 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.days-normal {
    background-color: #dbeafe;
    color: #1e40af;
}

.days-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.days-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.days-in-system {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
}

.days-in-system .days-badge {
    background-color: #e0e7ff;
    color: #4338ca;
    font-weight: 600;
    font-size: 12px;
}

#backToFilters {
	color: #2563eb;
}

/* Advanced Filter Drawer Styles */
.filter-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.filter-drawer.open {
    right: 0;
}

.filter-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1049;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.filter-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.filter-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 10;
}

.filter-drawer-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.filter-drawer-close {
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 22px;
    cursor: pointer;
    padding: 5px;
    transition: all 0.2s;
}

.filter-drawer-close:hover {
    color: #111827;
}

.filter-drawer-body {
    padding: 20px 25px;
    flex: 1;
}

.filter-drawer-footer {
    padding: 15px 25px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    background-color: #f8fafc;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.filter-drawer-footer .btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-drawer-footer .btn-outline {
    border: 1px solid #d1d5db;
    color: #4b5563;
    background-color: #fff;
}

.filter-drawer-footer .btn-outline:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.filter-drawer-footer .btn-primary {
    background-color: #2563eb;
    color: #fff;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.filter-drawer-footer .btn-primary:hover {
    background-color: #1d4ed8;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

/* Accordion Styles */
.filter-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.filter-accordion-item.active {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.filter-accordion-item.active .filter-accordion-header {
    border-bottom-color: #e5e7eb;
    background-color: #f1f5f9;
}

.filter-accordion-header:hover {
    background-color: #f1f5f9;
}

.filter-accordion-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
}

.filter-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fff;
}

.filter-accordion-item.active .filter-accordion-content {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

/* Filter Category Styles */
.filter-category {
    margin-bottom: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.filter-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-category-header:hover {
    background-color: #f8fafc;
    border-color: #d1d5db;
}

.filter-category-name {
    font-weight: 500;
    color: #4b5563;
    font-size: 14px;
}

.filter-category-icon {
    font-size: 12px;
    color: #6b7280;
    transition: all 0.2s ease;
}

/* Inner Filter Styles */
#innerFilter {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.inner-filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.filter-inner-search {
    position: relative;
    margin-bottom: 20px;
}

.filter-inner-search input {
    width: 100%;
    padding: 12px 15px 12px 42px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.filter-inner-search input:focus {
    border-color: #2563eb;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.1), 0 0 0 1px rgba(37, 99, 235, 0.2);
    outline: none;
}

.filter-inner-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.filter-back-button {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    color: #4b5563;
    padding: 10px 0;
    margin-bottom: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-back-button:hover {
    color: #2563eb;
    transform: translateX(-3px);
}

.filter-back-button i {
    margin-right: 10px;
    font-size: 14px;
}

/* Advanced Filter Section Styles */
.filter-section {
    margin-bottom: 24px;
    padding: 16px;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.filter-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.filter-section-title i {
    color: #4a5568;
    font-size: 16px;
}

.filter-input-group {
    margin-bottom: 16px;
}

.filter-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 6px;
}

.filter-input, .filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    background-color: #fff;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.filter-input:focus, .filter-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Range Input Styles */
.date-range-inputs, .year-range-inputs, .score-range-inputs, .percentage-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-range-inputs input, .year-range-inputs input, .score-range-inputs input, .percentage-range-inputs input {
    flex: 1;
}

.date-range-inputs span, .year-range-inputs span, .score-range-inputs span, .percentage-range-inputs span {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}

/* Filter Options (Radio buttons) */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    padding:0px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-option:hover {
    background-color: #f1f5f9;
}

.filter-option input[type="radio"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #2563eb;
}

.filter-option label {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 0;
    cursor: pointer;
    flex: 1;
    transition: color 0.2s ease;
}

.filter-option:hover label {
    color: #111827;
}

/* Boolean Filters */
.boolean-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-checkbox:hover {
    background-color: #f1f5f9;
}

.filter-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #2563eb;
}

.filter-checkbox label {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 0;
    cursor: pointer;
    flex: 1;
    transition: color 0.2s ease;
}

.filter-checkbox:hover label {
    color: #111827;
}

/* Selected Filters Styles */
.selected-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    background-color: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
       overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-tag i {
    margin-left: 8px;
    font-size: 12px;
    color: #4338ca;
    cursor: pointer;
    padding: 3px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.filter-tag i:hover {
    background-color: #c7d2fe;
}

.filter-tag:hover {
    background-color: #e0e7ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}




@media (max-width: 768px) {


    .filter-drawer-body {
        padding: 15px 20px;
    }

    .filter-drawer-header,
    .filter-drawer-footer {
        padding: 15px 20px;
    }

    .filter-accordion-header {
        padding: 14px 16px;
    }

    .selected-filters {
        gap: 6px;
    }

    .filter-tag {
        padding: 4px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .filter-drawer {
        width: 100%;
        right: -100%;
    }
}

.tab-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .student-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .student-actions {
        justify-content: space-between;
        width: 100%;
    }

    .tab-content-section {
        padding: 15px;
    }

    .filter-drawer {
        width: 100%;
        right: -100%;
        max-width: 100vw;
    }

    .student-table {
        font-size: 11px;
        min-width: 1250px;
    }
    
    .header-search-group {
        width: 100%;
        justify-content: center;
    }
    
    .header-search-group .student-search {
        min-width: 250px;
        flex: 1;
    }
    
    .tab-content-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .student-table th,
    .student-table td {
        padding: 12px 8px;
    }
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #e5e7eb;
}

.pagination-info {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    background-color: #fff;
    color: #374151;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f9fafb;
}

.pagination-pages {
    display: flex;
    gap: 4px;
    margin: 0 8px;
}

.pagination-page {
    width: 36px;
    height: 36px;
    border: 1px solid #d1d5db;
    background-color: #fff;
    color: #374151;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-page:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.pagination-page.active {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.pagination-page.active:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

/* Mobile Pagination */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-pages {
        order: -1;
        margin: 0;
    }
    
    .pagination-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .pagination-page {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}