.ws-division-form select.ws-division-status {
  height: 38px;
  padding: 6px 12px;
  line-height: 1.428571429;
}

/*
| -----------------------------------------------------
| PRODUCT NAME:   WHITESCHOOL MANAGEMENT SYSTEM
| -----------------------------------------------------
| AUTHOR:     CYGEC IT SOLUTIONS TEAM
| -----------------------------------------------------
| EMAIL:      info@cygecitsolutions.com
| -----------------------------------------------------
| COPYRIGHT:    RESERVED BY CYGEC IT SOLUTIONS TEAM
| -----------------------------------------------------
| WEBSITE:      https://cygecitsolutions.com
| -----------------------------------------------------
*/

/* ============================================
   MODERN DASHBOARD & WIDGET STYLES
   ============================================ */

/* Modern Stat Cards */
/* ============================================
   MODERN PROMOTION WORKFLOW
   ============================================ */
.ws-promotion-page,
.ws-promotion-search-page { background: #F8F9FA; border: 0; }
.ws-promotion-page .box-header,
.ws-promotion-search-page .box-header { min-height: 76px; padding: 18px 24px; border: 0; border-radius: 8px 8px 0 0; background: linear-gradient(135deg, #2C5F7C, #1D4157); color: #FFF; }
.ws-promotion-page .box-title,
.ws-promotion-search-page .box-title { color: #FFF; font-size: 21px; font-weight: 600; }
.ws-promotion-page .box-title i,
.ws-promotion-search-page .box-title i { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-right: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.ws-promotion-page .breadcrumb,
.ws-promotion-search-page .breadcrumb { margin: 5px 0 0; padding: 0; background: transparent; }
.ws-promotion-page .breadcrumb a, .ws-promotion-page .breadcrumb .active,
.ws-promotion-search-page .breadcrumb a, .ws-promotion-search-page .breadcrumb .active { color: rgba(255, 255, 255, .85); }
.ws-promotion-page .box-body,
.ws-promotion-search-page .box-body { padding: 24px; }
.ws-promotion-guidance,
.ws-promotion-intro { display: flex; gap: 14px; margin-bottom: 22px; padding: 16px 18px; border: 1px solid #CFE2F3; border-left: 4px solid #2C5F7C; border-radius: 6px; background: #EDF6FB; color: #34515F; }
.ws-promotion-intro { max-width: 800px; margin-left: auto; margin-right: auto; margin-bottom: 20px; }
.ws-promotion-guidance i, .ws-promotion-intro i { margin-top: 2px; color: #2C5F7C; font-size: 22px; }
.ws-promotion-guidance p, .ws-promotion-intro p { margin: 0; line-height: 1.65; }
.ws-promotion-page .ws-promotion-card,
.ws-promotion-search-card { margin: 0; padding: 20px; border: 1px solid #E1E8ED; border-radius: 8px; background: #FFF; box-shadow: 0 2px 7px rgba(44, 95, 124, .06); }
.ws-promotion-search-card { max-width: 800px; margin: 0 auto; padding: 26px; }
.ws-promotion-page .ws-promotion-section-title { margin: 0 0 16px; color: #2C5F7C; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .35px; }
.ws-promotion-search-card h4 { margin: 0 0 6px; color: #2C5F7C; font-size: 17px; font-weight: 700; }
.ws-promotion-search-card .ws-subtitle { margin: 0 0 22px; color: #6C757D; }
.ws-promotion-page .form-group label, .ws-promotion-search-card .form-group label { color: #495057; font-weight: 600; }
.ws-promotion-page .form-control, .ws-promotion-search-card .form-control { min-height: 38px; border-color: #D7E0E6; border-radius: 5px; }
.ws-promotion-page .form-control:focus, .ws-promotion-search-card .form-control:focus { border-color: #2C5F7C; box-shadow: 0 0 0 2px rgba(44, 95, 124, .12); }
.ws-promotion-page .now-check-type { padding: 20px; }
.ws-promotion-page .ws-promotion-method-options { display: flex; gap: 14px; }
.ws-promotion-page .ws-promotion-type-option { display: flex; flex: 1 1 0; align-items: flex-start; min-width: 0; padding: 14px; border: 1px solid #D7E0E6; border-radius: 6px; background: #FFF; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.ws-promotion-page .ws-promotion-type-option:hover, .ws-promotion-page .ws-promotion-exam-option:hover { border-color: #7FA0B2; background: #F7FBFD; }
.ws-promotion-page .ws-promotion-type-option.is-selected { border-color: #2C5F7C; background: #EDF6FB; box-shadow: 0 0 0 2px rgba(44, 95, 124, .10); }
.ws-promotion-page .ws-promotion-type-option .iradio_square-green { flex: 0 0 auto; margin: 2px 10px 0 0; }
.ws-promotion-page .ws-promotion-type-option label { display: block; margin: 0; color: #2C5F7C; cursor: pointer; font-weight: 700; }
.ws-promotion-page .ws-promotion-type-option small { display: block; margin-top: 3px; color: #6C757D; font-size: 12px; font-weight: 400; line-height: 1.4; }
.ws-promotion-page .ws-promotion-exam-help { margin: -5px 0 14px; color: #6C757D; font-size: 12px; }
.ws-promotion-page .ws-promotion-exam-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; }
.ws-promotion-page .ws-promotion-exam-option { display: flex; align-items: center; min-width: 0; padding: 10px 12px; border: 1px solid #D7E0E6; border-radius: 5px; background: #FFF; cursor: pointer; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.ws-promotion-page .ws-promotion-exam-option.is-selected { border-color: #2C5F7C; background: #EDF6FB; }
.ws-promotion-page .ws-promotion-exam-option .icheckbox_square-green { flex: 0 0 auto; margin-right: 8px; }
.ws-promotion-page .ws-promotion-exam-option label { margin: 0; color: #495057; cursor: pointer; font-size: 13px; font-weight: 600; line-height: 1.3; }
.ws-promotion-page .ws-promotion-submit { width: 100%; min-height: 42px; border: 0; border-radius: 5px; background: linear-gradient(135deg, #DC3545, #B82032); color: #FFF; font-weight: 600; box-shadow: 0 2px 5px rgba(220, 53, 69, .25); transition: transform .15s ease, box-shadow .15s ease; }
.ws-promotion-page .ws-promotion-submit:hover { color: #FFF; transform: translateY(-1px); box-shadow: 0 4px 9px rgba(220, 53, 69, .32); }
@media (max-width: 767px) {
  .ws-promotion-page .box-header, .ws-promotion-page .box-body, .ws-promotion-search-page .box-header, .ws-promotion-search-page .box-body { padding: 16px; }
  .ws-promotion-page .ws-promotion-card, .ws-promotion-search-card { padding: 15px; }
  .ws-promotion-page .ws-promotion-method-options { flex-direction: column; }
}

/* Modern Promotion Completion */
.ws-promotion-add-page { background: #F8F9FA; border: 0; }
.ws-promotion-add-page .box-header { min-height: 76px; padding: 18px 24px; border: 0; border-radius: 8px 8px 0 0; background: linear-gradient(135deg, #2C5F7C, #1D4157); color: #FFF; }
.ws-promotion-add-page .box-title { color: #FFF; font-size: 21px; font-weight: 600; }
.ws-promotion-add-page .box-title i { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-right: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.ws-promotion-add-page .breadcrumb { margin: 5px 0 0; padding: 0; background: transparent; }
.ws-promotion-add-page .breadcrumb a, .ws-promotion-add-page .breadcrumb .active { color: rgba(255, 255, 255, .85); }
.ws-promotion-add-page .box-body { padding: 24px; }
.ws-promotion-add-page .ws-promotion-guidance { margin-bottom: 22px; }
.ws-promotion-route-card, .ws-promotion-student-card { margin-bottom: 22px; border: 1px solid #E1E8ED; border-radius: 8px; background: #FFF; box-shadow: 0 2px 7px rgba(44, 95, 124, .06); }
.ws-promotion-route-card { overflow: hidden; }
.ws-promotion-route-heading { display: flex; align-items: center; gap: 13px; padding: 18px 20px; border-bottom: 1px solid #E9EFF3; background: #F7FBFD; }
.ws-promotion-route-icon { display: inline-flex; flex: 0 0 38px; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #2C5F7C; color: #FFF; font-size: 17px; }
.ws-promotion-route-heading h4, .ws-promotion-student-toolbar h4 { margin: 0; color: #2C5F7C; font-size: 16px; font-weight: 700; }
.ws-promotion-route-heading p, .ws-promotion-student-toolbar p { margin: 3px 0 0; color: #6C757D; font-size: 13px; }
.ws-promotion-route-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ws-promotion-route-item { min-width: 0; padding: 16px 20px; border-right: 1px solid #E9EFF3; }
.ws-promotion-route-item:last-child { border-right: 0; }
.ws-promotion-route-item span { display: block; margin-bottom: 5px; color: #6C757D; font-size: 11px; font-weight: 700; letter-spacing: .35px; text-transform: uppercase; }
.ws-promotion-route-item strong { display: block; overflow: hidden; color: #2C5F7C; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.ws-promotion-student-card { overflow: hidden; }
.ws-promotion-student-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid #E9EFF3; }
.ws-promotion-selection-tools { display: flex; flex: 0 1 auto; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; min-width: 0; }
.ws-promotion-selection-tools .btn { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 32px; padding: 7px 10px; border: 1px solid transparent; border-radius: 5px; font-size: 11px; font-weight: 700; line-height: 1.2; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease; }
.ws-promotion-selection-tools .btn i { margin-right: 5px; }
.ws-promotion-selection-tools .btn:hover, .ws-promotion-selection-tools .btn:focus { transform: translateY(-1px); box-shadow: 0 2px 5px rgba(44, 95, 124, .14); }
.ws-promotion-selection-tools .btn-success { background: #218838; border-color: #218838; color: #FFF; }
.ws-promotion-selection-tools .btn-warning { background: #D98C00; border-color: #D98C00; color: #FFF; }
.ws-promotion-selection-tools .btn-default { background: #FFF; border-color: #C7D3D9; color: #495057; }
.ws-promotion-selection-tools .btn-default:hover, .ws-promotion-selection-tools .btn-default:focus { background: #F1F5F7; color: #2C5F7C; }
.ws-promotion-selection-count { flex: 0 0 auto; padding: 7px 11px; border-radius: 20px; background: #EDF6FB; color: #2C5F7C; font-size: 12px; font-weight: 700; }
.ws-promotion-add-page .ws-promotion-student-table { margin: 0; border: 0; }
.ws-promotion-add-page .ws-promotion-student-table thead th { border-top: 0; border-bottom: 1px solid #DCE6EB; background: #F7FBFD; color: #2C5F7C; font-size: 12px; font-weight: 700; letter-spacing: .25px; text-transform: uppercase; vertical-align: middle; }
.ws-promotion-add-page .ws-promotion-student-table td { vertical-align: middle; }
.ws-promotion-add-page .ws-promotion-student-table img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.ws-promotion-add-page .ws-promotion-student-table a.text-blue { color: #2C5F7C; font-weight: 600; }
.ws-promotion-add-page .ws-promotion-student-table .promotion { width: 17px; height: 17px; accent-color: #2C5F7C; cursor: pointer; }
.ws-promotion-decision { display: flex; align-items: flex-start; gap: 8px; min-width: 190px; }
.ws-promotion-decision-badge { display: inline-flex; flex: 0 0 24px; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #6C757D; color: #FFF; font-size: 12px; font-weight: 700; }
.ws-promotion-decision strong, .ws-promotion-decision small, .ws-promotion-final-average, .ws-promotion-decision-subjects { display: block; }
.ws-promotion-decision strong { color: #34495E; font-size: 12px; font-weight: 700; line-height: 1.25; }
.ws-promotion-decision small { margin-top: 2px; color: #6C757D; font-size: 11px; line-height: 1.35; }
.ws-promotion-final-average { margin-top: 4px; color: #2C5F7C; font-size: 11px; font-weight: 700; }
.ws-promotion-decision-subjects { margin-top: 4px; color: #8A5B00; font-size: 11px; font-weight: 600; line-height: 1.35; }
.ws-promotion-ntr-status { display: block; margin-top: 5px; padding: 4px 6px; border-left: 3px solid #343A40; background: #F1F3F5; color: #343A40; font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.ws-promotion-ntr-status strong { display: inline; color: inherit; }
.ws-promotion-completed-status { display: block; margin-top: 5px; padding: 4px 6px; border-left: 3px solid #218838; background: #EDF7F0; color: #1B6B35; font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.ws-promotion-completed-status strong { display: inline; color: inherit; }
.ws-promotion-decision-promoted .ws-promotion-decision-badge, .ws-promotion-decision-graduated .ws-promotion-decision-badge { background: #218838; }
.ws-promotion-decision-probation .ws-promotion-decision-badge { background: #D98C00; }
.ws-promotion-decision-retained .ws-promotion-decision-badge { background: #C0392B; }
.ws-promotion-decision-ntr .ws-promotion-decision-badge { background: #343A40; }
.ws-promotion-decision-pending .ws-promotion-decision-badge { background: #6C757D; }
.ws-promotion-ntr-control { margin-top: 7px; padding: 3px 7px; border: 1px solid #C7D3D9; border-radius: 4px; background: #FFF; color: #495057; font-size: 11px; font-weight: 600; }
.ws-promotion-ntr-control:hover, .ws-promotion-ntr-control:focus { border-color: #343A40; background: #343A40; color: #FFF; }
.ws-promotion-action-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-top: 1px solid #E9EFF3; background: #F7FBFD; }
.ws-promotion-action-copy strong, .ws-promotion-action-copy span { display: block; }
.ws-promotion-action-copy { flex: 1 1 0; min-width: 0; }
.ws-promotion-action-copy strong { color: #2C5F7C; font-size: 14px; }
.ws-promotion-action-copy span { margin-top: 3px; color: #6C757D; font-size: 12px; }
.ws-promotion-action-buttons { display: flex; flex: 0 1 480px; min-width: 0; flex-wrap: nowrap; gap: 10px; }
.ws-promotion-action-buttons .btn { flex: 1 1 0; min-width: 0; min-height: 38px; border: 0; border-radius: 5px; color: #FFF; font-weight: 600; line-height: 1.25; transition: transform .15s ease, box-shadow .15s ease; }
.ws-promotion-action-buttons .btn:hover, .ws-promotion-action-buttons .btn:focus { color: #FFF; transform: translateY(-1px); }
.ws-promotion-action-buttons .btn:disabled, .ws-promotion-action-buttons .btn:disabled:hover { cursor: not-allowed; opacity: .5; transform: none; box-shadow: none; }
.ws-promotion-enroll { background: linear-gradient(135deg, #4D7C91, #2C5F7C); box-shadow: 0 2px 5px rgba(44, 95, 124, .22); }
.ws-promotion-confirm { background: linear-gradient(135deg, #DC3545, #B82032); box-shadow: 0 2px 5px rgba(220, 53, 69, .25); }
@media (max-width: 767px) {
  .ws-promotion-add-page .box-header, .ws-promotion-add-page .box-body { padding: 16px; }
  .ws-promotion-route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-promotion-route-item:nth-child(2) { border-right: 0; }
  .ws-promotion-route-item:nth-child(-n+2) { border-bottom: 1px solid #E9EFF3; }
  .ws-promotion-student-toolbar, .ws-promotion-action-bar { align-items: flex-start; flex-direction: column; }
  .ws-promotion-selection-tools { width: 100%; justify-content: flex-start; }
  .ws-promotion-action-buttons { width: 100%; }
}
.ws-stat-card {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 25px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #E9ECEF;
  cursor: pointer;
}

.ws-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.ws-stat-content {
  position: relative;
  z-index: 2;
}

.ws-stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  font-size: 28px;
  color: #FFFFFF;
}

.ws-stat-icon.gradient-red {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.ws-stat-icon.gradient-teal {
  background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
  box-shadow: 0 4px 10px rgba(78, 205, 196, 0.3);
}

.ws-stat-icon.gradient-pink {
  background: linear-gradient(135deg, #F06292 0%, #EC407A 100%);
  box-shadow: 0 4px 10px rgba(240, 98, 146, 0.3);
}

.ws-stat-icon.gradient-purple {
  background: linear-gradient(135deg, #9575CD 0%, #7E57C2 100%);
  box-shadow: 0 4px 10px rgba(149, 117, 205, 0.3);
}

.ws-stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #2C3E50;
  margin: 0 0 5px 0;
  line-height: 1;
}

.ws-stat-label {
  font-size: 14px;
  color: #6C757D;
  margin: 0 0 15px 0;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.ws-stat-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.3s ease;
}

.ws-stat-link:hover {
  gap: 8px;
  text-decoration: none;
}

.ws-stat-link.color-red {
  color: #FF6B6B;
}

.ws-stat-link.color-teal {
  color: #4ECDC4;
}

.ws-stat-link.color-pink {
  color: #F06292;
}

.ws-stat-link.color-purple {
  color: #9575CD;
}

.ws-stat-bg-icon {
  position: absolute;
  right: -15px;
  bottom: -15px;
  font-size: 100px;
  opacity: 0.05;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.ws-stat-card:hover .ws-stat-bg-icon {
  opacity: 0.08;
}

/* Modern backend navigation */
body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas {
  background: #172B3A;
  border-right: 1px solid #29465A;
}

body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .sidebar {
  padding: 14px 10px 20px;
}

body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .user-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
  background: #203C4E;
  border: 1px solid rgba(191, 220, 235, 0.18);
  border-radius: 8px;
}

body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .user-panel::before,
body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .user-panel::after {
  display: none;
}

body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .user-panel .image,
body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .user-panel .info {
  float: none !important;
}

body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .user-panel .image img {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.18);
}

body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .user-panel .info {
  min-width: 0;
  padding: 0;
}

body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .user-panel .info p {
  margin: 0 0 3px;
  overflow: hidden;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .user-panel .info a {
  color: #FFFFFF;
  font-size: 11px;
  line-height: 1.25;
}

body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .sidebar-menu > li > a,
body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .treeview-menu > li > a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 6px;
  background: transparent;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  transition: background-color 0.15s ease, color 0.15s ease;
}

body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .sidebar-menu > li > a > .fa,
body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .sidebar-menu > li > a > .glyphicon,
body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .treeview-menu > li > a > .fa,
body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .treeview-menu > li > a > .glyphicon {
  flex: 0 0 24px;
  width: 24px;
  color: #81B4CC;
  font-size: 15px;
  text-align: center;
}

body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .sidebar-menu > li > a > span,
body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .treeview-menu > li > a > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .sidebar-menu > li > a > .pull-right {
  margin-left: auto;
}

body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .sidebar-menu > li > a:hover,
body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .treeview-menu > li > a:hover {
  background: #DC3545 !important;
  color: #FFFFFF !important;
}

body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .sidebar-menu > li.active > a,
body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .treeview-menu > li.active > a {
  background: #2C5F7C;
  color: #FFFFFF !important;
}

body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .sidebar-menu > li > a:hover > .fa,
body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .treeview-menu > li > a:hover > .fa,
body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .sidebar-menu > li.active > a > .fa,
body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .treeview-menu > li.active > a > .fa {
  color: #FFFFFF;
}

body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .treeview-menu {
  margin: 4px 0 5px 12px;
  padding: 2px 0 2px 8px;
  background: transparent !important;
  border-left: 1px solid rgba(185, 210, 225, 0.2);
}

body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .treeview-menu > li {
  background: transparent;
}

body > .wrapper.row-offcanvas-left .left-side.sidebar-offcanvas .treeview-menu > li > a {
  min-height: 36px;
  padding: 8px 9px;
  color: #FFFFFF;
  font-size: 12px;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .ws-stat-card {
    min-height: 128px;
    padding: 18px 20px;
    margin-bottom: 16px;
  }

  .ws-stat-card .ws-stat-content {
    min-height: 90px;
    padding-left: 86px;
  }

  .ws-stat-card .ws-stat-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 56px;
    margin: 0;
    font-size: 24px;
    border-radius: 10px;
  }

  .ws-stat-card .ws-stat-number {
    font-size: 28px;
    margin-bottom: 3px;
  }

  .ws-stat-card .ws-stat-label {
    margin-bottom: 9px;
    font-size: 12px;
  }

  .ws-stat-card .ws-stat-bg-icon {
    right: -8px;
    bottom: -22px;
    font-size: 86px;
  }
}

/* Modern Box Headers */
.ws-box-modern {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid #E9ECEF;
  transition: all 0.3s ease;
}

.ws-box-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.ws-box-header-modern {
  padding: 20px 25px;
  border-bottom: none;
}

.ws-box-header-modern .box-title {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 16px;
  margin: 0;
}

.ws-box-header-modern i {
  margin-right: 8px;
}

.ws-box-header-blue {
  background: linear-gradient(135deg, #2C5F7C 0%, #395C7F 100%);
}

.ws-box-header-green {
  background: linear-gradient(135deg, #28A745 0%, #218838 100%);
}

.ws-box-header-gray {
  background: linear-gradient(135deg, #6C757D 0%, #5A6268 100%);
}

.ws-box-header-teal {
  background: linear-gradient(135deg, #17A2B8 0%, #138496 100%);
}

.ws-box-header-yellow {
  background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
}

.ws-box-header-red {
  background: linear-gradient(135deg, #DC3545 0%, #C82333 100%);
}

.ws-box-body-modern {
  padding: 25px;
  background: #FFFFFF;
}

/* Modern Table Styling */
.ws-table-modern {
  margin-bottom: 0;
}

.ws-table-modern tbody tr {
  border-bottom: 1px solid #F1F3F5;
  transition: background-color 0.2s ease;
}

.ws-table-modern tbody tr:hover {
  background-color: #F8F9FA;
}

.ws-table-modern td {
  padding: 15px;
  color: #6C757D;
}

.ws-table-modern td:first-child {
  width: 40px;
  font-weight: 600;
}

.ws-table-modern td:nth-child(2) {
  font-weight: 600;
  color: #2C3E50;
}

/* Modern Buttons */
.ws-btn-modern {
  padding: 6px 15px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
}

.ws-btn-modern:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ws-btn-teal {
  background: linear-gradient(135deg, #17A2B8 0%, #138496 100%);
  color: #FFFFFF;
}

.ws-btn-warning {
  background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
  color: #212529;
}

.ws-btn-danger {
  background: linear-gradient(135deg, #DC3545 0%, #C82333 100%);
  color: #FFFFFF;
}

.ws-btn-success {
  background: linear-gradient(135deg, #28A745 0%, #218838 100%);
  color: #FFFFFF;
}

/* Modern Alert Styling */
.ws-alert-modern {
  border-radius: 8px;
  border-left: 4px solid;
  padding: 15px 20px;
}

.ws-alert-modern.alert-info {
  background-color: #E7F3FF;
  border-left-color: #17A2B8;
  color: #0C5460;
}

.ws-alert-modern.alert-warning {
  background-color: #FFF3CD;
  border-left-color: #FFC107;
  color: #856404;
}

.ws-alert-modern.alert-danger {
  background-color: #F8D7DA;
  border-left-color: #DC3545;
  color: #721C24;
}

/*
 | -----------------------------------------------------
 | WhiteSchool brand palette helpers
 | Red • White • Blue utilities and button variants
 | -----------------------------------------------------
*/
:root {
    --ws-blue: #2C5F7C;           /* Navy brand */
    --ws-blue-accent: #3c8dbc;    /* Lighter action blue */
    --ws-blue-accent-hover: #357ca5;
    --ws-blue-accent-border: #2e6f90;
    --ws-red: #DC3545;            /* Brand red */
    --ws-red-hover: #C82333;
    --ws-red-border: #BD2130;
    --ws-white: #FFFFFF;
}

/* User Image & Login Start */
.user-logo {
  margin: 0px;
  padding: 0px;
  border-radius: 50%;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  height: 30px;
  width: 30px;
  margin-right: 0px;
  padding: 0px 0px 0px 0px;
}

.navbar-nav > .user-menu > .dropdown-menu > li.user-body > div > a:hover {
 color: #366873;
}

.navbar-nav > .user-menu > .dropdown-menu {
  border: 0px solid #FFFFFF;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  -webkit-border-bottom-left-radius: 5px;
  -webkit-border-bottom-right-radius: 5px;
  -moz-border-bottom-left-radius: 5px;
  -moz-border-bottom-right-radius: 5px;
}

.navbar-nav > .user-menu > .dropdown-menu > li.user-footer > div.text-center > a {
  color: #fff;
}
/* User Image & Login Close */

/* Language Start */
.language-img {
  margin: 0px;
  padding: 0px;
  height: 14px;
  width: 22px;
  padding: 0px 0px 0px 0px;
}

.navbar-nav > .notifications-menu > .dropdown-menu > li .menu > li > a > div > img {
  border: 1px solid #dddddd;
  height: 20px;
  margin: auto 10px auto 0px;
  width: 30px;
}
.navbar-nav > .notifications-menu > .dropdown-menu > li .menu > li > a > h4 {
  font-size: 12px;
  margin: 0;
  padding: 0px;
}

.navbar-nav > .notifications-menu > .dropdown-menu {
  width: 170px;
}
/* Labguage Close */

/* Menu User Image Start */
.color-green {
  color: #00acac;
}
/* Menu User Image End */

/* Side Menu  Start */
.sidebar .sidebar-menu > li > a:hover {
  background-color:  #232a2f !important;
  color: #EEEEEE !important;
}
.sidebar .sidebar-menu .treeview-menu > li > a:hover {
  background-color: #232a2f;
  color: #EEEEEE;
}
/* Side Menu Close */

/* Breadcrumb Start */
.box > .box-header > .breadcrumb {
  background: none !important;
  float: right;
  padding: 14px;
  margin-bottom: 0px;
  position: relative;
  font-size: 12px;
}
/* Breadcrumb Close */

/* Page Header Add Module */
.page-header > a {
  font-size: 14px;
  border-bottom: 1px solid #707478;
  color: #707478;
}

.page-header > a:hover {
  border-bottom: 1px solid #1A2229;
  color: #1A2229;
}
/* page Header Add Module */

/* Lable Start */
.form-horizontal .control-label {
  text-align: left;
  font-size: 12px;
}

label {
  font-weight: 000;
  color: #707478;
}
/* Lable Close */

/* From span Start*/
.form-horizontal > .form-group > span {
  font-weight: 000;
  color: #FF0B07;
}
/*  From span Close */

/* Table start */
.table-bordered {
    border: 1px solid #E2E7EB;
}
.table-bordered > thead > tr > th {
  border-bottom-width: 2px;
  color: #1A2229;
  font-weight: 300;
}
.table-bordered > tbody > tr > td {
  color: #707070;
}
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td {
  border-color: #E2E7EB;
  font-size: 12px;
}

/* Modern Pagination Styling */
.pagination > .disabled > span,
.pagination > .disabled > span:hover,
.pagination > .disabled > span:focus,
.pagination > .disabled > a,
.pagination > .disabled > a:hover,
.pagination > .disabled > a:focus {
    border-color: #E9ECEF;
    background-color: #F8F9FA;
    color: #ADB5BD;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
    border-color: #DC3545;
    background-color: #DC3545;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    font-weight: 600;
}

.pagination > li > a,
.pagination > li > span {
    border-color: #E9ECEF;
    color: #495057;
    padding: 8px 14px;
    margin: 0 4px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination > li > a:hover,
.pagination > li > span:hover {
    background-color: #2C5F7C;
    border-color: #2C5F7C;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(44, 95, 124, 0.2);
}

.pagination {
    margin: 15px 0;
    display: inline-flex;
    gap: 4px;
}
/* Table Close */

/*
 | -------------------------------------------------------------------
 | Report UI enhancements (moved from view-level <style> to global)
 | Scoped utility classes used by report views (Kindergarten + Standard)
 | -------------------------------------------------------------------
*/
.ws-report-actions {
    display: flex;
    align-items: flex-end;
}

.ws-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #3c8dbc;
    border-color: #367fa9;
    color: #fff;
    min-width: 180px;
    height: 38px;
    line-height: 1;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
}

.ws-report-btn i {
    font-size: 14px;
}

.ws-report-btn:hover,
.ws-report-btn:focus {
    background-color: #357ca5;
    border-color: #2e6f90;
    color: #fff;
    outline: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

.ws-report-btn[disabled] {
    opacity: .75;
    cursor: not-allowed;
}

@media (max-width:768px) {
    .ws-report-actions {
        width: 100%;
    }
    .ws-report-btn {
        width: 100%;
    }
}

/* Ensure higher specificity when combined with Bootstrap's .btn class */
.btn.ws-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--ws-blue-accent) !important;
    border-color: #367fa9 !important;
    color: var(--ws-white) !important;
    min-width: 180px;
    height: 38px;
    line-height: 1;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
}

.btn.ws-report-btn i {
    font-size: 14px;
}

.btn.ws-report-btn:hover,
.btn.ws-report-btn:focus {
    background-color: var(--ws-blue-accent-hover) !important;
    border-color: var(--ws-blue-accent-border) !important;
    color: var(--ws-white) !important;
    outline: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

.btn.ws-report-btn[disabled], .btn.ws-report-btn.disabled {
    opacity: .75;
    cursor: not-allowed;
}

/* Terminal Report specific styles (scoped to avoid side-effects) */
.ws-label-icon { margin-right: 6px; color: var(--ws-blue-accent); }
.terminal-report .mainterminalreport {
    width: 48%;
    color: #000;
    padding: 10px;
    overflow: hidden;
    float: left;
    margin-right: 2%;
    border: 1px solid #000;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.terminal-report .color { color: var(--ws-red) !important; font-weight: 700 !important; }
.terminal-report .bcolor { color: var(--ws-blue-accent) !important; font-weight: 700 !important; }

.terminal-report .header-container { display: flex; align-items: center; justify-content: center; text-align: center; margin: .1rem 0 1rem; }
.terminal-report .logo-container { flex: 0 0 auto; margin-right: .5rem; }
.terminal-report .logo-image { max-height: 60px; }
.terminal-report .text-container { flex: 1; }
.terminal-report .school-name { font-size: 2rem; font-weight: 700; text-transform: uppercase; margin: 0; padding: 0; }
.terminal-report .school-info { font-size: 1rem; line-height: 1.5; margin: 0; }
.terminal-report .schoolSection { text-align: center; text-transform: uppercase; font-size: 1.5rem; }

.terminal-report .exam-content, .terminal-report .grades { float: left; width: 50%; }
.terminal-report .grades table { width: 100%; line-height: 1.5; text-align: left; border-collapse: collapse; }
.terminal-report .grades table tr,
.terminal-report .grades table td,
.terminal-report .grades table th { text-transform: uppercase; font-size: 9px; text-align: left; border: none; }

.terminal-report .student-profile { float: left; width: 50%; }
.terminal-report .psr { font-size: 10px; line-height: 10px; }

.terminal-report .terminal-contents { width: 100%; overflow: hidden; }
.terminal-report .terminal-contents table { width: 100%; }
.terminal-report .terminal-contents table tr,
.terminal-report .terminal-contents table td,
.terminal-report .terminal-contents table th { border: 1px solid #ddd; padding: 6px 2px; font-size: 12px; text-align: center; }
.terminal-report .tr-title { text-align: center; margin: 0 0 5px; }
.terminal-report .attendance-table table { width: 100%; }

.terminal-report .terminal-footer { margin-top: 6px; font-size: 12px; line-height: 1.5; }
.terminal-report .signature-row { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; margin-bottom: 20px; }
.terminal-report .signature-block { width: 45%; text-align: center; position: relative; }
.terminal-report .signature-image { width: 70px; display: block; margin: 0 auto; }
.terminal-report .signature-line { border-bottom: 1px solid #000; width: 60%; margin: 0 auto; height: 1px; }
.terminal-report .signature-meta { margin-top: 2px; }
.terminal-report .signature-name { display: block; font-size: 14px; }
.terminal-report .signature-title { font-size: 14px; font-weight: bold; }
.terminal-report .sponsor-block { width: 45%; text-align: left; }
.terminal-report .sponsor-line { display: flex; align-items: center; width: 100%; margin-top: 30px; }
.terminal-report .sponsor-line .label { width: 80px; white-space: nowrap; }
.terminal-report .sponsor-line .line { border-bottom: 1px solid #000; flex-grow: 1; margin-left: 10px; height: 1px; }
.terminal-report .printed-date { display: flex; align-items: center; margin-top: 10px; }
.terminal-report .printed-date .label { width: 100px; white-space: nowrap; }

/* Style helper: make report action buttons red by default in terminal report */
.terminal-report .ws-report-actions .btn {
    background-color: var(--ws-red) !important;
    border-color: var(--ws-red-border) !important;
    color: var(--ws-white) !important;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.25);
    margin-left: 6px;
}

@media screen and (max-width: 480px) {
    .terminal-report .school-name { float: none; }
    .terminal-report .school-address, .terminal-report .student-profile { width: 100%; }
    .terminal-report .student-profile-img { margin-top: 10px; width: 100%; }
    .terminal-report .student-profile-img img { width: 100%; height: auto; margin: 10px 0; }
}

/* Print rules scoped for terminal report */
@media print {
    .terminal-report .mainterminalreport { width: 48%; box-sizing: border-box; padding: 5px; margin: 0; page-break-inside: avoid; border: 1px solid #ccc; }
    .terminal-report table { width: 100%; border-collapse: collapse; }
    .terminal-report table td, .terminal-report table th { border: 1px solid #000; padding: 5px; font-size: 10px; }
    @page { size: A4 portrait; margin: 3mm; }
}

/* Generic brand button variants to avoid everything looking blue */
.btn.ws-btn-blue {
    background-color: var(--ws-blue-accent) !important;
    border-color: var(--ws-blue-accent-border) !important;
    color: var(--ws-white) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
}
.btn.ws-btn-blue:hover,
.btn.ws-btn-blue:focus {
    background-color: var(--ws-blue-accent-hover) !important;
    border-color: var(--ws-blue-accent-border) !important;
    color: var(--ws-white) !important;
}

.btn.ws-btn-red {
    background-color: var(--ws-red) !important;
    border-color: var(--ws-red-border) !important;
    color: var(--ws-white) !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.25);
}
.btn.ws-btn-red:hover,
.btn.ws-btn-red:focus {
    background-color: var(--ws-red-hover) !important;
    border-color: var(--ws-red-border) !important;
    color: var(--ws-white) !important;
}

.btn.ws-btn-white-outline {
    background-color: transparent !important;
    color: var(--ws-blue) !important;
    border: 2px solid var(--ws-blue) !important;
}
.btn.ws-btn-white-outline:hover,
.btn.ws-btn-white-outline:focus {
    background-color: var(--ws-blue) !important;
    color: var(--ws-white) !important;
}

/* Settings UI: moved from marksetting view inline styles */
.setting-fieldset {
    border: 1px solid #DBDEE0;
    padding: 15px;
    margin: 0 0 25px 0;
    box-shadow: none;
}

.setting-legend {
    font-size: 1.1em;
    font-weight: 700;
    text-align: left;
    width: auto;
    color: #428BCA;
    padding: 5px 15px;
    border: 1px solid #DBDEE0;
    margin: 0;
}

.margintop {
    margin-top: 20px;
}

.margintopbottom {
    margin-top: 15px;
    margin-bottom: 10px;
}

.singlebox {
    padding: 10px;
    border: 1px solid #ddd;
}

.singlebox .singleboxheader {
    border-bottom: 1px solid #ddd;
    margin-left: -10px;
    margin-right: -10px;
    padding: 5px;
    padding-top: 0;
    margin-top: -3px;
}

.singlebox .checkbox {
    margin-left: 5px;
}

.singleboxtwo .checkbox {
    margin-left: 17px;
}

.classexamDiv {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
}

.classexamheader {
    margin: 0;
    border-bottom: 1px solid #ddd;
    margin-left: -15px;
    margin-right: -15px;
    padding: 5px 15px;
    margin-top: -15px;
    margin-bottom: 15px;
}

/* Utility: flex-align center for rows where needed */
.ws-flex-center {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
}

/* Login Start */
body.white-bg-login {
  --login-ink: #12263a;
  --login-muted: #617284;
  --login-accent: #167d8d;
  --login-line: #dce7eb;
  min-height: 100vh;
  margin: 0;
  background: #eaf2f3 var(--login-background-image, none) center / cover fixed no-repeat;
  color: var(--login-ink);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

body.white-bg-login::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  background: linear-gradient(110deg, rgba(9, 30, 43, .8), rgba(9, 30, 43, .28));
  pointer-events: none;
}

.ws-login-shell {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1040px, calc(100% - 40px));
  height: min(640px, calc(100vh - 32px));
  margin: 16px auto;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 24px 70px rgba(8, 26, 38, .28);
  box-sizing: border-box;
}

.ws-login-intro {
  display: flex;
  flex: 0 1 42%;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px;
  background: linear-gradient(155deg, rgba(18, 88, 105, .94), rgba(18, 38, 58, .9));
  color: #fff;
}

.ws-login-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.ws-login-intro img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.ws-login-intro h1 {
  max-width: 340px;
  margin: 0;
  font-size: 36px;
  line-height: 1.1;
}

.ws-login-intro p {
  max-width: 280px;
  margin: 0;
  color: rgba(255, 255, 255, .76);
  line-height: 1.6;
}

.ws-login-panel {
  flex: 1 1 58%;
  padding: 54px 72px;
}

.ws-login-panel .form-box {
  width: 100%;
  margin: 0;
}

.ws-login-panel h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.ws-login-panel .ws-login-subtitle {
  margin: 0 0 30px;
  color: var(--login-muted);
}

.ws-login-panel .form-box .body {
  padding: 0;
  background: transparent;
}

.ws-login-panel .form-group {
  margin-bottom: 20px;
}

.ws-login-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--login-ink);
  font-weight: 600;
}

.ws-login-panel .form-control {
  height: 48px;
  border: 1px solid var(--login-line);
  border-radius: 10px;
  box-shadow: none;
}

.ws-login-panel .form-control:focus {
  border-color: var(--login-accent);
  box-shadow: 0 0 0 3px rgba(22, 125, 141, .12);
}

.ws-login-panel .btn-login {
  height: 48px;
  margin-top: 18px;
  border: 0;
  border-radius: 10px;
  background: var(--login-accent);
  font-weight: 700;
  letter-spacing: .04em;
}

.ws-login-panel .btn-login:hover {
  background: #106875;
}

.ws-login-panel .checkbox {
  color: var(--login-muted);
}

.ws-login-panel .checkbox a {
  color: var(--login-accent);
}

@media (max-width: 700px) {
  .ws-login-shell {
    display: block;
    height: auto;
    margin: 20px auto;
  }

  .ws-login-intro {
    min-height: 210px;
    padding: 30px;
  }

  .ws-login-brand {
    gap: 14px;
  }

  .ws-login-intro h1 {
    font-size: 28px;
  }

  .ws-login-intro img {
    width: 52px;
    height: 52px;
  }

  .ws-login-panel {
    padding: 36px 28px 42px;
  }
}
/* Login Close */

/* Button Margin ex: edit, delete, view Start */
.mrg {
  margin-left: 2px;
  margin-right: 2px;
}
/* Button Margin ex: edit, delete, view Close */

/* File Browse Start */
.fileUpload {
    margin: 0;
    overflow: hidden;
    position: relative;
}

.fileUpload input.upload {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 0;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    filter: alpha(opacity=0);
}

.file {
  visibility: hidden;
  position: absolute;
}

.input-file { position: relative; margin: 60px 60px 0 } /* Remove margin, it is just for stackoverflow viewing */
.input-file .input-group-addon { border: 0px; padding: 0px; }
.input-file .input-group-addon .btn { border-radius: 0 4px 4px 0 }
.input-file .input-group-addon input { cursor: pointer; position:absolute; width: 72px; z-index:2;top:0;right:0;filter: alpha(opacity=0);-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";opacity:0; background-color:transparent; color:transparent; }

/* File Browse Close */

/* Fine Total Start */
.total {
    float: right;
    border:1px solid #ccc;
    padding:10px;
    background-color: #142;
    border-radius: 0px;
    -moz-border-radius: 0px;
    -webkit-border-radius: 0px;
}

.total-marg {
  padding-left: 0px;
  padding-right: 0px;
}
/* Fine Total Close */

/* Biograph Start */
.profile-view-head {
  background-image: url('../../uploads/default/pf.jpg');
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 4px 4px 0 0;
    -webkit-border-radius: 4px 4px 0 0;
    font-size: 16px;
    font-weight: 300;
}

.profile-view-head  a  {
    border-radius: 50%;
    -webkit-border-radius: 50%;
    border: 10px solid rgba(256,256,256,0.3);
    display: inline-block;
}

.profile-view-head a img {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
}

.profile-view-head h1 {
    font-size: 22px;
    font-weight: 300;
    margin-bottom: 5px;
}

.profile-view-head p {
    font-size: 14px;
}

.profile-view-dis {
    color: #89817e;
}

.profile-view-dis h1 {
    font-size: 22px;
    font-weight: 300;
    margin: 0 0 20px;
}

.profile-view-tab {
    width: 50%;
    float: left;
    margin-bottom: 10px;
    padding:0 15px;
    font-size: 14px;
}

.profile-view-tab p span {
    display: inline-block;
    width: 40%;
}

/* Biograph Close */

/* Profile Graph Start */
.profile-db-head {
    background: #009688;
    color: #fff;
    text-align: center;
    font-style: italic;
    padding: 5px;
    border-radius: 4px 4px 0 0;
    -webkit-border-radius: 4px 4px 0 0;
    font-size: 16px;
    font-weight: 300;
}

.profile-db-head  a  {
    border-radius: 50%;
    -webkit-border-radius: 50%;
    border: 5px solid rgba(256,256,256,0.3);
    display: inline-block;
}

.profile-db-head a img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
}

.profile-db-head h1 {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 5px;
}

.profile-db-head p {
    font-size: 12px;
}

/* Profile Graph End */

/* View Button Start */
.btn-cs {
  background-color: #FF766C;
  color: #FFFFFF;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.42857;
  margin: 2px;
  padding: 6px 12px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.btn-cs:hover {
  background-color: #ED857E;
  color: #EDEDED;
}

.btn-sm-cs {
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.5;
    padding: 5px 10px;
}
/* View Button Close */

/* IDcard Start */

.idcard-Table {
  background-color: #FF766C;
  width: 100%;
  border-top-left-radius: 60px;
  border-bottom-left-radius: 60px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;

  -moz-border-top-left-radius: 60px;
  -moz-border-bottom-left-radius: 60px;
  -moz-border-top-right-radius: 5px;
  -moz-border-bottom-right-radius: 5px;

  -webkit-border-top-left-radius: 60px;
  -webkit-border-bottom-left-radius: 60px;
  -webkit-border-top-right-radius: 5px;
  -webkit-border-bottom-right-radius: 5px;
}

.idcard-Table td {
  width: 40%;
}

.idcard-Table h4 {
  margin: 0px;
  padding: 0px;
}

.idcard-Table img {
  border-radius: 50%;
  width: 110px;
  height: 110px;
  border: 8px solid #FF9F98;
}

.idcard-Table .row-style {
  color: #FFFFFF;
  vertical-align: top;
  margin:0px;
  padding:0px;
}

/* IDcard Close */

/* View breadcrumb Start */
.well .breadcrumb {
  float: right;
  margin-bottom: 0px;
}
/* View breadcrumb Close */


/* Dashboard Start */

.panel > .table > tbody > tr {
  border-top: 1px solid #EEEEEE;
  height: 45px;
}

.panel > .table > tbody > tr > td {
  line-height: 22px;
}

/* Dashboard Close */

/* Library book sugation Start */

.book {
  display: none;
  z-index: 1000000;
  position: fixed;
  clear: both;
  margin: 0px;
  padding: 0px;
  border-left: 1px solid #e2e7eb;
  border-right: 1px solid #e2e7eb;
  border-bottom: 1px solid #e2e7eb;
  background-color: #fff;
  -webkit-box-shadow: -1px 3px 11px 0px rgba(42, 50, 50, 0.57);
  -moz-box-shadow:    -1px 3px 11px 0px rgba(42, 50, 50, 0.57);
  box-shadow:         -1px 3px 11px 0px rgba(42, 50, 50, 0.57);
}

.result {
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}

.result li {
  padding: 5px;
  border-top: 0;
  cursor: pointer;
}

.result li:hover {
  background: #e2e7eb;
  color: #555555;
}

/* Library book sugation Start */

/* Start tag border of mail and sms template */
.border {
  border: 1px solid #e2e7eb;
  padding: 1px 1px 1px 0px;
  min-height: 70px;
  max-height: auto;
}

.email_alltag {
  margin: 1px 1px 1px 0px;
}

.sms_alltag {
  margin: 1px 1px 1px 0px;
}
/* Close tag border of mail and sms template */

/* Start for Holiday and Event */
.profile-view-head-cover {
  min-height: 300px;
  background-color: #b5bbc8;
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 5px 5px 0 0;
}

.picture-left {
  width: 70px;
  height: 70px;
  background-color: #f0f3f5;
  font-size: 22px;
  text-align: center;
  color: gray;
  border-radius: 8px;
  font-weight: bold;
  line-height: 1.42857;
  letter-spacing: 3px;
  float: left;
  margin-left: 3%;
  margin-top: 263px;
  padding: 2px;
}

.picture-right {
  width: 70px;
  height: 70px;
  background-color: #f0f3f5;
  font-size: 22px;
  text-align: center;
  color: gray;
  border-radius: 8px;
  font-weight: bold;
  line-height: 1.42857;
  letter-spacing: 3px;
  float: right;
  margin-right: 3%;
  margin-top: 263px;
  padding: 2px;
}
/* Close for Holiday and Event */

/* Start Onoff Small switch */
.onoffswitch-small {
    position: relative; width: 60px;
    -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
}
.onoffswitch-small-checkbox {
    display: none;
}
.onoffswitch-small-label {
    display: block; overflow: hidden; cursor: pointer;
    border: 2px solid #999999; border-radius: 10px;
}
.onoffswitch-small-inner {
    display: block; width: 200%; margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}
.onoffswitch-small-inner:before, .onoffswitch-small-inner:after {
    display: block; float: left; width: 50%; height: 18px; padding: 0; line-height: 18px;
    font-size: 10px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
    box-sizing: border-box;
}
.onoffswitch-small-inner:before {
    content: "ON";
    padding-left: 9px;
    background-color: #34A7C1; color: #FFFFFF;
}
.onoffswitch-small-inner:after {
    content: "OFF";
    padding-right: 9px;
    background-color: #EEEEEE; color: #999999;
    text-align: right;
}
.onoffswitch-small-switch {
    display: block; width: 12px; margin: 3px;
    background: #FFFFFF;
    position: absolute; top: 0; bottom: 0;
    right: 38px;
    border: 2px solid #999999; border-radius: 10px;
    transition: all 0.3s ease-in 0s;
}
.onoffswitch-small-checkbox:checked + .onoffswitch-small-label .onoffswitch-small-inner {
    margin-left: 0;
}
.onoffswitch-small-checkbox:checked + .onoffswitch-small-label .onoffswitch-small-switch {
    right: 0px;
}
/* Close Onoff Small switch */

.input-group-addon.btn.btn-success > a {
    color: #fff;
}

.input-group-addon.btn.btn-success {
    border-bottom-right-radius: 3px;
    border-top-right-radius: 3px;
}

.image-preview-input,
.image-preview-input2,
.image-preview-input3,
.image-preview-input4,
.image-preview-input5,
.image-preview-input6,
.image-preview-input7 {
    position: relative;
    overflow: hidden;
    margin: 0px;
    color: #333;
    background-color: #fff;
    border-color: #ccc;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 4px;
}
  .image-preview .form-control.image-preview-filename,
  .image-preview .form-control.image-preview-filename2,
  .image-preview .form-control.image-preview-filename3,
  .image-preview .form-control.image-preview-filename4,
  .image-preview .form-control.image-preview-filename5,
  .image-preview .form-control.image-preview-filename6,
  .image-preview2 .form-control.image-preview-filename,
  .image-preview2 .form-control.image-preview-filename2,
  .image-preview2 .form-control.image-preview-filename3,
  .image-preview2 .form-control.image-preview-filename4,
  .image-preview2 .form-control.image-preview-filename5,
  .image-preview2 .form-control.image-preview-filename6,
  .image-preview3 .form-control.image-preview-filename,
  .image-preview3 .form-control.image-preview-filename2,
  .image-preview3 .form-control.image-preview-filename3,
  .image-preview3 .form-control.image-preview-filename4,
  .image-preview3 .form-control.image-preview-filename5,
  .image-preview3 .form-control.image-preview-filename6,
  .image-preview4 .form-control.image-preview-filename,
  .image-preview4 .form-control.image-preview-filename2,
  .image-preview4 .form-control.image-preview-filename3,
  .image-preview4 .form-control.image-preview-filename4,
  .image-preview4 .form-control.image-preview-filename5,
  .image-preview4 .form-control.image-preview-filename6,
  .image-preview5 .form-control.image-preview-filename,
  .image-preview5 .form-control.image-preview-filename2,
  .image-preview5 .form-control.image-preview-filename3,
  .image-preview5 .form-control.image-preview-filename4,
  .image-preview5 .form-control.image-preview-filename5,
  .image-preview5 .form-control.image-preview-filename6,
  .image-preview6 .form-control.image-preview-filename,
  .image-preview6 .form-control.image-preview-filename2,
  .image-preview6 .form-control.image-preview-filename3,
  .image-preview6 .form-control.image-preview-filename4,
  .image-preview6 .form-control.image-preview-filename5,
  .image-preview6 .form-control.image-preview-filename6,
  .image-preview7 .form-control.image-preview-filename,
  .image-preview7 .form-control.image-preview-filename2,
  .image-preview7 .form-control.image-preview-filename3,
  .image-preview7 .form-control.image-preview-filename4,
  .image-preview7 .form-control.image-preview-filename5,
  .image-preview7 .form-control.image-preview-filename6,
  .image-preview7 .form-control.image-preview-filename7 {
    height: 44px;
    padding: 10px 12px;
    line-height: 22px;
    border-radius: 4px 0 0 4px;
  }
  .image-preview .input-group-btn > .btn,
  .image-preview .input-group-btn > .btn .image-preview-input-title,
  .image-preview .input-group-btn > .btn .image-preview-input-title2,
  .image-preview .input-group-btn > .btn .image-preview-input-title3,
  .image-preview .input-group-btn > .btn .image-preview-input-title4,
  .image-preview .input-group-btn > .btn .image-preview-input-title5,
  .image-preview .input-group-btn > .btn .image-preview-input-title6,
  .image-preview2 .input-group-btn > .btn,
  .image-preview2 .input-group-btn > .btn .image-preview-input-title,
  .image-preview2 .input-group-btn > .btn .image-preview-input-title2,
  .image-preview2 .input-group-btn > .btn .image-preview-input-title3,
  .image-preview2 .input-group-btn > .btn .image-preview-input-title4,
  .image-preview2 .input-group-btn > .btn .image-preview-input-title5,
  .image-preview2 .input-group-btn > .btn .image-preview-input-title6,
  .image-preview3 .input-group-btn > .btn,
  .image-preview3 .input-group-btn > .btn .image-preview-input-title,
  .image-preview3 .input-group-btn > .btn .image-preview-input-title2,
  .image-preview3 .input-group-btn > .btn .image-preview-input-title3,
  .image-preview3 .input-group-btn > .btn .image-preview-input-title4,
  .image-preview3 .input-group-btn > .btn .image-preview-input-title5,
  .image-preview3 .input-group-btn > .btn .image-preview-input-title6,
  .image-preview4 .input-group-btn > .btn,
  .image-preview4 .input-group-btn > .btn .image-preview-input-title,
  .image-preview4 .input-group-btn > .btn .image-preview-input-title2,
  .image-preview4 .input-group-btn > .btn .image-preview-input-title3,
  .image-preview4 .input-group-btn > .btn .image-preview-input-title4,
  .image-preview4 .input-group-btn > .btn .image-preview-input-title5,
  .image-preview4 .input-group-btn > .btn .image-preview-input-title6,
  .image-preview5 .input-group-btn > .btn,
  .image-preview5 .input-group-btn > .btn .image-preview-input-title,
  .image-preview5 .input-group-btn > .btn .image-preview-input-title2,
  .image-preview5 .input-group-btn > .btn .image-preview-input-title3,
  .image-preview5 .input-group-btn > .btn .image-preview-input-title4,
  .image-preview5 .input-group-btn > .btn .image-preview-input-title5,
  .image-preview5 .input-group-btn > .btn .image-preview-input-title6,
  .image-preview6 .input-group-btn > .btn,
  .image-preview6 .input-group-btn > .btn .image-preview-input-title,
  .image-preview6 .input-group-btn > .btn .image-preview-input-title2,
  .image-preview6 .input-group-btn > .btn .image-preview-input-title3,
  .image-preview6 .input-group-btn > .btn .image-preview-input-title4,
  .image-preview6 .input-group-btn > .btn .image-preview-input-title5,
  .image-preview6 .input-group-btn > .btn .image-preview-input-title6,
  .image-preview7 .input-group-btn > .btn,
  .image-preview7 .input-group-btn > .btn .image-preview-input-title,
  .image-preview7 .input-group-btn > .btn .image-preview-input-title2,
  .image-preview7 .input-group-btn > .btn .image-preview-input-title3,
  .image-preview7 .input-group-btn > .btn .image-preview-input-title4,
  .image-preview7 .input-group-btn > .btn .image-preview-input-title5,
  .image-preview7 .input-group-btn > .btn .image-preview-input-title6,
  .image-preview7 .input-group-btn > .btn .image-preview-input-title7 {
    height: 44px;
    display: flex;
    align-items: center;
  }
  .image-preview .input-group-btn > .btn.image-preview-input,
  .image-preview .input-group-btn > .btn.image-preview-input2,
  .image-preview .input-group-btn > .btn.image-preview-input3,
  .image-preview .input-group-btn > .btn.image-preview-input4,
  .image-preview .input-group-btn > .btn.image-preview-input5,
  .image-preview .input-group-btn > .btn.image-preview-input6,
  .image-preview2 .input-group-btn > .btn.image-preview-input,
  .image-preview2 .input-group-btn > .btn.image-preview-input2,
  .image-preview2 .input-group-btn > .btn.image-preview-input3,
  .image-preview2 .input-group-btn > .btn.image-preview-input4,
  .image-preview2 .input-group-btn > .btn.image-preview-input5,
  .image-preview2 .input-group-btn > .btn.image-preview-input6,
  .image-preview3 .input-group-btn > .btn.image-preview-input,
  .image-preview3 .input-group-btn > .btn.image-preview-input2,
  .image-preview3 .input-group-btn > .btn.image-preview-input3,
  .image-preview3 .input-group-btn > .btn.image-preview-input4,
  .image-preview3 .input-group-btn > .btn.image-preview-input5,
  .image-preview3 .input-group-btn > .btn.image-preview-input6,
  .image-preview4 .input-group-btn > .btn.image-preview-input,
  .image-preview4 .input-group-btn > .btn.image-preview-input2,
  .image-preview4 .input-group-btn > .btn.image-preview-input3,
  .image-preview4 .input-group-btn > .btn.image-preview-input4,
  .image-preview4 .input-group-btn > .btn.image-preview-input5,
  .image-preview4 .input-group-btn > .btn.image-preview-input6,
  .image-preview5 .input-group-btn > .btn.image-preview-input,
  .image-preview5 .input-group-btn > .btn.image-preview-input2,
  .image-preview5 .input-group-btn > .btn.image-preview-input3,
  .image-preview5 .input-group-btn > .btn.image-preview-input4,
  .image-preview5 .input-group-btn > .btn.image-preview-input5,
  .image-preview5 .input-group-btn > .btn.image-preview-input6,
  .image-preview6 .input-group-btn > .btn.image-preview-input,
  .image-preview6 .input-group-btn > .btn.image-preview-input2,
  .image-preview6 .input-group-btn > .btn.image-preview-input3,
  .image-preview6 .input-group-btn > .btn.image-preview-input4,
  .image-preview6 .input-group-btn > .btn.image-preview-input5,
  .image-preview6 .input-group-btn > .btn.image-preview-input6,
  .image-preview7 .input-group-btn > .btn.image-preview-input,
  .image-preview7 .input-group-btn > .btn.image-preview-input2,
  .image-preview7 .input-group-btn > .btn.image-preview-input3,
  .image-preview7 .input-group-btn > .btn.image-preview-input4,
  .image-preview7 .input-group-btn > .btn.image-preview-input5,
  .image-preview7 .input-group-btn > .btn.image-preview-input6,
  .image-preview7 .input-group-btn > .btn.image-preview-input7 {
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 0 4px 4px 0;
  }
.image-preview-input input[type=file],
.image-preview-input2 input[type=file],
.image-preview-input3 input[type=file],
.image-preview-input4 input[type=file],
.image-preview-input5 input[type=file],
.image-preview-input6 input[type=file],
.image-preview-input7 input[type=file] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  filter: alpha(opacity=0);
  overflow: hidden;
  z-index: 2;
}
.image-preview-input4 input[type=file]::-webkit-file-upload-button,
.image-preview-input5 input[type=file]::-webkit-file-upload-button,
.image-preview-input6 input[type=file]::-webkit-file-upload-button,
.image-preview-input7 input[type=file]::-webkit-file-upload-button { visibility: hidden; }
.image-preview-input input[type=file]::file-selector-button,
.image-preview-input2 input[type=file]::file-selector-button,
.image-preview-input3 input[type=file]::file-selector-button,
.image-preview-input4 input[type=file]::file-selector-button,
.image-preview-input5 input[type=file]::file-selector-button,
.image-preview-input6 input[type=file]::file-selector-button,
.image-preview-input7 input[type=file]::file-selector-button { visibility: hidden; }
.image-preview-input-title,
.image-preview-input-title2,
.image-preview-input-title3,
.image-preview-input-title4,
.image-preview-input-title5,
.image-preview-input-title6,
.image-preview-input-title7 {
    margin-left:2px;
    overflow: hidden;
    font-weight: 600;
}

.input-group-addon.btn.btn-danger {
    border-bottom-right-radius: 3px;
    border-top-right-radius: 3px;
}

.input-group-addon.btn.btn-danger > a {
  color: #FFF;
  padding: 0 5px;
}

/* Start Default Button */
.input-group-addon.btn.btn-default {
    border-bottom-right-radius: 3px;
    border-top-right-radius: 3px;
}

.input-group-addon.btn.btn-default > a {
  color: #707478;
  padding: 0 5px;
}

/* Close Default Button Close */

.glyphicon.glyphicon-ok {
    font-size: 12px;
}

.hide-dropdown-icon {
   -moz-appearance:none;
  -webkit-appearance:none;
}

.margin-top-bottom {
  padding-left:0px;
  padding-right:0px;
}

.drop-marg {
  border: 1px solid #09A3A3;
  padding-left:0px;
  padding-right:0px;
}

.invoice-td {
  text-align: right;
}

.bg-sky {
  background-color: #98B2CC;
}

.bg-sky-light {
  background-color: #89A0B8;
}

.bg-purple-shipu {
  background-color: #9583AC;
}

.bg-sky-total {
  background-color: #8083AC;
}

.bg-sky-total-grade {
  background-color: #956785;
}

.bg-black-btn, .bg-black-btn:active, .bg-black-btn:visited, .bg-black-btn:link {
  background-color: #23292F;
  color: #FFF;
}

.bg-black-btn:hover {
  background-color: #333C45;
  color: #CCC;
}

.bg-maroon-light {
  background-color: #C24984 !important;
  color: #fff !important;
}

.bg-maroon-dark {
  background-color: #d81b60 !important;
  color: #f9f9f9 !important;
}

.text-maroon-light {
    color: #C24984;
}

.bg-blue-dark {
    background-color: #3A87AD !important;
    color: #f9f9f9 !important;
}

.bg-blue-light {
    background-color: #5C6BC0 !important;
    color: #f9f9f9 !important;
}

.bg-purple-light {
    background-color: #9575CD !important;
    color: #fff !important;
}

.bg-pink-light {
    background-color: #F06292 !important;
    color: #fff !important;
}

.bg-teal-light {
    background-color: #4DB6AC !important;
    color: #fff !important;
}

.bg-orange-dark {
    background-color: #FF8A65 !important;
    color: #fff !important;
}

@media print
{
    .no-print, .no-print *
    {
        display: none !important;
    }
}
/*.modal-open .modal .tooltip{z-index:2080;}*/

/* ============================================
   WhiteSchool Dropped View Banner - Modern Design
   Colors: Red (#DC3545), White (#FFFFFF), Blue (#2C5F7C)
   ============================================ */

/* Main banner container with gradient and modern shadows */
.ws-dropped-banner {
    background: linear-gradient(135deg, #2C5F7C 0%, #3D7A9A 100%);
    border-left: 5px solid #DC3545;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(44, 95, 124, 0.15);
    padding: 18px 24px;
    margin: 15px 0 20px 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: slideDown 0.4s ease-out;
}

.ws-dropped-banner:hover {
    box-shadow: 0 6px 20px rgba(44, 95, 124, 0.25);
    transform: translateY(-2px);
}

/* Banner content wrapper */
.ws-dropped-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* Icon styling with accent background */
.ws-dropped-banner-icon {
    background: rgba(220, 53, 69, 0.15);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.ws-dropped-banner-icon i {
    color: #DC3545;
    font-size: 20px;
}

/* Text content area */
.ws-dropped-banner-text {
    flex: 1;
    min-width: 200px;
}

.ws-dropped-banner-title {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.ws-dropped-banner-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    margin: 0;
    font-weight: 400;
}

/* Modern switch button with WhiteSchool colors */
.ws-btn-switch-view {
    background: #FFFFFF;
    color: #2C5F7C;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ws-btn-switch-view:hover {
    background: #DC3545;
    color: #FFFFFF;
    border-color: #DC3545;
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.ws-btn-switch-view:active {
    transform: translateX(-3px) scale(0.98);
}

.ws-btn-switch-view i {
    margin-right: 6px;
    transition: transform 0.3s ease;
}

.ws-btn-switch-view:hover i {
    transform: translateX(-3px);
}

/* Modernized toggle button for View Active/Dropped Students */
.ws-btn-toggle-dropped {
    background: linear-gradient(135deg, #FF9800 0%, #FF6F00 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.3);
}

.ws-btn-toggle-dropped:hover {
    background: linear-gradient(135deg, #FF6F00 0%, #E65100 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
    color: #FFFFFF;
}

.ws-btn-toggle-dropped.viewing-dropped {
    background: linear-gradient(135deg, #2C5F7C 0%, #1E4A63 100%);
    box-shadow: 0 3px 10px rgba(44, 95, 124, 0.3);
}

.ws-btn-toggle-dropped.viewing-dropped:hover {
    background: linear-gradient(135deg, #1E4A63 0%, #153749 100%);
    box-shadow: 0 5px 15px rgba(44, 95, 124, 0.4);
}

/* Pulse animation for attention */
.ws-btn-pulse {
    animation: wsPulse 1.2s ease-out 2;
}

@keyframes wsPulse {
    0% {
        box-shadow: 0 3px 10px rgba(255, 152, 0, 0.3), 0 0 0 0 rgba(255, 152, 0, 0.7);
    }
    50% {
        box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4), 0 0 0 15px rgba(255, 152, 0, 0);
    }
    100% {
        box-shadow: 0 3px 10px rgba(255, 152, 0, 0.3), 0 0 0 0 rgba(255, 152, 0, 0);
    }
}

/* Slide down animation for banner */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .ws-dropped-banner {
        padding: 16px 18px;
    }
    
    .ws-dropped-banner-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ws-btn-switch-view {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }
    
    .ws-dropped-banner-icon {
        width: 38px;
        height: 38px;
    }
    
    .ws-dropped-banner-icon i {
        font-size: 18px;
    }
    
    .ws-dropped-banner-title {
        font-size: 15px;
    }
    
    .ws-dropped-banner-subtitle {
        font-size: 12px;
    }
}

/* Loading state for toggle button */
.ws-btn-toggle-dropped:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ws-btn-toggle-dropped .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   WhiteSchool Modern Student Index Page
   Full page modernization with cards & spacing
   ============================================ */

/* Modern Box Container */
.ws-modern-page {
    background: #F8F9FA;
    border-radius: 10px;
    overflow: visible;
}

.ws-modern-page .box-header {
    background: linear-gradient(135deg, #2C5F7C 0%, #3D7A9A 100%);
    border: none;
    border-radius: 10px 10px 0 0;
    padding: 20px 25px;
    box-shadow: 0 2px 10px rgba(44, 95, 124, 0.15);
}

.ws-modern-page .box-header .box-title {
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ws-modern-page .box-header .box-title i {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 8px;
    font-size: 20px;
}

.ws-modern-page .box-header .breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px 15px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ws-modern-page .box-header .breadcrumb li a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.ws-modern-page .box-header .breadcrumb li a:hover {
    color: #FFFFFF;
}

.ws-modern-page .box-header .breadcrumb li.active {
    color: #FFFFFF;
    font-weight: 500;
}

/* Modern Control Panel Card */
.ws-control-panel {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #E9ECEF;
}

.ws-control-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.ws-control-item {
    flex: 1;
    min-width: 200px;
}

.ws-control-item label {
    display: block;
    color: #495057;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Inline control item for compact display */
.ws-control-item-inline {
    display: inline-block;
    min-width: 180px;
    vertical-align: middle;
}

.ws-control-item-inline .form-control {
    display: inline-block;
    width: auto;
    min-width: 180px;
    max-width: 220px;
}

/* Modern Select Dropdown */
.ws-select-modern {
    border: 2px solid #E9ECEF;
    border-radius: 6px;
    padding: 12px 18px;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.3s ease;
    background: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: auto;
    min-height: 44px;
    cursor: pointer;
}

/* Style for select dropdown options */
.ws-select-modern option {
    padding: 8px 12px;
    line-height: 1.8;
    font-size: 14px;
    color: #495057;
    background: #FFFFFF;
}

.ws-select-modern option:hover,
.ws-select-modern option:focus {
    background: #F8F9FA;
    color: #2C5F7C;
}

.ws-select-modern option:checked {
    background: #2C5F7C;
    color: #FFFFFF;
}

/* Enhanced dropdown appearance on browsers that support it */
.ws-select-modern::-webkit-scrollbar {
    width: 8px;
}

.ws-select-modern::-webkit-scrollbar-track {
    background: #F8F9FA;
    border-radius: 4px;
}

.ws-select-modern::-webkit-scrollbar-thumb {
    background: #CED4DA;
    border-radius: 4px;
}

.ws-select-modern::-webkit-scrollbar-thumb:hover {
    background: #ADB5BD;
}

.ws-select-modern:focus {
    border-color: #2C5F7C;
    box-shadow: 0 0 0 3px rgba(44, 95, 124, 0.1);
    outline: none;
}

/* Modern Add Button */
.ws-btn-add {
    background: linear-gradient(135deg, #DC3545 0%, #C82333 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.ws-btn-add:hover {
    background: linear-gradient(135deg, #C82333 0%, #BD2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
    color: #FFFFFF;
    text-decoration: none;
}

.ws-btn-add i {
    font-size: 16px;
}

/* Modern Action Buttons */
.ws-btn-action {
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.ws-btn-reclassify {
    background: linear-gradient(135deg, #FFC107 0%, #FFA000 100%);
    color: #212529;
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.3);
}

.ws-btn-reclassify:hover {
    background: linear-gradient(135deg, #FFA000 0%, #FF8F00 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
    color: #212529;
}

/* Modern Tabs */
.ws-modern-tabs {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #E9ECEF;
}

.ws-modern-tabs .nav-tabs {
    background: #F8F9FA;
    border-bottom: 2px solid #E9ECEF;
    padding: 0 20px;
    margin: 0;
}

.ws-modern-tabs .nav-tabs > li {
    margin-bottom: -2px;
}

.ws-modern-tabs .nav-tabs > li > a {
    border: none;
    border-radius: 0;
    color: #6C757D;
    font-weight: 600;
    padding: 15px 18px;
    transition: all 0.3s ease;
    position: relative;
}

.ws-modern-tabs .nav-tabs > li > a:hover {
    background: rgba(44, 95, 124, 0.05);
    color: #2C5F7C;
}

.ws-modern-tabs .nav-tabs > li.active > a,
.ws-modern-tabs .nav-tabs > li.active > a:hover,
.ws-modern-tabs .nav-tabs > li.active > a:focus {
    background: #FFFFFF;
    color: #2C5F7C;
    border: none;
    border-bottom: 3px solid #DC3545;
}

.ws-modern-tabs .tab-content {
    padding: 25px;
    background: #FFFFFF;
}

/* Profile View Section Headers */
.ws-section-header {
    color: #2C5F7C;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E9ECEF;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ws-section-header i {
    font-size: 18px;
}

/* Profile View Info Tables */
.ws-info-table {
    margin-bottom: 30px;
}

.ws-info-table tbody tr {
    border-bottom: 1px solid #F1F3F5;
}

.ws-info-table tbody tr:last-child {
    border-bottom: none;
}

.ws-info-table td {
    padding: 12px 8px;
}

.ws-info-table td:first-child {
    width: 45%;
    color: #6C757D;
    font-weight: 600;
    font-size: 13px;
}

.ws-info-table td:last-child {
    color: #2C5F7C;
    font-weight: 500;
}

/* Status Badges */
.ws-status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0 3px 6px 3px;
    color: #FFFFFF;
}

/* Mark page status chips and modal styling */
.ws-mark-status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.ws-mark-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ws-mark-status-badge.pending {
  background: #F3F4F6;
  color: #6B7280;
}

.ws-mark-status-badge.submitted {
  background: #E7F3FF;
  color: #0C7CD5;
}

.ws-mark-status-badge.approved {
  background: #E8F7EE;
  color: #22863A;
}

.ws-mark-status-badge.rejected {
  background: #FDEBEC;
  color: #C62828;
}

.ws-mark-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.ws-mark-status-pill.pending {
  background: #FFF3CD;
  color: #8A6D3B;
}

.ws-mark-status-pill.submitted {
  background: #D9EDF7;
  color: #31708F;
}

.ws-mark-status-pill.approved {
  background: #DFF0D8;
  color: #3C763D;
}

.ws-mark-status-pill.rejected {
  background: #F2DEDE;
  color: #A94442;
}

.ws-mark-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-right: 6px;
}

.ws-mark-role-badge.primary {
  background: #E3F2FD;
  color: #1565C0;
}

.ws-mark-role-badge.neutral {
  background: #ECEFF1;
  color: #546E7A;
}

.ws-mark-modal .modal-content {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.ws-mark-modal .modal-header {
  background: linear-gradient(135deg, #2C5F7C 0%, #3D7A9A 100%);
  color: #FFFFFF;
  border-bottom: none;
  padding: 18px 22px;
}

.ws-mark-modal .modal-title {
  font-size: 16px;
  font-weight: 700;
}

.ws-mark-modal .close {
  color: #FFFFFF;
  opacity: 0.9;
  text-shadow: none;
}

.ws-mark-modal .modal-body {
  padding: 22px;
  background: #FFFFFF;
}

.ws-mark-modal .modal-footer {
  padding: 16px 22px 22px;
  border-top: 1px solid #EEF1F4;
  background: #FFFFFF;
}

.ws-mark-modal-note {
  background: #F8F9FA;
  border: 1px solid #E9ECEF;
  border-left: 4px solid #2C5F7C;
  border-radius: 8px;
  padding: 12px 14px;
  color: #495057;
  margin-bottom: 14px;
}

.ws-mark-modal-note i {
  color: #2C5F7C;
  margin-right: 6px;
}

/* Promotion NTR modal: follows the shared modal layout with a danger action. */
.ws-promotion-ntr-modal .modal-header {
  background: linear-gradient(135deg, #c0392b 0%, #922b21 100%);
}

.ws-promotion-ntr-modal .modal-title i {
  margin-right: 8px;
}

.ws-promotion-ntr-modal .ws-mark-modal-note {
  border-left-color: #c0392b;
  margin-top: 14px;
  margin-bottom: 0;
}

.ws-promotion-ntr-modal .ws-mark-modal-note i {
  color: #c0392b;
}

.ws-promotion-ntr-modal textarea.form-control {
  min-height: 108px;
  resize: vertical;
  border-radius: 6px;
  border-color: #dfe5ea;
  box-shadow: none;
}

.ws-promotion-ntr-modal textarea.form-control:focus {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.ws-promotion-ntr-modal .btn-danger {
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-weight: 600;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* Read-only promotion policy summary. */
.ws-promotion-policy-summary { margin: 0 15px 22px; border: 1px solid #e3e9ed; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 3px 12px rgba(35, 63, 79, .08); }
.ws-promotion-policy-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 20px; background: linear-gradient(135deg, #2C5F7C, #3D7A9A); color: #fff; }
.ws-promotion-policy-header h3 { margin: 0 0 5px; font-size: 17px; font-weight: 700; }
.ws-promotion-policy-header h3 i { margin-right: 7px; }
.ws-promotion-policy-mode { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; opacity: .9; }
.ws-promotion-policy-result { padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4); font-size: 12px; font-weight: 700; white-space: nowrap; }
.ws-promotion-policy-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #edf1f3; }
.ws-promotion-policy-metrics > div { padding: 14px 20px; border-right: 1px solid #edf1f3; }
.ws-promotion-policy-metrics > div:last-child { border-right: 0; }
.ws-promotion-policy-metrics span { display: block; color: #71808c; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.ws-promotion-policy-metrics strong { display: block; margin-top: 4px; color: #263a46; font-size: 15px; }
.ws-promotion-policy-section { padding: 16px 20px; border-bottom: 1px solid #edf1f3; }
.ws-promotion-policy-section:last-child { border-bottom: 0; }
.ws-promotion-policy-section h4 { margin: 0 0 11px; color: #2C5F7C; font-size: 14px; font-weight: 700; }
.ws-promotion-policy-section p { margin: 0; color: #4b5b65; line-height: 1.55; }
.ws-promotion-subject-result { display: inline-block; padding: 3px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.ws-promotion-subject-result.is-passed { background: #e8f7ee; color: #22863a; }
.ws-promotion-subject-result.is-failed { background: #fdebec; color: #c62828; }
.ws-promotion-policy-note { margin-top: 10px !important; padding: 9px 11px; border-left: 3px solid #e67e22; background: #fff8e9; border-radius: 4px; }
.ws-promotion-policy-note i { margin-right: 6px; color: #e67e22; }
@media (max-width: 767px) { .ws-promotion-policy-metrics { grid-template-columns: 1fr; } .ws-promotion-policy-metrics > div { border-right: 0; border-bottom: 1px solid #edf1f3; } .ws-promotion-policy-header { align-items: flex-start; flex-direction: column; } }

.ws-promotion-policy-modal .modal-dialog { width: 920px; max-width: calc(100vw - 30px); }
.ws-promotion-policy-modal .modal-body { max-height: calc(100vh - 190px); overflow-y: auto; padding: 18px; }
.ws-promotion-policy-modal .ws-promotion-policy-summary { margin: 0; box-shadow: none; }
.ws-promotion-summary-loading { padding: 32px; color: #2C5F7C; text-align: center; font-weight: 600; }

.ws-status-badge.active {
    background: #28A745;
}

.ws-status-badge.dropped {
    background: #DC3545;
}

.ws-status-badge.new-student {
    background: #17A2B8;
}

.ws-status-badge.old-student {
    background: #6C757D;
}

.ws-status-badge i {
    margin-right: 4px;
}

.ws-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid #DCEAF2;
  border-radius: 999px;
  background: linear-gradient(135deg, #F7FBFD 0%, #EDF6FA 100%);
  color: #2C5F7C;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 7px rgba(44, 95, 124, 0.12);
}

.ws-role-badge i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2C5F7C;
  color: #FFFFFF;
  font-size: 10px;
}

/* Modern Table Styling */
.ws-modern-table {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ws-modern-table thead {
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
}

.ws-modern-table thead th {
    border: none;
    color: #495057;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 12px;
    border-bottom: 2px solid #DEE2E6;
}

.ws-modern-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #F1F3F5;
}

.ws-modern-table tbody tr:hover {
    background: #F8F9FA;
    transform: translateX(2px);
    box-shadow: -3px 0 0 #2C5F7C;
}

.ws-modern-table tbody td {
    padding: 14px 12px;
    vertical-align: middle;
    border: none;
    color: #495057;
    font-size: 14px;
}

/* Mark Distribution list */
.ws-markpercentage-page .box-body {
  padding: 24px;
}

.ws-markpercentage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ws-markpercentage-toolbar-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #2C5F7C;
  font-size: 15px;
  font-weight: 700;
}

.ws-markpercentage-toolbar-title i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #EDF6FB;
  color: #2C5F7C;
  font-size: 16px;
}

.ws-markpercentage-toolbar .ws-btn-add {
  margin: 0;
}

.ws-markpercentage-form {
  max-width: 820px !important;
  margin: 0 auto !important;
}

.ws-markpercentage-form .ws-form-section {
  margin-bottom: 0;
}

.ws-markpercentage-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid #E9ECEF;
}

.ws-markpercentage-form-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 16px;
  font-weight: 600;
}

/* Mark Approval */
.ws-markapproval-page .box-body {
  padding: 25px;
}

.ws-markapproval-filter {
  margin-bottom: 24px;
  padding: 0;
  overflow: hidden;
}

.ws-markapproval-filter-header {
  padding: 16px 20px;
  border-bottom: 1px solid #E9ECEF;
  background: #F8F9FA;
}

.ws-markapproval-filter-header h5 {
  margin: 0;
  color: #2C5F7C;
  font-size: 15px;
  font-weight: 700;
}

.ws-markapproval-filter-body {
  padding: 20px;
}

.ws-markapproval-form {
  max-width: none;
}

.ws-markapproval-form .form-group {
  margin-bottom: 0;
}

.ws-markapproval-filter-submit {
  min-height: 44px;
  margin-top: 25px;
  font-weight: 600;
}

.ws-markapproval-tabs {
  margin-bottom: 24px;
}

.ws-markapproval-tabs .nav-tabs > li > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ws-markapproval-tabs .badge {
  margin-left: 2px !important;
  border-radius: 4px !important;
}

.ws-markapproval-bulk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid #E9ECEF;
  border-radius: 6px;
  background: #F8F9FA;
}

.ws-markapproval-bulk h4 {
  margin: 0;
  color: #495057;
  font-size: 15px;
  font-weight: 700;
}

.ws-markapproval-page .table-responsive {
  border: 1px solid #E9ECEF;
  border-radius: 6px;
  box-shadow: none;
}

.ws-markapproval-page .action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 6px 9px;
  margin: 0 2px;
  border-radius: 4px;
  box-shadow: none;
}

.ws-markapproval-page .action-btn:hover {
  transform: none;
}

.ws-markapproval-page .btn-view {
  background: #E3F2FD;
  border-color: #90CAF9;
  color: #1976D2;
}

.ws-markapproval-page .btn-approve {
  background: #E8F5E9;
  border-color: #A5D6A7;
  color: #2E7D32;
}

.ws-markapproval-page .btn-reject {
  background: #FFEBEE;
  border-color: #EF9A9A;
  color: #C62828;
}

.ws-markapproval-page .status-badge {
  border-radius: 4px;
}

.ws-markapproval-page .status-pending {
  background: #FFF8E1;
  border-color: #FFE082;
  color: #8D6E00;
}

.ws-markapproval-page .status-approved {
  background: #E8F5E9;
  border-color: #A5D6A7;
  color: #2E7D32;
}

.ws-markapproval-page .status-rejected {
  background: #FFEBEE;
  border-color: #EF9A9A;
  color: #C62828;
}

.ws-markapproval-note {
  margin: 0 25px 25px;
}

/* Conversation inbox */
.ws-conversation-page .box-body {
  padding: 25px;
}

.ws-conversation-layout {
  display: flex;
  flex-wrap: wrap;
}

.ws-conversation-compose {
  justify-content: center;
  width: 100%;
  margin-bottom: 16px;
}

.ws-conversation-folders {
  border: 1px solid #E9ECEF;
  border-radius: 6px;
  background: #FFFFFF;
  overflow: hidden;
}

.ws-conversation-folders-header {
  padding: 14px 16px;
  border-bottom: 1px solid #E9ECEF;
  background: #F8F9FA;
}

.ws-conversation-folders-header h3 {
  margin: 0;
  color: #2C5F7C;
  font-size: 14px;
  font-weight: 700;
}

.ws-conversation-nav > li > a {
  padding: 12px 16px;
  border-left: 3px solid transparent;
  border-radius: 0;
  color: #495057;
  font-weight: 600;
}

.ws-conversation-nav > li > a:hover {
  background: #F8F9FA;
  color: #2C5F7C;
}

.ws-conversation-nav > li.active > a,
.ws-conversation-nav > li.active > a:hover {
  border-left-color: #DC3545;
  background: #EAF3F8;
  color: #2C5F7C;
}

.ws-conversation-list {
  padding: 20px;
}

.ws-conversation-list .ws-section-header {
  justify-content: space-between;
  margin-bottom: 16px;
}

.ws-conversation-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 16px;
}

.ws-conversation-actions {
  display: inline-flex;
  gap: 8px;
}

.ws-conversation-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #B9D7E6;
  border-radius: 4px;
  background: #EAF3F8;
  color: #2C5F7C;
}

.ws-conversation-action:hover,
.ws-conversation-action:focus {
  background: #2C5F7C;
  border-color: #2C5F7C;
  color: #FFFFFF;
}

.ws-conversation-action-danger {
  border-color: #F2BBBB;
  background: #FFEBEE;
  color: #C62828;
}

.ws-conversation-action-danger:hover,
.ws-conversation-action-danger:focus {
  background: #DC3545;
  border-color: #DC3545;
}

.ws-conversation-table-wrap {
  overflow-x: auto;
  border: 1px solid #E9ECEF;
  border-radius: 6px;
}

.ws-conversation-table {
  margin-bottom: 0;
}

.ws-conversation-table .checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
  vertical-align: middle;
}

.ws-conversation-table .mailbox-name a,
.ws-conversation-table .mailbox-subject a {
  color: #2C5F7C;
}

.ws-conversation-table .mailbox-subject b {
  font-weight: 600;
}

.ws-conversation-compose-panel,
.ws-conversation-thread {
  padding: 24px;
}

.ws-conversation-compose-panel .ws-section-title,
.ws-conversation-thread .ws-section-title,
.ws-conversation-list .ws-section-title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.ws-conversation-compose-form {
  max-width: 860px;
  margin: 0 auto;
}

.ws-conversation-compose-form textarea {
  min-height: 180px;
}

.ws-conversation-attachment {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ws-conversation-attachment > .control-label {
  width: 100%;
}

.ws-conversation-file-button {
  border: 1px solid #B9D7E6;
  border-radius: 4px;
  background: #EAF3F8;
  color: #2C5F7C;
}

.ws-conversation-file-name {
  flex: 1 1 220px;
}

.ws-conversation-file-name .form-control {
  background: #F8F9FA;
}

.ws-conversation-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid #E9ECEF;
}

.ws-conversation-send-draft {
  border: 1px solid #B9D7E6;
  border-radius: 4px;
  background: #EAF3F8;
  color: #2C5F7C;
}

.ws-conversation-messages {
  max-height: 420px;
  overflow-y: auto;
  padding: 4px 0;
}

.ws-conversation-thread .chat .item {
  min-height: 58px;
  margin-bottom: 14px;
  padding: 14px 16px 14px 68px;
  border: 1px solid #E9ECEF;
  border-radius: 6px;
  background: #FFFFFF;
}

.ws-conversation-thread .chat .item > img {
  top: 14px;
  left: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.ws-conversation-thread .chat .item > .message {
  margin: 0;
}

.ws-conversation-thread .chat .item > .message > .name {
  color: #2C5F7C;
}

.ws-conversation-thread .attachment {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #E9ECEF;
  border-radius: 4px;
  background: #F8F9FA;
}

.ws-conversation-reply {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #E9ECEF;
}

.ws-conversation-reply .form-group {
  margin: 0 0 14px;
}

.ws-conversation-reply .col-sm-12,
.ws-conversation-reply .col-sm-8 {
  float: none;
  width: 100%;
  padding: 0;
}

.ws-conversation-reply .form-group:nth-of-type(2) .col-sm-12 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ws-conversation-reply .has-error {
  width: 100%;
}

/* Media library */
.ws-media-page .box-body {
  padding: 25px;
}

.ws-media-library {
  min-height: 260px;
}

.ws-media-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.ws-media-grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}

.ws-media-grid-item {
  margin-bottom: 28px;
  padding-left: 10px;
  padding-right: 10px;
}

.ws-media-card-wrap {
  position: relative;
  max-width: 260px;
}

.ws-media-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-height: 168px;
  padding: 20px 18px;
  border: 1px solid #DDE2E6;
  border-radius: 6px;
  background: #FFFFFF;
  color: #2C5F7C;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
}

.ws-media-card:hover,
.ws-media-card:focus {
  border-color: #2C5F7C;
  box-shadow: 0 4px 12px rgba(44, 95, 124, 0.16);
  color: #2C5F7C;
  text-decoration: none;
}

.ws-media-card > i {
  font-size: 52px;
}

.ws-media-folder-card {
  background: #EAF3F8;
}

.ws-media-file-card {
  background: #F8F9FA;
}

.ws-media-upload-card {
  border: 2px dashed #84BFD8;
  background: #F2FAFC;
  color: #2C5F7C;
  cursor: pointer;
}

.ws-media-page #media-upload,
.ws-media-page #media-folder {
  width: 100%;
  height: auto;
}

.ws-media-page #media-upload {
  height: 168px;
}

.ws-media-page #media-upload > i,
.ws-media-page #media-folder > i {
  font-size: 52px !important;
}

.ws-media-upload-card > i {
  color: #DC3545;
}

.ws-media-card-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 1;
}

.ws-media-card-actions a,
.ws-media-card-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #DDE2E6;
  border-radius: 4px;
  background: #FFFFFF;
  color: #6C757D;
}

/* Keep legacy media selectors inside the modern card action cluster. */
.ws-media-page .ws-media-card-actions #close_folder,
.ws-media-page .ws-media-card-actions .share_file {
  position: static;
  left: auto;
  top: auto;
  float: none;
  margin: 0;
}

.ws-media-page .ws-media-card-actions #close_folder {
  color: #6C757D;
  opacity: 1;
}

.ws-media-page .ws-media-card-actions #close_folder:hover {
  border-color: #DC3545;
  background: #DC3545;
  color: #FFFFFF;
}

.ws-media-card-actions .share_file:hover {
  border-color: #2C5F7C;
  background: #2C5F7C;
  color: #FFFFFF;
}

.ws-media-meta {
  display: block;
  min-height: 40px;
  padding: 9px 4px 0;
  color: #6C757D;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
}

.ws-media-page #upload_media {
  display: none;
}

.ws-media-modal-dialog {
  width: 480px;
  max-width: calc(100% - 30px);
}

.ws-media-modal-content {
  border: 0;
  border-radius: 6px;
  box-shadow: 0 14px 36px rgba(36, 58, 69, 0.2);
}

.ws-media-modal .modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #DDE2E6;
  background: #F2FAFC;
}

.ws-media-modal .modal-title {
  color: #2C5F7C;
  font-size: 17px;
  font-weight: 700;
}

.ws-media-modal .modal-title i {
  margin-right: 9px;
}

.ws-media-modal .modal-header p {
  margin: 5px 28px 0;
  color: #6C757D;
  font-size: 12px;
}

.ws-media-modal-close {
  width: 28px;
  height: 28px;
  margin: -4px 0 0;
  border: 1px solid #DDE2E6;
  border-radius: 4px;
  color: #6C757D;
  font-size: 20px;
  line-height: 23px;
  opacity: 1;
}

.ws-media-modal-body {
  padding: 22px 24px;
}

.ws-media-modal .form-group {
  margin: 0 0 18px;
}

.ws-media-modal .form-group:last-child {
  margin-bottom: 0;
}

.ws-media-modal .control-label {
  display: block;
  margin-bottom: 7px;
  color: #34495A;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.ws-media-modal .form-control {
  height: 38px;
  border-color: #CCD7DD;
  border-radius: 4px;
  box-shadow: none;
}

.ws-media-modal .form-control:focus {
  border-color: #2C5F7C;
  box-shadow: 0 0 0 3px rgba(44, 95, 124, 0.1);
}

.ws-media-modal .image-preview {
  width: 100%;
}

.ws-media-modal .image-preview-input {
  height: 38px;
  border-color: #2C5F7C;
  background: #2C5F7C;
}

.ws-media-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 24px 18px;
  border-top: 1px solid #DDE2E6;
}

.ws-media-modal-cancel,
.ws-media-modal-submit {
  height: 36px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.ws-media-modal-cancel {
  border: 1px solid #CCD7DD;
  background: #FFFFFF;
  color: #52616B;
}

.ws-media-modal-submit {
  border: 1px solid #2C5F7C;
  background: #2C5F7C;
  color: #FFFFFF;
}

.ws-media-modal-submit i {
  margin-right: 7px;
}

.ws-media-modal-submit:hover,
.ws-media-modal-submit:focus {
  background: #214A62;
  color: #FFFFFF;
}

@media (max-width: 767px) {
  .ws-media-page .box-body {
    padding: 15px;
  }

  .ws-media-toolbar {
    justify-content: stretch;
  }

  .ws-media-toolbar .ws-btn-add {
    justify-content: center;
    width: 100%;
  }

  .ws-media-card-wrap {
    max-width: none;
  }

  .ws-media-modal-dialog {
    width: auto;
  }

  .ws-media-modal .modal-header,
  .ws-media-modal-body,
  .ws-media-modal-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (min-width: 768px) {
  .ws-conversation-layout > .ws-conversation-sidebar {
    width: 28%;
  }

  .ws-conversation-layout > .ws-conversation-content {
    width: 72%;
  }
}

@media (max-width: 767px) {
  .ws-markapproval-page .box-body {
    padding: 15px;
  }

  .ws-markapproval-filter-body {
    padding: 15px;
  }

  .ws-markapproval-filter-submit {
    margin-top: 0;
  }

  .ws-markapproval-bulk {
    align-items: flex-start;
    flex-direction: column;
  }

  .ws-markapproval-note {
    margin: 0 15px 15px;
  }

  .ws-conversation-page .box-body {
    padding: 15px;
  }

  .ws-conversation-sidebar {
    margin-bottom: 16px;
  }

  .ws-conversation-list {
    padding: 15px;
  }
}

.ws-markpercentage-table-card {
  overflow: hidden;
  border: 1px solid #E1E8ED;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 2px 7px rgba(44, 95, 124, 0.06);
}

.ws-markpercentage-table-card #hide-table {
  padding: 18px 20px;
}

.ws-markpercentage-table-card .dataTables_wrapper .dataTables_filter input,
.ws-markpercentage-table-card .dataTables_wrapper .dataTables_length select {
  min-height: 34px;
  border: 1px solid #D7E0E6;
  border-radius: 5px;
  background: #FFFFFF;
  color: #495057;
}

.ws-markpercentage-table-card .dataTables_wrapper .dt-buttons .btn,
.ws-markpercentage-table-card .dataTables_wrapper .dt-buttons .buttons-copy,
.ws-markpercentage-table-card .dataTables_wrapper .dt-buttons .buttons-csv,
.ws-markpercentage-table-card .dataTables_wrapper .dt-buttons .buttons-excel,
.ws-markpercentage-table-card .dataTables_wrapper .dt-buttons .buttons-pdf {
  margin-right: 6px;
  padding: 7px 11px;
  border: 1px solid #D7E0E6;
  border-radius: 5px;
  background: #FFFFFF;
  color: #2C5F7C;
  font-size: 12px;
  font-weight: 600;
}

.ws-markpercentage-table-card .dataTables_wrapper .dt-buttons .btn:hover,
.ws-markpercentage-table-card .dataTables_wrapper .dt-buttons button:hover {
  border-color: #2C5F7C;
  background: #EDF6FB;
  color: #2C5F7C;
}

.ws-markpercentage-value {
  display: inline-flex;
  min-width: 42px;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 12px;
  background: #EDF6FB;
  color: #2C5F7C;
  font-size: 12px;
  font-weight: 700;
}

.ws-markpercentage-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 3px;
  padding: 0;
  border-radius: 5px;
}

@media (max-width: 767px) {
  .ws-markpercentage-page .box-body {
    padding: 15px;
  }

  .ws-markpercentage-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .ws-markpercentage-table-card #hide-table {
    padding: 14px;
  }
}

/* Modern Action Buttons in Table */
.ws-table-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: none;
    transition: all 0.3s ease;
    margin: 0 3px;
    cursor: pointer;
    font-size: 14px;
}

  .ws-table-action-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
  }

  .ws-table-action-group .ws-table-action-btn {
    margin: 0;
    flex: 0 0 auto;
  }

.ws-table-action-btn.btn-view {
    background: #E3F2FD;
    color: #1976D2;
}

.ws-table-action-btn.btn-view:hover {
    background: #1976D2;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(25, 118, 210, 0.3);
}

.ws-table-action-btn.btn-edit {
    background: #FFF3E0;
    color: #F57C00;
}

.ws-table-action-btn.btn-edit:hover {
    background: #F57C00;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(245, 124, 0, 0.3);
}

.ws-table-action-btn.btn-delete {
    background: #FFEBEE;
    color: #D32F2F;
}

.ws-table-action-btn.btn-delete:hover {
    background: #D32F2F;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(211, 47, 47, 0.3);
}

/* Student Status Badges */
.ws-student-info .ws-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    box-shadow: none;
    margin: 0;
}

.ws-badge-new {
    background: #4CAF50;
    color: #FFFFFF;
}

.ws-badge-old {
    background: #2C5F7C;
    color: #FFFFFF;
}

/* Student Info Container */
.ws-student-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ws-student-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ws-student-name {
    font-weight: 600;
    color: #212529;
    font-size: 15px;
}

.ws-student-reg {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #6C757D;
}

.ws-student-reg::before {
    content: "Reg: ";
    font-weight: 500;
    margin-right: 4px;
}

/* Registration Number Styling */
.ws-reg-number {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
    color: #495057;
}

/* Narrow # column */
.ws-modern-table th.col-sm-1,
.ws-modern-table td[data-title*="slno"] {
    width: 60px;
    max-width: 60px;
    text-align: center;
}

/* Modern Toggle Switch (Status/Drop) */
.ws-toggle-modern {
    position: relative;
    width: 50px;
    height: 24px;
}

.ws-toggle-modern input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ws-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #CED4DA;
    transition: 0.3s;
    border-radius: 24px;
}

.ws-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .ws-toggle-slider {
    background: #2C5F7C;
}

input:checked + .ws-toggle-slider:before {
    transform: translateX(26px);
}

/* DataTables Modern Styling */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding: 15px 0;
    color: #495057;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 2px solid #E9ECEF;
    border-radius: 6px;
    padding: 6px 12px;
    transition: border-color 0.3s ease;
}

.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #2C5F7C;
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 95, 124, 0.1);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px;
    padding: 8px 14px;
    margin: 0 4px;
    border: 2px solid #E9ECEF;
    background: #FFFFFF;
    color: #495057;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 38px;
    text-align: center;
    display: inline-block;
    box-sizing: border-box;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #2C5F7C;
    color: #FFFFFF;
    border-color: #2C5F7C;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(44, 95, 124, 0.2);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #DC3545;
    color: #FFFFFF;
    border-color: #DC3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    transform: translateY(0);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: #F8F9FA;
    color: #ADB5BD;
    border-color: #E9ECEF;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

/* Fix for pagination wrapper alignment */
.dataTables_wrapper .dataTables_paginate {
    padding: 15px 0;
    text-align: right;
    display: inline-block;
    float: right;
}

.dataTables_wrapper .dataTables_info {
    padding: 15px 0;
    display: inline-block;
    float: left;
    color: #495057;
    font-weight: 500;
    line-height: 38px;
}

.dataTables_wrapper .dataTables_paginate .pagination {
    margin: 0;
    display: inline-flex;
    gap: 4px;
}

/* Clear floats after pagination row */
.dataTables_wrapper .row:after {
    content: "";
    display: table;
    clear: both;
}

/* Empty State Styling */
.ws-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6C757D;
}

.ws-empty-state i {
    font-size: 64px;
    color: #CED4DA;
    margin-bottom: 20px;
}

.ws-empty-state h4 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 10px;
}

.ws-empty-state p {
    color: #6C757D;
    font-size: 14px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ws-control-row {
        flex-direction: column;
    }
    
    .ws-control-item {
        width: 100%;
    }
    
    .ws-control-item-inline {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .ws-control-item-inline .form-control {
        width: 100%;
    }
    
    .ws-section-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .ws-section-actions > * {
        width: 100%;
    }
    
    .ws-modern-tabs .nav-tabs {
        padding: 0 10px;
    }
    
    .ws-modern-tabs .nav-tabs > li > a {
        padding: 12px 12px;
        font-size: 13px;
    }
    
    .ws-modern-tabs .tab-content {
        padding: 15px;
    }
    
    .ws-table-action-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* Page Spacing */
.ws-modern-page .box-body {
    padding: 25px;
}

/* Section Header with Actions */
.ws-section-header {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.ws-section-title {
    color: #495057;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.ws-section-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Modern Form Styling */
.ws-modern-form {
    max-width: 1400px;
}

.ws-modern-form .form-group {
    margin-bottom: 20px;
}

.ws-modern-form .control-label {
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    padding-top: 10px;
    text-align: left;
    margin-bottom: 5px;
}

.ws-modern-form .form-control {
    border-radius: 4px;
    border: 1px solid #DDE2E6;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ws-modern-form .form-control:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.ws-modern-form .input-group-addon {
    background-color: #F8F9FA;
    border-color: #DDE2E6;
    color: #6C757D;
  padding: 0 15px;
  width: 56px;
  min-width: 56px;
  height: 44px;
  line-height: 1;
    text-align: center;
  vertical-align: middle;
}

.ws-modern-form .input-group-addon i {
    font-size: 14px;
  line-height: 1;
}

.ws-modern-form .input-group {
    width: 100%;
    display: table; /* align with Bootstrap input-group layout */
  table-layout: fixed;
}

.ws-modern-form .input-group .form-control {
    border-left: none;
  height: 44px;
}

/* Select2 inside input-group: align borders and sizing */
.ws-modern-form .input-group .select2-container {
    width: 100% !important;
    display: table-cell; /* behave like .form-control inside input-group */
    vertical-align: middle;
}
.ws-modern-form .input-group .select2-container--default .select2-selection--single {
  height: 44px; /* match input height */
    border-left: none; /* remove left border next to addon */
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.ws-modern-form .input-group .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 42px; /* match selection height */
    padding-left: 12px;
}
.ws-modern-form .input-group .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
}

/* Select2 v3 support */
.ws-modern-form .input-group .select2-container .select2-choice {
  height: 44px;
  line-height: 42px;
  padding: 0;
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.ws-modern-form .input-group .select2-container .select2-choice .select2-chosen {
  display: block;
  line-height: 42px;
  padding: 0 12px;
  margin-right: 26px;
}
.ws-modern-form .input-group .select2-container .select2-choice .select2-arrow {
  height: 42px;
}
.ws-modern-form .input-group .select2-container-multi .select2-choices {
  min-height: 44px;
  padding: 4px 8px;
  border-left: none;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.ws-modern-form .input-group .select2-container-multi .select2-choices li {
  float: none;
}
.ws-modern-form .input-group .select2-container-multi .select2-choices .select2-search-field {
  display: flex;
  align-items: center;
  min-height: 30px;
}
.ws-modern-form .input-group .select2-container-multi .select2-choices .select2-search-field input {
  height: 34px;
  line-height: 34px;
  padding: 0 4px;
  margin: 0;
}
.ws-modern-form .input-group .select2-container-multi .select2-choices .select2-search-choice {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 2px 2px 2px 0;
  padding-top: 3px;
  padding-bottom: 3px;
  line-height: 18px;
}
.ws-modern-form .input-group-addon {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.ws-modern-form .select2-container--default .select2-selection--single {
  height: 44px;
    border: 1px solid #DDE2E6;
    border-radius: 4px;
}

.ws-modern-form .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 42px;
    padding-left: 15px;
    color: #495057;
}

.ws-modern-form .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
}

.ws-modern-form .help-block {
    font-size: 12px;
    color: #6C757D;
    margin-top: 5px;
    margin-bottom: 0;
}

.ws-modern-form .has-error .help-block {
    color: #DC3545;
}

.ws-modern-form .has-error .form-control {
    border-color: #DC3545;
}

.ws-modern-form .has-error .form-control:focus {
    border-color: #DC3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.ws-modern-form .has-error .input-group-addon {
    border-color: #DC3545;
    color: #DC3545;
}

.ws-modern-form textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.ws-modern-form .btn-lg {
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
}

.ws-modern-form .btn-success {
    background: linear-gradient(135deg, #28A745 0%, #20A038 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.ws-modern-form .btn-success:hover {
    background: linear-gradient(135deg, #20A038 0%, #1E9535 100%);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.ws-modern-form .btn-default {
    background: #F8F9FA;
    border: 1px solid #DDE2E6;
    color: #495057;
}

.ws-modern-form .btn-default:hover {
    background: #E9ECEF;
    border-color: #CED4DA;
}

/* Form Sections */
.ws-form-section {
    background: #FFFFFF;
    border: 1px solid #E9ECEF;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ws-form-section:last-of-type {
    margin-bottom: 20px;
}

.ws-form-section .ws-section-header {
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #E9ECEF;
    color: #2C5F7C;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ws-form-section .ws-section-header span {
    flex: 1;
}

.ws-form-section .ws-section-header i {
    font-size: 18px;
    color: #4A90E2;
    flex-shrink: 0;
}

/* Field Group Headers within sections */
.ws-form-section h4 {
    color: #2C5F7C;
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e3f2fd;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ws-form-section h4:first-of-type {
    margin-top: 0;
}

.ws-form-section h4 i {
    color: #4A90E2;
    font-size: 16px;
}

/* Add spacing between field rows within cards */
.ws-form-section > .row {
    margin-bottom: 20px;
    margin-left: 0;
    margin-right: 0;
}

.ws-form-section > .row:last-child {
    margin-bottom: 0;
}

/* Add proper spacing for col-sm-6 within form rows */
.ws-form-section .row > .col-sm-6 {
    padding-left: 24px;
    padding-right: 24px;
}

.ws-form-section .row > .col-sm-6:first-child {
    padding-left: 0;
}

.ws-form-section .row > .col-sm-6:last-child {
    padding-right: 0;
}

.ws-form-section .row > .col-sm-12 {
    padding-left: 0;
    padding-right: 0;
}

/* Image Preview Styling */
.ws-modern-form .image-preview-input,
.ws-modern-form .image-preview-input5,
.ws-modern-form .image-preview-input6,
.ws-modern-form .image-preview-input7 {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    border: none;
    color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.ws-modern-form .image-preview-input:hover,
.ws-modern-form .image-preview-input5:hover,
.ws-modern-form .image-preview-input6:hover,
.ws-modern-form .image-preview-input7:hover {
    background: linear-gradient(135deg, #357ABD 0%, #2E6DA4 100%);
}

.ws-modern-form .image-preview-clear,
.ws-modern-form .image-preview-clear5,
.ws-modern-form .image-preview-clear6,
.ws-modern-form .image-preview-clear7 {
    background: #F8F9FA;
    border: 1px solid #DDE2E6;
}

.ws-user-edit-form .form-group,
.ws-user-add-form .form-group,
.ws-student-edit-form .form-group,
.ws-student-add-form .form-group,
.ws-parents-edit-form .form-group,
.ws-parents-add-form .form-group,
.ws-teacher-edit-form .form-group,
.ws-teacher-add-form .form-group,
.ws-classes-edit-form .form-group,
.ws-classes-add-form .form-group,
.ws-section-edit-form .form-group,
.ws-section-add-form .form-group,
.ws-subject-edit-form .form-group,
.ws-subject-add-form .form-group,
.ws-assignment-edit-form .form-group,
.ws-assignment-add-form .form-group,
.ws-routine-edit-form .form-group,
.ws-routine-add-form .form-group,
.ws-syllabus-edit-form .form-group,
.ws-syllabus-add-form .form-group {
  margin-bottom: 12px;
}

.ws-user-edit-form .control-label,
.ws-user-add-form .control-label,
.ws-student-edit-form .control-label,
.ws-student-add-form .control-label,
.ws-parents-edit-form .control-label,
.ws-parents-add-form .control-label,
.ws-teacher-edit-form .control-label,
.ws-teacher-add-form .control-label,
.ws-classes-edit-form .control-label,
.ws-classes-add-form .control-label,
.ws-section-edit-form .control-label,
.ws-section-add-form .control-label,
.ws-subject-edit-form .control-label,
.ws-subject-add-form .control-label,
.ws-assignment-edit-form .control-label,
.ws-assignment-add-form .control-label,
.ws-routine-edit-form .control-label,
.ws-routine-add-form .control-label,
.ws-syllabus-edit-form .control-label,
.ws-syllabus-add-form .control-label {
  padding-top: 0;
  margin-bottom: 6px;
}

.ws-user-edit-form .form-control,
.ws-user-add-form .form-control,
.ws-student-edit-form .form-control,
.ws-student-add-form .form-control,
.ws-parents-edit-form .form-control,
.ws-parents-add-form .form-control,
.ws-teacher-edit-form .form-control,
.ws-teacher-add-form .form-control,
.ws-classes-edit-form .form-control,
.ws-classes-add-form .form-control,
.ws-section-edit-form .form-control,
.ws-section-add-form .form-control,
.ws-subject-edit-form .form-control,
.ws-subject-add-form .form-control,
.ws-assignment-edit-form .form-control,
.ws-assignment-add-form .form-control,
.ws-routine-edit-form .form-control,
.ws-routine-add-form .form-control,
.ws-syllabus-edit-form .form-control,
.ws-syllabus-add-form .form-control {
  height: 44px;
  padding: 9px 14px;
}

.ws-user-edit-form select.form-control,
.ws-user-add-form select.form-control,
.ws-student-edit-form select.form-control,
.ws-student-add-form select.form-control,
.ws-parents-edit-form select.form-control,
.ws-parents-add-form select.form-control,
.ws-teacher-edit-form select.form-control,
.ws-teacher-add-form select.form-control,
.ws-classes-edit-form select.form-control,
.ws-classes-add-form select.form-control,
.ws-section-edit-form select.form-control,
.ws-section-add-form select.form-control,
.ws-subject-edit-form select.form-control,
.ws-subject-add-form select.form-control,
.ws-assignment-edit-form select.form-control,
.ws-assignment-add-form select.form-control,
.ws-routine-edit-form select.form-control,
.ws-routine-add-form select.form-control,
.ws-syllabus-edit-form select.form-control,
.ws-syllabus-add-form select.form-control {
  padding-top: 0;
  padding-bottom: 0;
}

.ws-user-edit-form .input-group-addon,
.ws-user-add-form .input-group-addon,
.ws-student-edit-form .input-group-addon,
.ws-student-add-form .input-group-addon,
.ws-parents-edit-form .input-group-addon,
.ws-parents-add-form .input-group-addon,
.ws-teacher-edit-form .input-group-addon,
.ws-teacher-add-form .input-group-addon,
.ws-classes-edit-form .input-group-addon,
.ws-classes-add-form .input-group-addon,
.ws-section-edit-form .input-group-addon,
.ws-section-add-form .input-group-addon,
.ws-subject-edit-form .input-group-addon,
.ws-subject-add-form .input-group-addon,
.ws-assignment-edit-form .input-group-addon,
.ws-assignment-add-form .input-group-addon,
.ws-routine-edit-form .input-group-addon,
.ws-routine-add-form .input-group-addon,
.ws-syllabus-edit-form .input-group-addon,
.ws-syllabus-add-form .input-group-addon {
  height: 44px;
  padding: 0 14px;
  line-height: 1;
  vertical-align: middle;
}

.ws-user-edit-form .input-group-addon i,
.ws-user-add-form .input-group-addon i,
.ws-student-edit-form .input-group-addon i,
.ws-student-add-form .input-group-addon i,
.ws-parents-edit-form .input-group-addon i,
.ws-parents-add-form .input-group-addon i,
.ws-teacher-edit-form .input-group-addon i,
.ws-teacher-add-form .input-group-addon i,
.ws-classes-edit-form .input-group-addon i,
.ws-classes-add-form .input-group-addon i,
.ws-section-edit-form .input-group-addon i,
.ws-section-add-form .input-group-addon i,
.ws-subject-edit-form .input-group-addon i,
.ws-subject-add-form .input-group-addon i,
.ws-assignment-edit-form .input-group-addon i,
.ws-assignment-add-form .input-group-addon i,
.ws-routine-edit-form .input-group-addon i,
.ws-routine-add-form .input-group-addon i,
.ws-syllabus-edit-form .input-group-addon i,
.ws-syllabus-add-form .input-group-addon i {
  line-height: 1;
}

.ws-user-edit-form .input-group-btn > .btn,
.ws-user-edit-form .image-preview-input,
.ws-user-add-form .input-group-btn > .btn,
.ws-user-add-form .image-preview-input,
.ws-student-edit-form .input-group-btn > .btn,
.ws-student-edit-form .image-preview-input,
.ws-student-add-form .input-group-btn > .btn,
.ws-student-add-form .image-preview-input,
.ws-parents-edit-form .input-group-btn > .btn,
.ws-parents-edit-form .image-preview-input,
.ws-parents-add-form .input-group-btn > .btn,
.ws-parents-add-form .image-preview-input,
.ws-teacher-edit-form .input-group-btn > .btn,
.ws-teacher-edit-form .image-preview-input,
.ws-teacher-add-form .input-group-btn > .btn,
.ws-teacher-add-form .image-preview-input,
.ws-classes-edit-form .input-group-btn > .btn,
.ws-classes-edit-form .image-preview-input,
.ws-classes-add-form .input-group-btn > .btn,
.ws-classes-add-form .image-preview-input,
.ws-section-edit-form .input-group-btn > .btn,
.ws-section-edit-form .image-preview-input,
.ws-section-add-form .input-group-btn > .btn,
.ws-section-add-form .image-preview-input,
.ws-subject-edit-form .input-group-btn > .btn,
.ws-subject-edit-form .image-preview-input,
.ws-subject-add-form .input-group-btn > .btn,
.ws-subject-add-form .image-preview-input,
.ws-assignment-edit-form .input-group-btn > .btn,
.ws-assignment-edit-form .image-preview-input,
.ws-assignment-add-form .input-group-btn > .btn,
.ws-assignment-add-form .image-preview-input,
.ws-routine-edit-form .input-group-btn > .btn,
.ws-routine-edit-form .image-preview-input,
.ws-routine-add-form .input-group-btn > .btn,
.ws-routine-add-form .image-preview-input,
.ws-syllabus-edit-form .input-group-btn > .btn,
.ws-syllabus-edit-form .image-preview-input,
.ws-syllabus-add-form .input-group-btn > .btn,
.ws-syllabus-add-form .image-preview-input {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ws-user-edit-form .ws-form-section,
.ws-user-add-form .ws-form-section,
.ws-student-edit-form .ws-form-section,
.ws-student-add-form .ws-form-section,
.ws-parents-edit-form .ws-form-section,
.ws-parents-add-form .ws-form-section,
.ws-teacher-edit-form .ws-form-section,
.ws-teacher-add-form .ws-form-section,
.ws-classes-edit-form .ws-form-section,
.ws-classes-add-form .ws-form-section,
.ws-section-edit-form .ws-form-section,
.ws-section-add-form .ws-form-section,
.ws-subject-edit-form .ws-form-section,
.ws-subject-add-form .ws-form-section,
.ws-assignment-edit-form .ws-form-section,
.ws-assignment-add-form .ws-form-section,
.ws-routine-edit-form .ws-form-section,
.ws-routine-add-form .ws-form-section,
.ws-syllabus-edit-form .ws-form-section,
.ws-syllabus-add-form .ws-form-section {
  padding: 26px;
}

.ws-user-edit-form .ws-form-section > .row,
.ws-user-add-form .ws-form-section > .row,
.ws-student-edit-form .ws-form-section > .row,
.ws-student-add-form .ws-form-section > .row,
.ws-parents-edit-form .ws-form-section > .row,
.ws-parents-add-form .ws-form-section > .row,
.ws-teacher-edit-form .ws-form-section > .row,
.ws-teacher-add-form .ws-form-section > .row,
.ws-classes-edit-form .ws-form-section > .row,
.ws-classes-add-form .ws-form-section > .row,
.ws-section-edit-form .ws-form-section > .row,
.ws-section-add-form .ws-form-section > .row,
.ws-subject-edit-form .ws-form-section > .row,
.ws-subject-add-form .ws-form-section > .row,
.ws-assignment-edit-form .ws-form-section > .row,
.ws-assignment-add-form .ws-form-section > .row,
.ws-routine-edit-form .ws-form-section > .row,
.ws-routine-add-form .ws-form-section > .row,
.ws-syllabus-edit-form .ws-form-section > .row,
.ws-syllabus-add-form .ws-form-section > .row {
  margin-bottom: 10px;
}

.ws-syllabus-edit-form .image-preview,
.ws-syllabus-add-form .image-preview {
  display: table;
  table-layout: fixed;
  width: 100%;
}

.ws-assignment-edit-form .image-preview,
.ws-assignment-add-form .image-preview {
  display: flex;
  align-items: stretch;
  table-layout: auto;
}

.ws-assignment-edit-form .image-preview .input-group-addon,
.ws-assignment-add-form .image-preview .input-group-addon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 56px;
}

.ws-assignment-edit-form .image-preview .image-preview-filename,
.ws-assignment-add-form .image-preview .image-preview-filename {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.ws-assignment-edit-form .image-preview .input-group-btn,
.ws-assignment-add-form .image-preview .input-group-btn {
  display: inline-flex;
  flex: 0 0 auto;
  width: auto;
}

.ws-assignment-edit-form .image-preview-filename,
.ws-assignment-add-form .image-preview-filename,
.ws-syllabus-edit-form .image-preview-filename,
.ws-syllabus-add-form .image-preview-filename {
  border-left: none;
}

.ws-subject-teacher-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ws-routine-tabs .nav-tabs {
  border-bottom: 1px solid #E9ECEF;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 12px 0;
}

.ws-routine-tabs .nav-tabs > li > a {
  border: 1px solid #E9ECEF;
  border-radius: 6px 6px 0 0;
  color: #495057;
  font-weight: 600;
}

.ws-routine-tabs .nav-tabs > li.active > a,
.ws-routine-tabs .nav-tabs > li.active > a:focus,
.ws-routine-tabs .nav-tabs > li.active > a:hover {
  background: #2C5F7C;
  border-color: #2C5F7C;
  color: #FFFFFF;
}

.ws-routine-table-wrap {
  overflow-x: auto;
}

.ws-routine-table {
  border-collapse: separate;
  border-spacing: 0 10px;
  min-width: 760px;
  margin-bottom: 0;
}

.ws-routine-table > tbody > tr > td {
  border: 1px solid #E9ECEF;
  vertical-align: middle;
  background: #FFFFFF;
}

.ws-routine-day {
  min-width: 140px;
  color: #2C5F7C;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #F7FBFD !important;
}

.ws-routine-cell {
  min-width: 220px;
}

.ws-routine-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.ws-routine-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 5px;
  background: #E3F2FD;
  color: #1976D2;
  font-size: 12px;
  font-weight: 800;
}

.ws-routine-subject {
  color: #212529;
  font-size: 15px;
  font-weight: 700;
}

.ws-routine-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6C757D;
  font-size: 12px;
  font-weight: 600;
}

.ws-routine-empty {
  color: #ADB5BD;
  font-weight: 700;
  background: #F8F9FA !important;
}

.ws-section-signature-thumb {
  max-width: 120px;
  max-height: 42px;
  padding: 4px 8px;
  border: 1px solid #E9ECEF;
  border-radius: 6px;
  background: #FFFFFF;
}

.ws-section-signature-preview {
  display: inline-flex;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #E9ECEF;
  border-radius: 8px;
  background: #F8F9FA;
}

.ws-section-signature-preview img {
  max-width: 180px;
  max-height: 70px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ws-form-section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .ws-modern-form .col-sm-3,
    .ws-modern-form .col-sm-8,
    .ws-modern-form .col-sm-12 {
        width: 100%;
    }
    
    .ws-modern-form .control-label {
        text-align: left;
        margin-bottom: 8px;
    }
    
    .ws-modern-form .btn-lg {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Two Column Card Layout */
.ws-modern-form > .row {
    margin-bottom: 20px;
}

.ws-modern-form > .row:last-child {
    margin-bottom: 0;
}

.ws-modern-form .row > .col-md-6 {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.ws-modern-form .row > .col-md-6 > .ws-form-section {
    flex: 1;
}

@media (min-width: 992px) {
    .ws-modern-form .row {
        display: flex;
        flex-wrap: wrap;
    }
    
    .ws-modern-form .row > .col-md-6 {
        display: flex;
    }
}

/* ============================================
   MODERN TOPBAR & NAVIGATION STYLES
   ============================================ */

/* Modern Topbar Styling */
.ws-topbar-modern {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-bottom: 1px solid #E9ECEF;
}

.ws-topbar-logo {
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
  border-right: 1px solid #E9ECEF;
}

.ws-topbar-logo:hover {
  background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
}

.ws-topbar-logo img {
  max-height: 40px;
  transition: transform 0.3s ease;
}

.ws-topbar-logo:hover img {
  transform: scale(1.05);
}

.ws-topbar-label {
  font-size: 16px;
  font-weight: 600;
  color: #2C3E50;
  transition: color 0.3s ease;
  font-family: 'OpenSans Regular';
}

.ws-topbar-label:hover {
  color: #17A2B8;
  text-decoration: none;
}

.ws-topbar-nav {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 16px;
  min-height: 60px;
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
  position: relative;
}

.ws-topbar-primary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.ws-topbar-current-year {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #E2E8F0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  color: #334155;
  font-family: 'OpenSans Regular';
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.ws-topbar-current-year i {
  color: #17A2B8;
  font-size: 14px;
}

.ws-topbar-nav .nav > li > a {
  color: #495057;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 0 5px;
}

.ws-topbar-nav .nav > li > a:hover {
  background-color: #F8F9FA;
  color: #17A2B8;
}

.ws-topbar-nav .nav > li > a i {
  font-size: 18px;
}

.ws-topbar-right {
  flex: 0 0 auto;
  margin-left: auto;
  margin-right: 0 !important;
}

.ws-topbar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 0;
}

.ws-topbar-nav .navbar-right {
  float: none !important;
  margin: 0 0 0 auto !important;
  display: flex;
  align-items: center;
}

.ws-topbar-nav .navbar-nav {
  float: none !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
}

.ws-topbar-nav .navbar-nav > li {
  float: none !important;
  display: flex;
  align-items: center;
}

/* Modern Dropdown Menu */
.ws-dropdown-modern {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  border: 1px solid #E9ECEF;
  padding: 0;
  overflow: hidden;
  min-width: 220px;
}

.ws-dropdown-modern > li {
  list-style: none;
}

.ws-dropdown-modern > li > a {
  color: #495057;
  padding: 10px 20px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ws-dropdown-modern > li > a:hover {
  background-color: #F8F9FA;
  color: #17A2B8;
  padding-left: 25px;
}

.ws-dropdown-modern > li > a i {
  width: 24px;
  text-align: center;
  font-size: 16px;
}

.ws-dropdown-modern .header {
  padding: 15px 20px;
  background: linear-gradient(135deg, #17A2B8 0%, #138496 100%);
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 0;
  margin: 0;
}

.ws-dropdown-modern > li:not(.header) {
  border-bottom: 1px solid #F1F3F5;
}

.ws-dropdown-modern > li:last-child {
  border-bottom: none;
}

/* Handle nested menu within dropdown */
.ws-dropdown-modern > li > .menu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 400px;
  overflow-y: auto;
}

.ws-dropdown-modern > li > .menu > li {
  list-style: none;
  border-bottom: 1px solid #F1F3F5;
}

.ws-dropdown-modern > li > .menu > li:last-child {
  border-bottom: none;
}

/* Language Dropdown Styling */
.ws-language-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #495057;
}

.ws-language-item:hover {
  background-color: #F8F9FA;
  padding-left: 25px;
  text-decoration: none;
}

.ws-language-item:focus {
  text-decoration: none;
  outline: none;
}

.ws-language-item img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #E9ECEF;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.ws-language-item:hover img {
  border-color: #17A2B8;
  transform: scale(1.05);
}

.ws-language-item h4 {
  margin: 0;
  font-size: 14px;
  color: #495057;
  font-weight: 600;
  transition: color 0.3s ease;
  flex: 1;
}

.ws-language-item:hover h4 {
  color: #17A2B8;
}

.ws-language-item i.fa-check {
  color: #17A2B8;
  font-size: 16px;
  margin-left: auto;
}

/* User Dropdown Menu */
.ws-user-dropdown {
  min-width: 240px;
  border-radius: 12px;
  overflow: hidden;
}

.ws-user-dropdown .user-body {
  padding: 20px 15px;
  display: flex;
  justify-content: space-around;
  gap: 10px;
  background: #FFFFFF;
  border-bottom: 1px solid #E9ECEF;
}

.ws-user-dropdown .user-body > div {
  flex: 1;
}

.ws-user-dropdown .user-body a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #495057;
  transition: all 0.3s ease;
  padding: 12px 8px;
  border-radius: 8px;
  text-decoration: none;
  background: #F8F9FA;
}

.ws-user-dropdown .user-body a:hover {
  background: linear-gradient(135deg, #17A2B8 0%, #138496 100%);
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
  text-decoration: none;
}

.ws-user-dropdown .user-body i {
  font-size: 20px;
  margin-bottom: 6px;
  display: block;
}

.ws-user-dropdown .user-body a:hover i {
  transform: scale(1.1);
}

.ws-user-dropdown .user-footer {
  background: linear-gradient(135deg, #DC3545 0%, #C82333 100%);
  padding: 0;
  text-align: center;
  margin: 0;
}

.ws-user-dropdown .user-footer a {
  color: #FFFFFF;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  text-decoration: none;
  gap: 8px;
}

.ws-user-dropdown .user-footer a:hover {
  background: linear-gradient(135deg, #C82333 0%, #BD2130 100%);
  text-decoration: none;
}

.ws-user-dropdown .user-footer a:hover i {
  transform: translateX(3px);
}

.ws-user-dropdown .user-footer i {
  transition: transform 0.3s ease;
  font-size: 16px;
}

/* Sidebar Toggle Button */
.ws-sidebar-toggle {
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 8px;
  display: inline-block;
}

.ws-sidebar-toggle:hover {
  background-color: #F8F9FA;
}

.ws-sidebar-toggle .icon-bar {
  background-color: #495057;
  transition: all 0.3s ease;
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
}

.ws-sidebar-toggle .icon-bar + .icon-bar {
  margin-top: 4px;
}

.ws-sidebar-toggle:hover .icon-bar {
  background-color: #17A2B8;
}

@media (max-width: 768px) {
  .ws-sidebar-toggle {
    padding: 6px;
  }
  
  .ws-sidebar-toggle .icon-bar {
    width: 20px;
  }
}

@media (max-width: 480px) {
  .ws-sidebar-toggle {
    padding: 5px;
  }
  
  .ws-sidebar-toggle .icon-bar {
    width: 18px;
    height: 2px;
  }
  
  .ws-sidebar-toggle .icon-bar + .icon-bar {
    margin-top: 3px;
  }
}

/* User Image in Topbar */
.ws-user-image {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #E9ECEF;
  transition: all 0.3s ease;
}

.ws-user-image:hover {
  border-color: #17A2B8;
  transform: scale(1.1);
}

/* Notification Badge */
.ws-notification-badge {
  background: linear-gradient(135deg, #DC3545 0%, #C82333 100%);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 10px;
  position: absolute;
  top: 8px;
  right: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* School Year Selector */
.ws-schoolyear-selector {
  transition: all 0.3s ease;
}

.ws-schoolyear-selector:hover {
  background-color: #F8F9FA;
  border-radius: 8px;
}

/* Topbar Icon Styling */
.ws-topbar-nav .nav > li > a .fa-globe,
.ws-topbar-nav .nav > li > a .fa-bell-o {
  color: #495057;
  transition: color 0.3s ease;
}

.ws-topbar-nav .nav > li > a:hover .fa-globe,
.ws-topbar-nav .nav > li > a:hover .fa-bell-o {
  color: #17A2B8;
}

/* Responsive Topbar Adjustments */
@media (max-width: 991px) {
  .ws-topbar-modern {
    position: relative;
  }
  
  .ws-topbar-logo {
    width: auto;
    border-right: none;
    border-bottom: none;
    padding: 10px;
    max-width: 200px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .ws-topbar-logo img {
    max-height: 40px;
  }
  
  .ws-topbar-label {
    display: block;
    font-size: 15px;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
  }
  
  .ws-topbar-nav {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .ws-topbar-nav .navbar-right {
    display: flex;
    align-items: center;
  }
  
  .ws-topbar-nav .nav > li > a {
    padding: 10px 12px;
    margin: 0 2px;
  }
}

/* Keep the brand, navigation, academic year, and account controls on one
   compact row. The legacy header rules otherwise place the logo above the
   navbar between tablet and desktop widths. */
@media (min-width: 900px) {
  body > .header.ws-topbar-modern {
    display: flex;
    align-items: stretch;
    min-height: 64px;
    height: 64px;
  }

  body > .header.ws-topbar-modern .ws-topbar-logo {
    flex: 0 0 180px;
    width: 180px !important;
    min-height: 64px;
    height: 64px !important;
    padding: 8px 14px !important;
    float: none !important;
    display: flex !important;
    border-right: 1px solid #E9ECEF;
    border-bottom: 0;
  }

  body > .header.ws-topbar-modern .ws-topbar-logo img.logoimg {
    max-width: 100%;
    max-height: 42px;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    object-fit: contain;
  }

  body > .header.ws-topbar-modern .navbar.ws-topbar-nav {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    min-height: 64px;
    height: 64px !important;
    margin-left: 0 !important;
  }
}

@media (min-width: 900px) and (max-width: 991px) {
  body > .header.ws-topbar-modern .ws-topbar-primary {
    flex: 0 1 220px;
  }

  body > .header.ws-topbar-modern .ws-topbar-label {
    max-width: 155px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body > .header.ws-topbar-modern .ws-topbar-nav {
    gap: 10px;
    padding: 8px 12px;
  }

  body > .header.ws-topbar-modern .ws-topbar-controls {
    gap: 4px;
  }

  body > .header.ws-topbar-modern .ws-topbar-user-name {
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 899px) {
  .header.ws-topbar-modern {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #FFFFFF;
    border-bottom: 1px solid #E5EAF0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
  }
  
  /* Top section with logo and school name */
  body > .header.ws-topbar-modern .ws-topbar-logo {
    justify-content: center;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px;
    padding: 6px 16px !important;
    line-height: 1 !important;
    max-width: none;
    border-bottom: 1px solid #E9ECEF;
    border-right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    order: 1;
  }
  
  body > .header.ws-topbar-modern .ws-topbar-logo img.logoimg {
    width: auto !important;
    height: auto !important;
    max-width: min(260px, 76vw);
    max-height: 36px;
    margin: 0 !important;
    float: none !important;
    object-fit: contain;
  }
  
  .ws-topbar-label {
    display: block;
    font-size: 15px;
    padding: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
  }
  
  /* Bottom section with hamburger and navigation icons */
  .navbar.ws-topbar-nav {
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
    min-height: 0;
    height: auto !important;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    align-items: center;
    gap: 8px 10px;
    padding: 8px 10px 10px;
    order: 2;
  }

  .navbar.ws-topbar-nav::before,
  .navbar.ws-topbar-nav::after {
    display: none;
  }

  .navbar.ws-topbar-nav .ws-topbar-label {
    display: none;
  }

  .navbar.ws-topbar-nav .ws-topbar-primary {
    grid-column: 1;
    grid-row: 1;
    order: 1;
    flex: 0 0 auto;
    min-width: 0;
    height: 38px;
    align-items: center;
  }

  .ws-topbar-current-year {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    order: 3;
    flex: none;
    position: static;
    transform: none;
    margin: 0;
    max-width: 100%;
    min-height: 28px;
    padding: 6px 10px;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  }
  
  body > .header.ws-topbar-modern .navbar.ws-topbar-nav .ws-sidebar-toggle {
    padding: 0 12px 0 40px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 40px;
    height: 38px;
    position: relative;
    z-index: 2;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 999px;
  }

  .ws-sidebar-toggle .icon-bar {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 2px;
    margin: 0 !important;
    background: #2C5F7C;
  }

  .ws-sidebar-toggle .icon-bar:nth-of-type(2) {
    top: 12px;
  }

  .ws-sidebar-toggle .icon-bar:nth-of-type(3) {
    top: 18px;
  }

  .ws-sidebar-toggle .icon-bar:nth-of-type(4) {
    top: 24px;
  }
  
  .ws-sidebar-toggle::after {
    content: 'Menu';
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    font-size: 14px;
    line-height: 1;
    color: #2C5F7C;
    font-weight: 600;
  }

  body > .header .navbar.ws-topbar-nav .ws-sidebar-toggle {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 999px !important;
  }

  body > .header .navbar.ws-topbar-nav .ws-sidebar-toggle:hover,
  body > .header .navbar.ws-topbar-nav .ws-sidebar-toggle:focus {
    background: #EAF3F8 !important;
    border-color: #BFD5E3 !important;
  }

  body > .header .navbar.ws-topbar-nav .ws-sidebar-toggle .icon-bar {
    width: 18px !important;
    background: #2C5F7C !important;
  }
  
  /* Navigation icons on the right */
  .ws-topbar-nav .navbar-right {
    grid-column: 3;
    grid-row: 1;
    order: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0 !important;
    gap: 6px;
    min-width: 0;
  }
  
  .ws-topbar-nav .nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }
  
  .ws-topbar-nav .nav > li {
    float: none;
    display: inline-block;
    margin: 0;
  }
  
  .ws-topbar-nav .nav > li > a {
    width: 38px;
    height: 38px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
  }
  
  .ws-topbar-nav .nav > li > a i {
    font-size: 20px;
  }
  
  .ws-user-image {
    width: 34px;
    height: 34px;
  }

  .row-offcanvas-left.active .left-side.sidebar-offcanvas {
    left: -220px !important;
    width: 220px;
    margin-top: 0 !important;
    top: 0;
    bottom: 0;
    z-index: 1025;
    background: #1A2229;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .row-offcanvas-left.active .left-side.sidebar-offcanvas .sidebar {
    padding: 12px 10px 18px;
  }

  .row-offcanvas-left.active .left-side.sidebar-offcanvas .user-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    padding: 12px;
    background: #24313B;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
  }

  .row-offcanvas-left.active .left-side.sidebar-offcanvas .user-panel::before,
  .row-offcanvas-left.active .left-side.sidebar-offcanvas .user-panel::after {
    display: none;
  }

  .row-offcanvas-left.active .left-side.sidebar-offcanvas .user-panel .image,
  .row-offcanvas-left.active .left-side.sidebar-offcanvas .user-panel .info {
    float: none !important;
  }

  .row-offcanvas-left.active .left-side.sidebar-offcanvas .user-panel .image img {
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.16);
  }

  .row-offcanvas-left.active .left-side.sidebar-offcanvas .user-panel .info {
    min-width: 0;
    padding: 0;
  }

  .row-offcanvas-left.active .left-side.sidebar-offcanvas .user-panel .info p {
    margin: 0 0 5px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .row-offcanvas-left.active .left-side.sidebar-offcanvas .user-panel .info a {
    color: #B7C6D6;
    font-size: 12px;
    line-height: 1.2;
  }

  .row-offcanvas-left.active .left-side.sidebar-offcanvas .sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .row-offcanvas-left.active .left-side.sidebar-offcanvas .sidebar-menu > li > a,
  .row-offcanvas-left.active .left-side.sidebar-offcanvas .treeview-menu > li > a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 7px;
    color: #B7C6D6;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
  }

  .row-offcanvas-left.active .left-side.sidebar-offcanvas .sidebar-menu > li > a > .fa,
  .row-offcanvas-left.active .left-side.sidebar-offcanvas .treeview-menu > li > a > .fa {
    flex: 0 0 24px;
    width: 24px;
    color: #7FA4C7;
    font-size: 15px;
  }

  .row-offcanvas-left.active .left-side.sidebar-offcanvas .sidebar-menu > li > a > span,
  .row-offcanvas-left.active .left-side.sidebar-offcanvas .treeview-menu > li > a > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .row-offcanvas-left.active .left-side.sidebar-offcanvas .sidebar-menu > li > a:hover,
  .row-offcanvas-left.active .left-side.sidebar-offcanvas .sidebar-menu > li.active > a,
  .row-offcanvas-left.active .left-side.sidebar-offcanvas .treeview-menu > li > a:hover,
  .row-offcanvas-left.active .left-side.sidebar-offcanvas .treeview-menu > li.active > a {
    color: #FFFFFF !important;
    background: #2C5F7C !important;
  }

  .row-offcanvas-left.active .left-side.sidebar-offcanvas .sidebar-menu > li > a:hover > .fa,
  .row-offcanvas-left.active .left-side.sidebar-offcanvas .sidebar-menu > li.active > a > .fa,
  .row-offcanvas-left.active .left-side.sidebar-offcanvas .treeview-menu > li > a:hover > .fa,
  .row-offcanvas-left.active .left-side.sidebar-offcanvas .treeview-menu > li.active > a > .fa {
    color: #FFFFFF;
  }

  .row-offcanvas-left.active .left-side.sidebar-offcanvas .treeview-menu {
    margin: 4px 0 6px;
    padding-left: 12px;
    background: transparent !important;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }

  .row-offcanvas-left.active .left-side.sidebar-offcanvas .treeview-menu > li {
    background: transparent;
  }

  .row-offcanvas-left.active.relative {
    overflow: visible !important;
  }

  body.fixed .row-offcanvas-left.active .left-side.sidebar-offcanvas {
    left: 0 !important;
    top: 153px;
  }

  .row-offcanvas-left.active .left-side.sidebar-offcanvas .sidebar,
  .row-offcanvas-left.active .left-side.sidebar-offcanvas .user-panel,
  .row-offcanvas-left.active .left-side.sidebar-offcanvas .sidebar-menu {
    visibility: visible;
  }

}

@media screen and (max-width: 992px) {
  .row-offcanvas-left.active,
  .row-offcanvas-left.active.relative {
    overflow: visible !important;
  }
}

@media (max-width: 480px) {
  .ws-topbar-modern {
    padding: 0;
  }
  
  .ws-topbar-logo {
    padding: 10px 8px;
    gap: 10px;
  }
  
  .ws-topbar-logo img {
    max-height: 45px;
  }
  
  .ws-topbar-label {
    font-size: 14px;
  }
  
  .ws-sidebar-toggle {
    padding: 6px;
  }
  
  .ws-sidebar-toggle::after {
    font-size: 13px;
  }
  
  .navbar.ws-topbar-nav {
    padding: 8px;
  }

  .ws-topbar-current-year {
    font-size: 13px;
    padding: 7px 12px;
  }
  
  .ws-topbar-nav .navbar-right {
    gap: 6px;
  }
  
  .ws-topbar-nav .nav {
    gap: 6px;
  }
  
  .ws-topbar-nav .nav > li > a {
    padding: 6px;
  }
  
  .ws-topbar-nav .nav > li > a i {
    font-size: 18px;
  }
  
  .ws-user-image {
    width: 32px;
    height: 32px;
  }
  
  .ws-topbar-nav .user-menu > a > span {
    display: none;
  }

  body.fixed .row-offcanvas-left.active .left-side.sidebar-offcanvas {
    top: 142px;
  }
}

@media (max-width: 360px) {
  .ws-topbar-current-year {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
  }
}

/* Enhance existing navbar compatibility */
.navbar-nav > .notifications-menu > .dropdown-menu.ws-dropdown-modern,
.navbar-nav > .user-menu > .dropdown-menu.ws-dropdown-modern {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  margin-top: 0;
}

.navbar-nav > .notifications-menu > .dropdown-menu.ws-dropdown-modern {
  width: auto;
  min-width: 280px;
  max-width: 320px;
}

/* Fix for language dropdown positioning */
.navbar-nav > .notifications-menu.ws-schoolyear-selector > .dropdown-menu {
  right: 0;
  left: auto;
}

/* Responsive Dropdown Adjustments */
@media (max-width: 899px) {
  .ws-dropdown-modern {
    border-radius: 8px;
    min-width: 200px;
    max-width: 90vw;
  }
  
  .ws-dropdown-modern .header {
    padding: 12px 15px;
    font-size: 13px;
  }
  
  .ws-language-item {
    padding: 10px 15px;
  }
  
  .ws-language-item img {
    width: 24px;
    height: 24px;
  }
  
  .ws-language-item h4 {
    font-size: 13px;
  }
  
  .ws-user-dropdown {
    min-width: 200px;
    max-width: 90vw;
  }
  
  .ws-user-dropdown .user-body {
    padding: 15px 10px;
    gap: 8px;
  }
  
  .ws-user-dropdown .user-body a {
    padding: 10px 6px;
    font-size: 12px;
  }
  
  .ws-user-dropdown .user-body i {
    font-size: 18px;
  }
  
  .ws-user-dropdown .user-footer a {
    padding: 12px;
    font-size: 13px;
  }
  
  /* Ensure dropdowns don't overflow screen */
  .navbar-nav > .dropdown > .dropdown-menu {
    position: absolute !important;
  }
  
  .navbar-nav > .notifications-menu > .dropdown-menu.ws-dropdown-modern {
    min-width: 240px;
    max-width: calc(100vw - 20px);
    right: 10px;
  }
  
  .navbar-nav > .user-menu > .dropdown-menu.ws-dropdown-modern {
    right: 10px;
    left: auto;
  }
}

@media (max-width: 480px) {
  .ws-dropdown-modern {
    min-width: 180px;
    max-width: calc(100vw - 30px);
  }
  
  .ws-dropdown-modern .header {
    padding: 10px 12px;
    font-size: 12px;
  }
  
  .ws-language-item {
    padding: 8px 12px;
  }
  
  .ws-language-item:hover {
    padding-left: 16px;
  }
  
  .ws-language-item img {
    width: 22px;
    height: 22px;
  }
  
  .ws-language-item h4 {
    font-size: 12px;
  }
  
  .ws-language-item i.fa-check {
    font-size: 14px;
  }
  
  .ws-user-dropdown {
    min-width: 180px;
  }
  
  .ws-user-dropdown .user-body {
    flex-direction: column;
    padding: 12px 8px;
    gap: 8px;
  }
  
  .ws-user-dropdown .user-body > div {
    width: 100%;
  }
  
  .ws-user-dropdown .user-body a {
    flex-direction: row;
    justify-content: flex-start;
    padding: 10px 12px;
    gap: 10px;
  }
  
  .ws-user-dropdown .user-body i {
    font-size: 16px;
    margin-bottom: 0;
  }
  
  .ws-user-dropdown .user-footer a {
    padding: 10px;
    font-size: 12px;
  }
  
  .ws-dropdown-modern > li > .menu {
    max-height: 300px;
  }
  
  /* Prevent dropdown from going off-screen */
  .navbar-nav > .notifications-menu > .dropdown-menu,
  .navbar-nav > .user-menu > .dropdown-menu {
    right: 5px !important;
    left: auto !important;
  }
}

@media (max-width: 360px) {
  .ws-dropdown-modern {
    min-width: 160px;
  }
  
  .ws-language-item {
    padding: 6px 10px;
    gap: 8px;
  }
  
  .ws-language-item img {
    width: 20px;
    height: 20px;
  }
  
  .ws-language-item h4 {
    font-size: 11px;
  }
  
  .ws-user-dropdown {
    min-width: 160px;
  }
  
  .ws-user-dropdown .user-body a {
    padding: 8px 10px;
    font-size: 11px;
  }
}

/* Override old language image styling */
.language-img.ws-topbar-language {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #E9ECEF;
  transition: all 0.3s ease;
}

.language-img.ws-topbar-language:hover {
  border-color: #17A2B8;
  transform: scale(1.1);
}

/* Touch-friendly interactions for mobile */
@media (max-width: 899px) {
  .ws-language-item,
  .ws-user-dropdown .user-body a,
  .ws-user-dropdown .user-footer a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Prevent zoom on input focus for iOS */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px;
  }
}

/* Fix for overflow issues on small screens */
@media (max-width: 991px) {
  .header.ws-topbar-modern {
    max-height: none;
    height: auto;
  }
  
  .navbar.ws-topbar-nav {
    margin-left: 0;
    height: auto;
  }
  
  body > .header .navbar {
    margin-left: 0 !important;
  }
}

/* Landscape mobile adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .ws-dropdown-modern > li > .menu {
    max-height: 200px;
  }
  
  .ws-user-dropdown .user-body {
    padding: 10px 8px;
  }
  
  .ws-user-dropdown .user-body a {
    padding: 8px 6px;
  }
}

/* Custom scrollbar for dropdown menus */
.ws-dropdown-modern > li > .menu::-webkit-scrollbar {
  width: 6px;
}

.ws-dropdown-modern > li > .menu::-webkit-scrollbar-track {
  background: #F8F9FA;
}

.ws-dropdown-modern > li > .menu::-webkit-scrollbar-thumb {
  background: #CBD5E0;
  border-radius: 3px;
}

.ws-dropdown-modern > li > .menu::-webkit-scrollbar-thumb:hover {
  background: #17A2B8;
}

/* Dropdown animation */
.dropdown-menu.ws-dropdown-modern {
  animation: dropdownSlideIn 0.3s ease-out;
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fix footer styling in dropdowns */
.ws-dropdown-modern > li.footer {
  padding: 12px 20px;
  background: #F8F9FA;
  text-align: center;
  border-top: 1px solid #E9ECEF;
}

.ws-dropdown-modern > li.footer a {
  color: #17A2B8;
  font-weight: 600;
  text-decoration: none;
  display: block;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.ws-dropdown-modern > li.footer a:hover {
  background: #17A2B8;
  color: #FFFFFF;
  text-decoration: none;
}

/* ===================================
   DataTables Responsive Pagination
   =================================== */

/* Responsive pagination for mobile devices */
@media screen and (max-width: 768px) {
    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 4px 8px !important;
        font-size: 11px !important;
        margin: 2px 1px !important;
    }
    
    .dataTables_wrapper .dataTables_paginate {
        font-size: 11px !important;
        margin-top: 10px !important;
        width: 100% !important;
    }
    
    .dataTables_wrapper .dataTables_paginate .pagination {
        flex-wrap: wrap !important;
        justify-content: center !important;
        margin: 0 !important;
    }
    
    .dataTables_wrapper .dataTables_info {
        font-size: 11px !important;
    }
    
    .dataTables_wrapper .dataTables_length select {
        font-size: 11px !important;
        padding: 2px 4px !important;
    }
}

@media screen and (max-width: 480px) {
    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 3px 6px !important;
        font-size: 10px !important;
        margin: 2px 1px !important;
    }
    
    .dataTables_wrapper .dataTables_paginate {
        font-size: 10px !important;
        width: 100% !important;
        padding: 5px 0 !important;
    }
    
    .dataTables_wrapper .dataTables_paginate .pagination {
        flex-wrap: wrap !important;
        justify-content: center !important;
        margin: 0 !important;
        display: flex !important;
    }
    
    .dataTables_wrapper .dataTables_info {
        font-size: 10px !important;
        padding: 5px 0 !important;
    }
    
    .dataTables_wrapper .dataTables_length {
        font-size: 10px !important;
    }
    
    .dataTables_wrapper .dataTables_length select {
        font-size: 10px !important;
        padding: 2px !important;
    }
}

/* ===================================
   Profile View Page Styles
   =================================== */

.ws-profile-card {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 20px;
}

.ws-profile-header {
    background: linear-gradient(135deg, #2C5F7C 0%, #17A2B8 100%);
    padding: 40px 30px;
    text-align: center;
    color: #FFFFFF;
}

.ws-profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #FFFFFF;
    object-fit: cover;
    margin: 0 auto 15px;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ws-profile-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #FFFFFF;
}

.ws-profile-email {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ws-profile-body {
    padding: 30px;
}

.ws-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2C5F7C;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #E9ECEF;
}

.ws-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.ws-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ws-info-label {
    font-size: 12px;
    color: #6C757D;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ws-info-value {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .ws-profile-header {
        padding: 30px 20px;
    }

    .ws-profile-photo {
        width: 100px;
        height: 100px;
    }

    .ws-profile-name {
        font-size: 20px;
    }

    .ws-profile-body {
        padding: 20px;
    }


    .ws-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ===================================
   Parent Table Styles
   =================================== */

.ws-parent-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ws-parent-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #E9ECEF;
}

.ws-parent-details {
    flex: 1;
}

.ws-parent-name {
    font-weight: 600;
    color: #2C5F7C;
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

.ws-parent-email {
    color: #6C757D;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

@media screen and (max-width: 768px) {
    .ws-parent-photo {
        width: 40px;
        height: 40px;
    }
    
    .ws-parent-name {
        font-size: 13px;
    }
    
    .ws-parent-email {
        font-size: 11px;
    }
}


/* ============================================
   TOGGLE SWITCH & FEE VISIBILITY STYLES
   ============================================ */
.ws-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
    vertical-align: middle;
}

.ws-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ws-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.ws-slider:before {
    position: absolute;
    content: '';
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

.ws-switch input:checked + .ws-slider {
    background-color: #2196F3;
}

.ws-switch input:focus + .ws-slider {
    box-shadow: 0 0 1px #2196F3;
}

.ws-switch input:checked + .ws-slider:before {
    transform: translateX(16px);
}

/* Rounded sliders */
.ws-slider.round {
    border-radius: 34px;
}

.ws-slider.round:before {
    border-radius: 50%;
}

.ws-panel-modern {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.ws-panel-modern .panel-heading {
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 8px 8px 0 0;
    padding: 15px 20px;
}

.ws-panel-modern .panel-title {
    font-weight: 600;
    color: #333;
}

.ws-badge-fee {
    font-size: 12px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    margin: 2px;
    display: inline-block;
}

.ws-badge-fee .fa-times {
    margin-left: 5px;
    cursor: pointer;
    opacity: 0.7;
}

.ws-badge-fee .fa-times:hover {
    opacity: 1;
}

/* Fee Visibility Page Styles */
.ws-control-panel {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ws-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ws-view-section-header {
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
}

.ws-view-section-header i {
  flex: 0 0 auto;
}

.ws-user-tab-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.ws-user-tab-title {
  margin: 0;
  color: #2C5F7C;
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ws-attendance-table-wrap {
  overflow-x: auto;
  border: 1px solid #E9ECEF;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ws-attendance-table {
  width: 100%;
  min-width: 980px;
  margin-bottom: 0;
  background: #FFFFFF;
}

.ws-attendance-table thead th {
  background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
  color: #495057;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 10px 8px;
  border: 0;
  border-bottom: 2px solid #DEE2E6;
}

.ws-attendance-table tbody td {
  min-width: 34px;
  padding: 9px 7px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #F1F3F5;
}

.ws-attendance-table tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 76px;
  background: #FFFFFF;
  color: #2C5F7C;
  text-align: left;
  font-size: 13px;
}

.ws-attendance-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.ws-attendance-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #F7FBFD;
  border: 1px solid #DCEAF2;
  color: #2C5F7C;
  font-size: 11px;
  font-weight: 700;
}

.ws-attendance-chip i {
  font-size: 10px;
}

.ws-attendance-tabs .nav-tabs {
  border-bottom: 1px solid #E9ECEF;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 12px 0;
}

.ws-attendance-tabs .nav-tabs > li > a {
  border: 1px solid #E9ECEF;
  border-radius: 6px 6px 0 0;
  color: #495057;
  font-weight: 600;
}

.ws-attendance-tabs .nav-tabs > li.active > a,
.ws-attendance-tabs .nav-tabs > li.active > a:focus,
.ws-attendance-tabs .nav-tabs > li.active > a:hover {
  background: #2C5F7C;
  border-color: #2C5F7C;
  color: #FFFFFF;
}

.ws-sattendance-add-form .ws-form-section,
.ws-tattendance-add-form .ws-form-section,
.ws-uattendance-add-form .ws-form-section {
  padding: 26px;
}

.ws-attendance-filter-section {
  height: auto;
}

.ws-attendance-filter-section .row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
}

.ws-attendance-filter-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 12px;
}

.ws-attendance-summary-card {
  background: #FFFFFF;
  border: 1px solid #E9ECEF;
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ws-attendance-summary-card h4 {
  color: #2C5F7C;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
}

.ws-attendance-entry-table {
  margin-top: 12px;
}

.ws-attendance-entry-table .card-image {
  margin: 0 auto;
}

.ws-attendance-radio-cell {
  min-width: 280px;
}

.ws-attendance-radio-cell .btn,
.ws-attendance-radio-cell label.btn {
  border: 0;
  border-radius: 6px;
  margin: 2px 4px 2px 0;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
}

.ws-save-attendance {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  padding: 11px 18px;
  font-weight: 700;
}

.ws-document-title {
  color: #2C5F7C;
  font-weight: 700;
}

.ws-user-empty-row {
  padding: 24px 12px !important;
  color: #6C757D !important;
  text-align: center;
  font-weight: 600;
}

.ws-feegate-header-content {
    flex: 1;
}

.ws-feegate-title {
    margin: 0;
    color: #2C5F7C;
    font-weight: 600;
    font-size: 18px;
}

.ws-feegate-title i {
    margin-right: 8px;
}

.ws-feegate-description {
    margin: 5px 0 0 28px;
    font-size: 14px;
}

/* Toggle Switch Container */
.ws-toggle-container {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 50px;
    border: 1px solid #e9ecef;
}

.ws-toggle-label {
    margin-right: 15px;
    font-weight: 600;
    color: #495057;
}

.ws-filter-bar {
    padding: 15px;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
}

.ws-filter-select {
    width: 200px;
    display: inline-block;
    margin-left: 10px;
}

.ws-table-cell {
    vertical-align: middle;
}

.ws-empty-state {
    padding: 40px;
}

.ws-empty-icon {
    opacity: 0.5;
    margin-bottom: 15px;
}

.ws-btn-add {
    text-align: center;
    margin-top: 20px;
}

/* Radio Button Styles */
.ws-radio-no-margin {
    margin-top: 0;
}

.ws-radio-label-bold {
    font-weight: bold;
}

/* Filter Section */
.ws-filter-section {
    padding: 15px;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
}

.ws-filter-select {
    width: 200px;
    display: inline-block;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .ws-filter-section {
        display: flex;
        flex-direction: column;
    }
    .ws-filter-section > *:not(:last-child) {
        margin-bottom: 8px;
    }
    
    .ws-filter-select {
        max-width: 100%;
        margin-left: 0;
    }
}

