/* =========================================================
   dashboard-pages.css
   Consolidated page-specific CSS, moved out of inline
   <style> blocks scattered across dashboard blade views.
   Each page's rules are scoped under a unique page class
   added to that page's own root wrapper, so behavior stays
   identical to before (no cross-page leakage).
   ========================================================= */

/* ---------------------------------------------------------
   Global (moved from dashboard/layouts/header.blade.php)
   Loaded on every dashboard page, same as before.
   --------------------------------------------------------- */
.card-footer,
.progress {
  display: none;
}

.breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li {
  display: inline;
  margin-right: 5px;
}

.breadcrumb li::after {
  content: '>';
  margin-left: 5px;
  margin-right: 5px;
}

.breadcrumb li:last-child::after {
  content: '';
}

.chat_container {
  min-height: 80vh;
}

.chat_container .row {
  height: 100%;
}

.chat_container .row > * {
  height: 100%;
}

.chat_container #chat-box {
  height: 300px;
  overflow-y: auto;
}

.message {
  display: flex;
  justify-content: end;
}

#chat-box .message.sender {
  justify-content: start;
}

.dropdown-scroll {
  max-height: 200px !important;
  overflow-y: auto !important;
}

/* ---------------------------------------------------------
   dashboard/role/create.blade.php + role/edit.blade.php
   (both pages share the same form, merged into one scope)
   redesign: clearer hierarchy, brand-accented tabs/table,
   dimmed disabled checkboxes, mobile-stacked tab layout.
   --------------------------------------------------------- */
.role-form-page .right_col {
  background: #f9fafb !important;
}

.role-form-page .x_panel {
  border-radius: 14px;
  border: 1px solid #eef0f3;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04), 0 10px 24px -18px rgba(15, 23, 42, .12);
}

.role-form-page .section {
  font-size: 19px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 18px;
  padding-inline-start: 14px;
  position: relative;
  display: block;
}

.role-form-page .section::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #2563eb, #f59e0b);
}

.role-form-page label {
  font-weight: 600;
  color: #374151;
  font-size: .92rem;
}

.role-form-page .field.item {
  margin-bottom: 18px;
}

.role-form-page input.form-control {
  border: 1.5px solid #e2e8f0;
  padding: 9px 14px;
  border-radius: 10px;
  background: #f9fafb;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.role-form-page input.form-control:hover {
  border-color: #cbd5e1;
}

.role-form-page input.form-control:focus {
  background: #fff;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .18);
}

.role-form-page hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, #e2e8f0, transparent 85%);
  margin: 22px 0;
}

/* ---- permission tabs ---- */
.role-form-page .nav-pills .nav-link {
  background: transparent;
  border-radius: 10px;
  color: #475569;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: .92rem;
  text-align: start;
  padding: 10px 14px;
  border-inline-start: 3px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.role-form-page .nav-pills .nav-link:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.role-form-page .nav-pills .nav-link.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 700;
  border-inline-start-color: #2563eb;
}

.role-form-page .tab-content {
  background: #ffffff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
}

.role-form-page .tab-pane h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

/* ---- permissions table ---- */
.role-form-page .table-responsive {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eef0f3;
}

.role-form-page table.permissions-table {
  margin-bottom: 0;
}

.role-form-page table.permissions-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #475569;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-bottom: 1px solid #eef0f3;
}

.role-form-page table.permissions-table td,
.role-form-page table.permissions-table th {
  border-inline: none;
  border-top: none;
}

.role-form-page table.permissions-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
}

.role-form-page table.permissions-table tbody tr:last-child {
  border-bottom: none;
}

.role-form-page table.permissions-table td {
  vertical-align: middle;
  background: #ffffff;
  transition: background .12s ease;
}

.role-form-page table.permissions-table tbody tr:hover td {
  background: #f8fafc;
}

.role-form-page table.permissions-table td:first-child {
  font-weight: 600;
  color: #334155;
}

.role-form-page .form-check-input {
  width: 1.15em;
  height: 1.15em;
  cursor: pointer;
}

.role-form-page .form-check-input:checked {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
}

.role-form-page .form-check-input:disabled {
  opacity: .3;
  cursor: not-allowed;
}

/* ---- save button ---- */
.role-form-page .btn.bg-btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  border-radius: 10px;
  padding: 11px 28px;
  font-weight: 700;
  box-shadow: 0 10px 20px -8px rgba(37, 99, 235, .45);
  transition: transform .15s ease, box-shadow .15s ease;
}

.role-form-page .btn.bg-btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -8px rgba(37, 99, 235, .55);
}

@media (max-width: 767px) {
  .role-form-page .row.mb-4 > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .role-form-page .nav-pills {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    max-height: none !important;
  }

  .role-form-page .nav-pills .nav-link {
    margin-bottom: 0;
    border-inline-start: none;
    border-bottom: 2px solid transparent;
  }

  .role-form-page .nav-pills .nav-link.active {
    border-bottom-color: #2563eb;
  }
}

/* ---------------------------------------------------------
   dashboard/users/index.blade.php
   --------------------------------------------------------- */
.users-index-page .page-title h3 {
  font-weight: 700;
  color: #1f2937;
}

.users-index-page .filter-box input {
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 9px 14px;
}

.users-index-page .filter-box input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.users-index-page .table-modern {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

.users-index-page .table-modern thead {
  background: #f3f4f6;
}

.users-index-page .table-modern thead th {
  font-weight: 600;
  padding: 14px;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}

.users-index-page .table-modern tbody tr {
  transition: background 0.15s ease-in-out;
}

.users-index-page .table-modern tbody tr:hover {
  background: #f9fafb;
}

.users-index-page .table-modern td {
  padding: 14px;
  vertical-align: middle;
  border-bottom: 1px solid #f3f4f6;
}

.users-index-page .badge-role {
  background: #3b82f6;
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
}

.users-index-page .badge-active {
  background: #10b981;
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
}

.users-index-page .badge-inactive {
  background: #ef4444;
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
}

.users-index-page .user-avatar-small {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
}

.users-index-page .btn-small {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
}

/* ---------------------------------------------------------
   dashboard/users/edit.blade.php
   --------------------------------------------------------- */
.users-edit-page .right_col {
  background: #f6f8fb !important;
}

.users-edit-page .page-title {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
}

.users-edit-page .form-section {
  background: #fff;
  border: 1px solid #e6eaf0;
  padding: 22px;
  border-radius: 14px;
  margin-bottom: 22px;
}

.users-edit-page .form-section h4 {
  font-size: 18px;
  font-weight: 700;
  color: #34495e;
  margin-bottom: 16px;
}

.users-edit-page .form-label {
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 6px;
}

.users-edit-page .form-control {
  border-radius: 10px !important;
  padding: 10px 14px;
  border: 1px solid #d1d5db !important;
  background: #fff;
}

.users-edit-page .form-control:focus {
  border-color: #467bcb !important;
  box-shadow: 0 0 0 2px rgba(70, 123, 203, 0.25);
}

.users-edit-page .password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #6b7280;
  font-size: 18px;
}

.users-edit-page .btn-save {
  background: #467bcb !important;
  border-radius: 8px;
  padding: 12px 30px;
  color: white;
  font-size: 16px;
  font-weight: 700;
}

/* ---------------------------------------------------------
   dashboard/users/create.blade.php
   --------------------------------------------------------- */
.users-create-page .right_col {
  background: #f6f8fb !important;
}

.users-create-page .form-section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #2c3e50;
}

.users-create-page .form-section {
  background: #ffffff;
  border: 1px solid #e6eaf0;
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 25px;
}

.users-create-page .form-label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #34495e;
}

.users-create-page .form-control {
  border-radius: 8px !important;
  padding: 10px 14px;
}

.users-create-page .form-control:focus {
  border-color: #467bcb;
  box-shadow: 0 0 0 2px rgba(70, 123, 203, 0.25);
}

.users-create-page input[type="file"] {
  padding: 8px !important;
}

.users-create-page .btn-save {
  background: #467bcb;
  color: #fff;
  border-radius: 8px;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
}

.users-create-page .btn-save:hover {
  background: #3a6db5;
}

.users-create-page .password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
  font-size: 17px;
}

/* ---------------------------------------------------------
   dashboard/users/show.blade.php
   --------------------------------------------------------- */
.users-show-page .right_col {
  background: #f6f8fb !important;
}

.users-show-page .profile-header {
  background: #fff;
  padding: 25px;
  border-radius: 14px;
  margin-bottom: 22px;
  border: 1px solid #e5e7eb;
}

.users-show-page .profile-name {
  font-size: 26px;
  font-weight: 700;
  color: #2c3e50;
}

.users-show-page .nav-pills .nav-link {
  background: #eef1f5;
  margin-right: 10px;
  border-radius: 8px;
  font-weight: 600;
  color: #34495e;
}

.users-show-page .nav-pills .nav-link.active {
  background: #467bcb;
  color: white;
}

.users-show-page .info-card {
  background: #ffffff;
  border: 1px solid #e6eaf0;
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 18px;
}

.users-show-page .info-title {
  font-size: 18px;
  font-weight: 700;
  color: #34495e;
  margin-bottom: 12px;
}

.users-show-page .info-row {
  margin-bottom: 20px;
}

.users-show-page .info-label {
  font-weight: 600;
  color: #6b7280;
}

.users-show-page .info-value {
  font-size: 16px;
  color: #111827;
  margin-top: 3px;
}

.users-show-page .avatar-box {
  text-align: center;
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e6eaf0;
  margin-bottom: 20px;
}

.users-show-page .avatar-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e5e7eb;
}

/* ---------------------------------------------------------
   dashboard/loginlogs/index.blade.php
   (page already renders class="right_col page-wrapper",
   so this scope class needs no markup change)
   --------------------------------------------------------- */
.page-wrapper {
  background: #f6f8fb !important;
}

.page-wrapper .filter-card {
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  border: 1px solid #e6eaf0;
}

.page-wrapper .filter-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #2d3748;
}

.page-wrapper .form-label {
  font-weight: 600;
  color: #4a5568;
  font-size: 14px;
  margin-bottom: 6px;
}

.page-wrapper .form-control,
.page-wrapper .form-select {
  border-radius: 10px !important;
  border: 1px solid #cbd5e0;
  padding: 8px 12px;
}

.page-wrapper .form-control:focus,
.page-wrapper .form-select:focus {
  border-color: #467bcb !important;
  box-shadow: 0 0 0 2px rgba(70, 123, 203, 0.25);
}

.page-wrapper .table-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
}

.page-wrapper table thead tr {
  background: #f1f5f9 !important;
  border-bottom: 2px solid #e2e8f0;
}

.page-wrapper table thead th {
  font-size: 14px;
  font-weight: 700;
  color: #4a5568;
  padding: 12px 10px !important;
}

.page-wrapper table tbody td {
  padding: 12px 10px !important;
  vertical-align: middle !important;
  font-size: 14px;
  color: #2d3748;
}

.page-wrapper .btn-primary {
  background: #467bcb !important;
  border: none !important;
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: 600;
}

.page-wrapper .btn-reset {
  background: #4a5568 !important;
  border: none !important;
  color: #fff;
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: 600;
}

/* ---------------------------------------------------------
   dashboard/livetracks/show.blade.php
   --------------------------------------------------------- */
.livetracks-show-page .hover-shadow {
  transition: box-shadow 0.3s ease;
}

.livetracks-show-page .hover-shadow:hover {
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

.livetracks-show-page .transition {
  transition: all 0.3s ease;
}

.livetracks-show-page .track-header {
  border-top: 5px solid #2A3F54;
}

.livetracks-show-page .materials-list {
  max-height: 400px;
  overflow-y: auto;
}

/* ---------------------------------------------------------
   dashboard/reports/student-report.blade.php (detail page)
   Note: the .collapse override below is a workaround for
   the Bootstrap 4/5 mix in the base layout - kept scoped
   to this page only, exactly as it behaved before.
   --------------------------------------------------------- */
.student-report-detail-page .collapse {
  display: none !important;
}

.student-report-detail-page .collapse.show,
.student-report-detail-page .collapse.in {
  display: block !important;
}

.student-report-detail-page .transition-icon {
  transition: transform 0.25s ease-in-out;
}

.student-report-detail-page .bg-light-soft {
  background-color: #fafbfc;
}

.student-report-detail-page .animate-collapse {
  transition: max-height 0.3s ease-out;
  overflow: hidden;
}

/* ---------------------------------------------------------
   dashboard/student-report/index.blade.php
   --------------------------------------------------------- */
.student-report-index-page .last-border-0:last-child {
  border-bottom: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.student-report-index-page .fs-7 {
  font-size: 0.85rem;
}

.student-report-index-page .italic {
  font-style: italic;
}

/* =========================================================
   dashboard/login.blade.php  (playful redesign v2)
   Scoped under body.login-page so it never touches the old
   body.login rules still baked into custom*.min.css.
   ========================================================= */

body.login-page {
  margin: 0;
  min-height: 100vh;
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(245, 158, 11, .25), transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(45, 212, 191, .22), transparent 45%),
    linear-gradient(135deg, #2563eb 0%, #3b5fdb 30%, #1d4ed8 55%, #1e3a8a 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

.login-page-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  overflow: hidden;
}

/* ---- decorative background texture ---- */
.login-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}

.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: .8;
}

.login-orb-amber {
  width: 380px;
  height: 380px;
  top: -140px;
  inset-inline-end: -120px;
  background: radial-gradient(circle, rgba(245, 158, 11, .65), transparent 70%);
  animation: loginOrbFloat 12s ease-in-out infinite;
}

.login-orb-blue {
  width: 320px;
  height: 320px;
  bottom: -110px;
  inset-inline-start: -90px;
  background: radial-gradient(circle, rgba(96, 165, 250, .6), transparent 70%);
  animation: loginOrbFloat 15s ease-in-out infinite reverse;
}

.login-orb-teal {
  width: 220px;
  height: 220px;
  top: 38%;
  inset-inline-end: 6%;
  background: radial-gradient(circle, rgba(45, 212, 191, .5), transparent 70%);
  animation: loginOrbFloat 10s ease-in-out infinite;
  animation-delay: .6s;
}

.login-glyph {
  position: absolute;
  color: rgba(255, 255, 255, .28);
  font-weight: 800;
  font-family: 'Courier New', monospace;
  user-select: none;
  animation: loginGlyphDrift 9s ease-in-out infinite;
}

.login-glyph-1 { top: 10%; inset-inline-start: 7%;  font-size: 2.6rem; animation-duration: 10s; }
.login-glyph-2 { top: 72%; inset-inline-start: 10%; font-size: 2.1rem; animation-duration: 13s; animation-delay: 1s; }
.login-glyph-3 { top: 18%; inset-inline-end: 9%;    font-size: 1.7rem; animation-duration: 11s; animation-delay: .5s; }
.login-glyph-4 { top: 84%; inset-inline-end: 14%;   font-size: 1.6rem; color: rgba(245, 158, 11, .6); animation-duration: 7s; }
.login-glyph-5 { top: 46%; inset-inline-start: 4%;  font-size: 1.1rem; color: rgba(245, 158, 11, .5); animation-duration: 8s; animation-delay: .8s; }
.login-glyph-6 { top: 5%;  inset-inline-end: 24%;   font-size: 1.1rem; color: rgba(255, 255, 255, .35); animation-duration: 9s; animation-delay: 1.4s; }
.login-glyph-7 { top: 58%; inset-inline-end: 30%;   font-size: 1.5rem; color: rgba(45, 212, 191, .5); animation-duration: 12s; animation-delay: .3s; }
.login-glyph-8 { top: 32%; inset-inline-start: 18%; font-size: 1.2rem; color: rgba(255, 255, 255, .3); animation-duration: 14s; animation-delay: 2s; }

@keyframes loginOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(24px, -30px) scale(1.1); }
}

@keyframes loginGlyphDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(7deg); }
}

/* ---- card ---- */
.login-card-col {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-card {
  width: 100%;
  background: #ffffff;
  border-radius: 28px;
  padding: 56px 36px 36px;
  box-shadow: 0 34px 70px -18px rgba(15, 23, 42, .4), 0 0 0 1px rgba(255, 255, 255, .06);
  position: relative;
  text-align: center;
  animation: loginCardIn .6s cubic-bezier(.16, 1, .3, 1) both;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 6px;
  background: linear-gradient(90deg, #2563eb, #f59e0b 50%, #2dd4bf);
}

@keyframes loginCardIn {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo-badge {
  width: 88px;
  height: 88px;
  margin: -84px auto 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, #eff6ff 0%, #fef3c7 100%);
  box-shadow: 0 12px 26px -8px rgba(37, 99, 235, .4), 0 0 0 6px #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: loginBadgeBob 3.2s ease-in-out infinite;
}

.login-logo-badge img {
  max-width: 58%;
  max-height: 58%;
  object-fit: contain;
}

@keyframes loginBadgeBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(-3deg); }
}

.login-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}

.login-subtitle {
  font-size: .96rem;
  color: #64748b;
  margin: 0 0 30px;
  line-height: 1.5;
}

/* ---- form fields ---- */
.login-page form {
  text-align: start;
}

.login-page .form-label {
  font-weight: 600;
  color: #374151;
  font-size: .88rem;
  margin-bottom: .45rem !important;
}

.login-field {
  position: relative;
  margin-bottom: 20px;
}

.login-page .form-control {
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding-top: .75rem;
  padding-bottom: .75rem;
  padding-inline-start: 2.7rem;
  background: #f9fafb;
  font-size: .96rem;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .12s ease;
}

.login-page .form-control:hover {
  border-color: rgba(245, 158, 11, .55);
}

.login-page .form-control:focus {
  background: #fff;
  border-color: #f59e0b;
  box-shadow: 0 0 0 .2rem rgba(245, 158, 11, .25);
  transform: translateY(-1px);
}

.login-field::before {
  font-family: 'FontAwesome';
  position: absolute;
  bottom: 13px;
  inset-inline-start: 14px;
  font-size: 1rem;
  color: #f59e0b;
  opacity: .9;
  pointer-events: none;
  transition: transform .18s ease;
}

.login-field-user::before { content: "\f0e0"; }
.login-field-pass::before { content: "\f023"; }

.login-field:has(.form-control:focus)::before {
  transform: scale(1.12);
}

.login-pass-toggle {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, transform .1s ease;
}

.login-pass-toggle:hover {
  color: #d97706;
  background: rgba(245, 158, 11, .14);
}

.login-pass-toggle:active {
  transform: scale(.9);
}

.login-row-between {
  margin: 4px 0 26px;
  flex-wrap: wrap;
  gap: 10px;
}

.login-page .form-check-input:checked {
  background-color: #f59e0b;
  border-color: #f59e0b;
}

.login-forgot-link {
  color: #f59e0b;
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  transition: color .15s ease;
}

.login-forgot-link:hover {
  color: #d97706;
  text-decoration: underline;
}

/* ---- submit button ---- */
.login-submit-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 15px 20px;
  color: #fff;
  font-weight: 700;
  font-size: 1.04rem;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 55%, #f59e0b 130%);
  box-shadow: 0 16px 30px -8px rgba(37, 99, 235, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.login-submit-btn::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}

.login-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -8px rgba(245, 158, 11, .55);
}

.login-submit-btn:hover::after {
  inset-inline-start: 130%;
}

.login-submit-btn:active {
  transform: translateY(0) scale(.98);
}

.login-btn-icon {
  transition: transform .25s ease;
}

.login-submit-btn:hover .login-btn-icon {
  transform: translateX(3px) translateY(-2px) rotate(8deg);
}

[dir="rtl"] .login-submit-btn:hover .login-btn-icon {
  transform: translateX(-3px) translateY(-2px) rotate(-8deg);
}

/* ---- responsive ---- */
@media (max-width: 576px) {
  .login-card {
    padding: 50px 24px 28px;
    border-radius: 22px;
  }

  .login-title {
    font-size: 1.4rem;
  }

  .login-subtitle {
    font-size: .88rem;
    margin-bottom: 24px;
  }

  .login-orb-amber, .login-orb-blue {
    width: 240px;
    height: 240px;
  }

  .login-orb-teal {
    width: 150px;
    height: 150px;
  }

  .login-glyph-6, .login-glyph-8 {
    display: none;
  }
}

@media (max-width: 380px) {
  .login-page-shell {
    padding: 24px 12px;
  }

  .login-card {
    padding: 44px 18px 24px;
  }

  .login-logo-badge {
    width: 76px;
    height: 76px;
    margin-top: -72px;
  }

  .login-glyph-2, .login-glyph-4, .login-glyph-7 {
    display: none;
  }

  .login-submit-btn {
    font-size: .96rem;
    padding: 13px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-orb,
  .login-glyph,
  .login-card,
  .login-logo-badge {
    animation: none !important;
  }
}

/* ---------------------------------------------------------
   dashboard/resetpasswordpage.blade.php  (forgot-password, matches login)
   --------------------------------------------------------- */
.forgot-password-page .login-card {
  padding-bottom: 40px;
}

.forgot-password-page .login-field-user {
  margin-bottom: 26px;
}

.forgot-password-page .login-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: #64748b;
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
  transition: color .15s ease;
}

.forgot-password-page .login-back-link:hover {
  color: #2563eb;
}

.forgot-password-page .login-back-link i {
  font-size: .78rem;
  transition: transform .15s ease;
}

[dir="rtl"] .forgot-password-page .login-back-link i {
  transform: rotate(180deg);
}

.forgot-password-page .login-back-link:hover i {
  transform: translateX(-3px);
}

[dir="rtl"] .forgot-password-page .login-back-link:hover i {
  transform: rotate(180deg) translateX(-3px);
}

/* ---------------------------------------------------------
   dashboard/role/show.blade.php  (role details / view page)
   Reuses .role-form-page's tabs/table styling above.
   --------------------------------------------------------- */
.role-show-page .role-show-header {
  gap: 12px;
  margin-bottom: 4px;
}

.role-show-page .role-show-name-en {
  color: #6b7280;
  font-weight: 500;
  font-size: .9em;
}

.role-show-page .role-show-id {
  color: #9ca3af;
  font-size: .85rem;
}

.role-show-page .role-perm-yes {
  color: #16a34a;
  font-size: 1.05rem;
}

.role-show-page .role-perm-no {
  color: #d1d5db;
  font-size: 1.05rem;
}

/* ---------------------------------------------------------
   dashboard/teachers/show.blade.php
   Same profile/info-card pattern as users-show-page, kept
   as its own scope so the two pages can diverge later
   without cross-page bleed.
   --------------------------------------------------------- */
.teacher-show-page .right_col {
  background: #f6f8fb !important;
}

.teacher-show-page .profile-header {
  background: #fff;
  padding: 25px;
  border-radius: 14px;
  margin-bottom: 22px;
  border: 1px solid #e5e7eb;
}

.teacher-show-page .profile-name {
  font-size: 26px;
  font-weight: 700;
  color: #2c3e50;
}

.teacher-show-page .nav-pills .nav-link {
  background: #eef1f5;
  margin-inline-end: 10px;
  border-radius: 8px;
  font-weight: 600;
  color: #34495e;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.teacher-show-page .nav-pills .nav-link.active {
  background: #2563eb;
  color: white;
}

.teacher-show-page .badge-count {
  background: rgba(0, 0, 0, .08);
  color: inherit;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  padding: 1px 8px;
  line-height: 1.6;
}

.teacher-show-page .nav-link.active .badge-count {
  background: rgba(255, 255, 255, .25);
}

.teacher-show-page .info-card {
  background: #ffffff;
  border: 1px solid #e6eaf0;
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 18px;
}

.teacher-show-page .info-title {
  font-size: 18px;
  font-weight: 700;
  color: #34495e;
  margin-bottom: 12px;
}

.teacher-show-page .info-row {
  margin-bottom: 20px;
}

.teacher-show-page .info-label {
  font-weight: 600;
  color: #6b7280;
  font-size: .85rem;
}

.teacher-show-page .info-value {
  font-size: 16px;
  color: #111827;
  margin-top: 3px;
}

.teacher-show-page .avatar-box {
  text-align: center;
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e6eaf0;
  margin-bottom: 20px;
}

.teacher-show-page .avatar-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e5e7eb;
}

.teacher-show-page .table {
  margin-bottom: 0;
}

.teacher-show-page .table thead th {
  background: #f8fafc;
  font-weight: 700;
  color: #475569;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-top: none;
}

.teacher-show-page .table td,
.teacher-show-page .table th {
  vertical-align: middle;
}

/* ---------------------------------------------------------
   dashboard/free-sessions/index.blade.php
   dashboard/free-session-schedule/{index,show}.blade.php
   shared status badge + tidy table styling
   --------------------------------------------------------- */
.free-sessions-page h3,
.free-session-schedule-page h3,
.free-session-schedule-show-page h3 {
  font-weight: 700;
  color: #1e293b;
}

.free-sessions-page .table-responsive,
.free-session-schedule-page .table-responsive,
.free-session-schedule-show-page .table-responsive {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eef0f3;
}

.free-sessions-page table thead tr.headings th,
.free-session-schedule-page table thead tr.headings th,
.free-session-schedule-show-page table thead tr.headings th {
  background: #f8fafc;
  font-weight: 700;
  color: #475569;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-top: none;
}

.free-sessions-page table tbody tr:hover td,
.free-session-schedule-page table tbody tr:hover td,
.free-session-schedule-show-page table tbody tr:hover td {
  background: #f8fafc;
}

.free-sessions-page table td,
.free-session-schedule-page table td,
.free-session-schedule-show-page table td {
  vertical-align: middle;
}

.fs-status-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
}

.fs-status-yes {
  background: #dcfce7;
  color: #15803d;
}

.fs-status-no {
  background: #f1f5f9;
  color: #64748b;
}

/* ---- free-session-schedule show page summary chips ---- */
.fss-schedule-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.fss-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 700;
  font-size: .92rem;
  padding: 8px 16px;
  border-radius: 999px;
}

/* ---------------------------------------------------------
   dashboard/free-session-schedule/{create,edit}.blade.php
   --------------------------------------------------------- */
.free-session-schedule-form-page .x_panel {
  border-radius: 14px;
  border: 1px solid #eef0f3;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04), 0 10px 24px -18px rgba(15, 23, 42, .12);
}

.free-session-schedule-form-page .section {
  font-size: 19px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
  padding-inline-start: 14px;
  position: relative;
  display: block;
}

.free-session-schedule-form-page .section::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #2563eb, #f59e0b);
}

.free-session-schedule-form-page .fss-field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 8px;
}

.free-session-schedule-form-page .fss-field {
  flex: 1 1 220px;
}

.free-session-schedule-form-page .fss-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.free-session-schedule-form-page .fss-field label i {
  color: #f59e0b;
}

.free-session-schedule-form-page input.form-control {
  border: 1.5px solid #e2e8f0;
  padding: 9px 14px;
  border-radius: 10px;
  background: #f9fafb;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.free-session-schedule-form-page input.form-control:hover {
  border-color: #cbd5e1;
}

.free-session-schedule-form-page input.form-control:focus {
  background: #fff;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .18);
}

.free-session-schedule-form-page .btn.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  border-radius: 10px;
  padding: 11px 28px;
  font-weight: 700;
  box-shadow: 0 10px 20px -8px rgba(37, 99, 235, .45);
  transition: transform .15s ease, box-shadow .15s ease;
}

.free-session-schedule-form-page .btn.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -8px rgba(37, 99, 235, .55);
}

/* ---------------------------------------------------------
   dashboard/recordedCourses/show.blade.php
   CSS-only tidy-up: this page has heavy inline AJAX/DOM logic
   (accept/decline requests, add/remove students, nested
   section->material tables, mixed BS4/BS5 modal attrs), so we
   only touch presentation here — no markup/JS changes.
   --------------------------------------------------------- */
.recorded-course-show-page .right_col {
  background: #f6f8fb !important;
}

.recorded-course-show-page .x_panel {
  border-radius: 14px;
  border: 1px solid #eef0f3;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04), 0 10px 24px -18px rgba(15, 23, 42, .12);
  padding: 0;
  overflow: hidden;
}

.recorded-course-show-page .x_title {
  background: #f8fafc;
  border-bottom: 1px solid #eef0f3;
  padding: 20px 24px;
  margin: 0;
}

.recorded-course-show-page .x_title h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.recorded-course-show-page .x_content {
  padding: 20px 24px 24px;
}

/* ---- tabs ---- */
.recorded-course-show-page .nav-pills .nav-link {
  background: #f1f5f9;
  border-radius: 8px;
  color: #475569;
  font-weight: 600;
  margin-inline-end: 8px;
  transition: background .15s ease, color .15s ease;
}

.recorded-course-show-page .nav-pills .nav-link:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.recorded-course-show-page .nav-pills .nav-link.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  font-weight: 700;
}

/* ---- tables (details table + section/material/rate/request/student/post tables) ---- */
.recorded-course-show-page .table-responsive {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eef0f3;
}

.recorded-course-show-page table.table {
  margin-bottom: 0;
}

.recorded-course-show-page table.table thead th,
.recorded-course-show-page table.table > tbody > tr > th:first-child {
  background: #f8fafc;
  font-weight: 700;
  color: #475569;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.recorded-course-show-page table.table td,
.recorded-course-show-page table.table th {
  vertical-align: middle;
}

.recorded-course-show-page table.table > tbody > tr:hover > td {
  background: #f8fafc;
}

/* nested materials-of-section table gets its own subtle indent/border
   so it visually reads as "inside" the section row above it */
.recorded-course-show-page table.table table.table {
  border: 1px solid #eef0f3;
  border-radius: 8px;
  overflow: hidden;
  margin: 6px 0;
}

.recorded-course-show-page table.table table.table thead th {
  background: #eef2ff;
}

/* ---- empty-state alerts ---- */
.recorded-course-show-page .alert-info {
  background: #eff6ff;
  border: 1px dashed #bfdbfe;
  color: #1d4ed8;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  padding: 18px;
}

/* ---- action buttons ---- */
.recorded-course-show-page .btn-sm {
  border-radius: 8px;
}

.recorded-course-show-page .btn-secondary {
  border-radius: 10px;
  font-weight: 600;
}
