/* ============================================================
   LMS Training Management System — Custom CSS
   Bootstrap 5.3 compatible
   ============================================================ */

/* CSS Variables — Brand Colors */
:root {
  --primary-color: #0057b8;
  --primary-dark:  #003d82;
  --accent-color:  #00a3e0;
  --dark-navy:     #001f4d;
  --sidebar-bg:    linear-gradient(160deg, #001f4d 0%, #0057b8 100%);
}

/* ---- Utility ---- */
.hidden {
  display: none;
}
.form-control-checkbox {
  display: inline;
  width: 100%;
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #6e707e;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #d1d3e2;
  border-radius: 0.35rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-squre {
  border-radius: 0rem;
}

.no-border {
  border: none;
}

/* Input Number arrow Remove */

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */

input[type="number"] {
  -moz-appearance: textfield;
}

/* Input Number arrow Remove */

/*Loader*/
/* Overlay */
#overlay {
  position: fixed;
  top: 0;
  z-index: 10000;
  width: 100%;
  height: 100%;
  display: none;
  background: rgba(0, 0, 0, 0.6);
}

/* Center the spinner */
.cv-spinner {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Fixed  text in the center */
.lms-text {
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
  position: absolute;
  z-index: 2;
}

/* Rotating circle around the text */
.circle {
  width: 100px;
  height: 100px;
  border: 4px solid transparent;
  border-top: 4px solid #2e93e6;
  border-radius: 50%;
  animation: spin 0.8s infinite linear;
  position: absolute;
}

/* Spinner animation */
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}
/*Loader*/

.table-ver-center td {
  vertical-align: middle;
}

.table-ver-top td {
  vertical-align: top;
}

/*ScrollBar*/
::-webkit-scrollbar {
  height: 5px;
  width: 5px;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey;
}

::-webkit-scrollbar-thumb {
  background: #6c757d;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0d6efd;
}
/*ScrollBar*/

.w-10 {
  width: 20%;
}

/*Switch*/
.switch-control {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 25px;
}

.switch-control input {
  opacity: 0;
  width: 0;
  height: 0;
}
/*Switch*/

/*Slider*/
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 21px;
  width: 21px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #2196f3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(35px);
  -ms-transform: translateX(35px);
  transform: translateX(35px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
/*Slider*/

.link {
  cursor: pointer;
}

.curve-border {
  border-radius: 1.5rem;
}

.no-decoration {
  text-decoration: none;
  font-weight: bold;
}

.scroll-to-top {
  bottom: 3rem;
}
.text-rainbow-animation {
  background-image: linear-gradient(
    to right,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet,
    red
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow-animation 35s linear infinite;
}

@keyframes rainbow-animation {
  to {
    background-position: 10vh;
  }
}

.btn-float {
  position: fixed;
  width: 80px;
  height: 80px;
  bottom: 10px;
  right: 40px;
  border-radius: 50px;
}

.dropdown-item {
  cursor: pointer;
}

.formRefCode {
  height: 35px !important;
  border: none !important;
  padding: 0px !important;
  margin: 0px !important;
}

.accordion .card-header {
  font-weight: bold !important;
  cursor: pointer !important;
}
.text-mute {
  font-weight: 500 !important;
  color: #bdbdbd;
}

.menu-card {
  flex: 0 50%;

  background: #fff;
  box-shadow: 0 2px 4px 0 rgba(136, 144, 195, 0.2),
    0 5px 15px 0 rgba(37, 44, 97, 0.15);
  border-radius: 15px;
  margin: 8px;
  padding: 10px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 200px;
  transition: 0.7s;
  cursor: pointer;
  text-decoration: none !important;
}

.menu-card:hover {
  background: #0a6654;
  color: #fff;
  transform: scale(1.1);
  z-index: 9;
}

.menu-card .card-title {
  color: #858796;
  font-size: 1.5rem;
  margin-top: 15px;
  margin-bottom: 15px;
}

.menu-card .card-icon {
  font-size: 50px;
  color: #858796;
}

.menu-card:hover .card-title {
  color: #ffffff !important;
}

.menu-card:hover .card-icon {
  color: #ffffff !important;
}

.nav-select {
  border: none;
  cursor: pointer;
}

.fs-25 {
  font-size: 25px;
}

#imgUserSignPreview {
  height: 200px;
  width: 200px;
  border: 3px solid #938a8a;
  border-radius: 10px;
}

#imgPreviewCompanyWatermark {
  max-width: 200px !important;
}

.mini-side-menu a {
  text-decoration: none !important;
  color: #8587a0;
}

.mini-side-menu .active {
  background-color: #0a6654 !important;
  border-color: #0a6654 !important;
}

.company-logo-table {
  width: 40px !important;
}

.company-empty-logo-table {
  padding-right: 45px;
}

.btn-password-shown {
  width: 50px !important;
  border-color: #d1d3e2;
}

.btn-password-shown:focus {
  box-shadow: none;
}

.fs-l {
  font-size: larger;
}

.w-80 {
  width: 80% !important;
}

.quote-header-table td {
  padding-right: 20px;
  width: 100%;
}

.quote-header label {
  margin-right: 10px !important;
}

.strong {
  font-weight: bold;
}

.bg-filter {
  background-color: #dddddd5c !important;
}

.dataTable {
  width: 100% !important;
}

.reDataTable {
  width: 100% !important;
}

.other-prefix-card .input-group-text {
  width: 120px;
  font-weight: bolder;
  color: #ffffff;
}

.align-item-center {
  align-items: center !important;
}

.form-file {
  display: block;
}

.aks-file-upload-label {
  color: #858796 !important;
}

.border-bottom-2 {
  border-bottom: 2px solid #cbcdd3 !important;
}

.w-250 {
  width: 250px;
}

.bg-td-primary td {
  background-color: #29292996 !important;
  color: white;
}

/* speed test */
#speedMeter {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#speedValue {
  font-size: 3rem;
  font-weight: bold;
  color: #333;
}

.meter-container {
  position: relative;
  width: 350px;
  height: 175px;
  border-radius: 175px 175px 0 0;
  background: linear-gradient(to top, #e9ecef, #f7f9fc);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
}

.meter {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 175px 175px 0 0;
  background: linear-gradient(to top, #4caf50, #f1c40f, #e74c3c);
  mask: radial-gradient(farthest-side at bottom, transparent 60%, black 61%);
}

.arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 90px;
  background-color: #333;
  border-radius: 3px;
  transform-origin: bottom center;
  transform: rotate(-90deg);
  /* Start at 0 Mbps */
  z-index: 2;
}

.arrow::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -7px;
  width: 20px;
  height: 20px;
  background-color: #333;
  border-radius: 50%;
}

.numbers {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  font-weight: bold;
  font-size: 14px;
  color: #555;
}

.label {
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}
/* Training Dashboard */
.icon-box {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f8f9fa;
  margin: 0 auto 15px;
}

.icon-box i {
  font-size: 1.8rem;
  color: #007bff;
}

.chart-container {
  margin-top: 30px;
}

.chart-title {
  font-weight: 600;
  margin-top: 10px;
  color: #495057;
}

/* Training Dashboard */

.training-card {
  width: 300px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
}

.traning-card-shadow {
  -webkit-box-shadow: 0px -1px 9px 1px rgba(0, 0, 0, 0.37);
  -moz-box-shadow: 0px -1px 9px 1px rgba(0, 0, 0, 0.37);
  box-shadow: 0px -1px 9px 1px rgba(0, 0, 0, 0.37);
}

.training-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.999s;
  border-radius: 15px;
}

.training-card:hover .training-card-inner {
  transform: rotateY(180deg);
}

.training-card-front,
.training-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.training-card-front {
  background-color: #ffffff;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transform: rotateY(0deg);
  border-radius: 15px;
}

.training-card-back {
  background-color: white;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotateY(180deg);
  border-radius: 15px;
}

.training-card-header {
  width: 95%;
  background-color: white;
  margin-top: 10px;
  text-align: center;
  border-radius: 150px;
  border: 2px solid #1a2035;
}

.training-card-footer {
  width: 95%;
  background-color: white;
  text-align: center;
  border-radius: 150px;
  border: 2px solid #1a2035;
}

.training-image-container img {
  max-width: 100%;
  max-height: 150px;
}

.training-card-border {
  width: 100%;
}

.categories-bar {
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 0.5rem;
  border: 1px solid #ddd;
}

.lms-card {
  border-radius: 0.5rem;
  background-color: #fff;
  border: 1px solid transparent;
}

.lms-card a {
  text-decoration: none;
}

.lms-content {
  padding: 1.1rem;
}

.lms-title {
  color: #111827;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
}

.lms-desc {
  margin-top: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.alert-warning {
  font-size: 1rem;
  background-color: #fff3cd;
  color: #856404;
}
/* register button */
.reg-btn {
  width: 120px;
  height: 30px;
  background: linear-gradient(to top, #d24803e0, #963707, #bd6105);
  color: #fff;
  border-radius: 50px;
  border: none;
  outline: none;
  cursor: pointer;
  position: relative;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.reg-btn span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: top 0.5s;
}

.reg-btn-text-one {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.reg-btn-text-two {
  position: absolute;
  width: 100%;
  top: 150%;
  left: 0;
  transform: translateY(-50%);
}

.reg-btn:hover .reg-btn-text-one {
  top: -100%;
}

.reg-btn:hover .reg-btn-text-two {
  top: 50%;
}
/* login  */

/* Content wrapper background */
#content-wrapper {
    background: #f8f9fb !important;
}

/* Topbar shadow */
.topbar {
    box-shadow: 0 1px 6px rgba(0,0,0,0.07) !important;
}

/* ============================================================
   FLAT PAGE DESIGN — Global overrides for all pages
   Removes old breadcrumbs, flattens cards, modernises forms
   ============================================================ */

/* ── Remove old inline breadcrumbs from pages ────────────── */
nav[aria-label="breadcrumb"]:not(#topbarNav *) {
    display: none !important;
}

/* ── Flat card — replaces all .card styles ───────────────── */
.card {
    border: 1px solid #e8ecf0 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
    background: #fff !important;
}

/* Kill coloured card headers — replace with clean white */
.card-header {
    background: #fff !important;
    border-bottom: 1px solid #f1f3f5 !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 0.9rem 1.25rem !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Remove Bootstrap bg-primary / bg-secondary / bg-dark on card headers */
.card-header.bg-primary,
.card-header.bg-secondary,
.card-header.bg-dark,
.card-header.bg-success,
.card-header.bg-danger,
.card-header.bg-warning,
.card-header.bg-info,
.card-header[style*="background-color"],
.card-header[style*="background:"] {
    background: #fff !important;
    color: #111827 !important;
}

/* Card header action buttons */
.card-header .btn {
    font-size: 0.78rem !important;
    border-radius: 8px !important;
    padding: 5px 14px !important;
    font-weight: 600 !important;
}
.card-header .btn-light {
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    color: #374151 !important;
}
.card-header .btn-light:hover {
    background: #e5e7eb !important;
    color: #111827 !important;
}

.card-body {
    padding: 1.25rem !important;
}

/* ── Flat page action buttons (outside cards) ────────────── */
.btn-primary {
    background: #111827 !important;
    border-color: #111827 !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
}
.btn-primary:hover, .btn-primary:focus {
    background: #1f2937 !important;
    border-color: #1f2937 !important;
}
.btn-success {
    background: #16a34a !important;
    border-color: #16a34a !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
}
.btn-danger {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
}
.btn-secondary {
    background: #6b7280 !important;
    border-color: #6b7280 !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
}
.btn-warning {
    border-radius: 8px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
}
.btn-sm {
    padding: 4px 12px !important;
    font-size: 0.78rem !important;
}

/* ── Flat form controls ──────────────────────────────────── */
.form-control,
.form-select {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    padding: 0.5rem 0.75rem !important;
    color: #374151 !important;
    background: #fff !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
}
.form-control:focus,
.form-select:focus {
    border-color: #111827 !important;
    box-shadow: 0 0 0 3px rgba(17,24,39,0.08) !important;
    outline: none !important;
}
.form-label {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 4px !important;
}

/* form-group (BS4 legacy) — add bottom margin */
.form-group {
    margin-bottom: 1rem !important;
}

/* ── Flat tables ─────────────────────────────────────────── */
.table {
    font-size: 0.82rem !important;
    color: #374151 !important;
    border-color: #f1f3f5 !important;
}
.table thead th {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #9ca3af !important;
    background: #f9fafb !important;
    border-bottom: 1px solid #e8ecf0 !important;
    padding: 0.65rem 0.75rem !important;
    white-space: nowrap !important;
}
.table tbody td {
    padding: 0.65rem 0.75rem !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f9fafb !important;
    color: #374151 !important;
}
.table tbody tr:hover td {
    background: #f9fafb !important;
}
.table-striped tbody tr:nth-of-type(odd) td {
    background: transparent !important;
}
.table-bordered {
    border: 1px solid #e8ecf0 !important;
}
.table-bordered td,
.table-bordered th {
    border: 1px solid #f1f3f5 !important;
}

/* Kill Bootstrap 4 bg-secondary on thead */
.table thead.bg-secondary,
.table thead.bg-primary,
.table thead.bg-dark {
    background: transparent !important;
}

/* ── Flat modals ─────────────────────────────────────────── */
.modal-content {
    border: 1px solid #e8ecf0 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
}
.modal-header {
    background: #fff !important;
    border-bottom: 1px solid #f1f3f5 !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem 1.25rem !important;
}
.modal-header .modal-title {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
}
/* Branded modal headers (explicit inline style) keep their gradient */
.modal-header[style*="linear-gradient"] {
    border-radius: 12px 12px 0 0 !important;
}
.modal-header[style*="linear-gradient"] .modal-title {
    color: #fff !important;
}
.modal-body {
    padding: 1.25rem !important;
    font-size: 0.85rem !important;
}
.modal-footer {
    border-top: 1px solid #f1f3f5 !important;
    padding: 0.75rem 1.25rem !important;
}

/* ── Badges ──────────────────────────────────────────────── */
.badge {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    border-radius: 20px !important;
    padding: 3px 10px !important;
}
.badge-success, .bg-success { background: #d1fae5 !important; color: #065f46 !important; }
.badge-warning, .bg-warning { background: #fef3c7 !important; color: #92400e !important; }
.badge-danger,  .bg-danger  { background: #fee2e2 !important; color: #991b1b !important; }
.badge-info,    .bg-info    { background: #dbeafe !important; color: #1e40af !important; }
.badge-primary, .bg-primary { background: #dbeafe !important; color: #1e40af !important; }

/* ── Dropdown menus ──────────────────────────────────────── */
.dropdown-menu {
    border: 1px solid #e8ecf0 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
    font-size: 0.82rem !important;
    padding: 4px !important;
}
.dropdown-item {
    border-radius: 6px !important;
    padding: 0.45rem 0.85rem !important;
    color: #374151 !important;
    font-weight: 500 !important;
}
.dropdown-item:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}

/* ── Page top margin — remove extra space ────────────────── */
.container-fluid {
    padding-top: 0.5rem !important;
}

/* ── Alert messages ──────────────────────────────────────── */
.alert {
    border-radius: 8px !important;
    font-size: 0.83rem !important;
    border: none !important;
    padding: 0.75rem 1rem !important;
}
.alert-success { background: #f0fdf4 !important; color: #166534 !important; }
.alert-danger  { background: #fef2f2 !important; color: #991b1b !important; }
.alert-warning { background: #fffbeb !important; color: #92400e !important; }
.alert-info    { background: #eff6ff !important; color: #1e40af !important; }

/* ============================================================
   LAYOUT — Core flex layout
   ============================================================ */

#wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 100vh;
}

#content-wrapper {
    background-color: #f8f9fb;
    flex: 1 1 0%;
    min-width: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}
#content {
    flex: 1 0 auto;
}

/* Topbar */
.topbar { height: 60px; }

/* Scroll to top */
.scroll-to-top {
    position: fixed; right: 1rem; bottom: 1rem; display: none;
    width: 2.5rem; height: 2.5rem; text-align: center; color: #fff;
    background: #374151; border-radius: 50%; line-height: 2.5rem;
    font-size: 0.9rem; z-index: 999; text-decoration: none; transition: background 0.2s;
}
.scroll-to-top:hover { background: #111827; color: #fff; }

/* Login/Register backgrounds */
.bg-gradient-primary { background: #f8f9fb; }
.bg-login-image    { background: url(../images/login-image.png) center/cover no-repeat; }
.bg-register-image { background: url(../images/register-image.png) center/cover no-repeat; }

.icon-circle { height: 2.5rem; width: 2.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* Responsive — mobile sidebar */
@media (max-width: 768px) {
    nav.sidebar { position: fixed !important; z-index: 200; width: 0 !important; min-width: 0 !important; overflow: hidden; }
    body.sidebar-open nav.sidebar { width: 240px !important; min-width: 240px !important; }
}

/* FontAwesome protection */
.fa, .fas, .far, .fal, .fab, .fad,
.fa::before, .fas::before, .far::before, .fal::before, .fab::before,
[class^="fa-"]::before, [class*=" fa-"]::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}

/* ============================================================
   DATATABLES — Clean Bootstrap 5 pagination styling
   ============================================================ */
div.dataTables_wrapper div.dataTables_paginate ul.pagination {
    justify-content: flex-end;
    margin: 0;
    gap: 3px;
}
div.dataTables_wrapper .page-item .page-link {
    border-radius: 6px !important;
    border: 1px solid #e8ecf0 !important;
    color: #374151 !important;
    font-size: 0.8rem !important;
    padding: 5px 10px !important;
    background: #fff !important;
    transition: background 0.15s !important;
}
div.dataTables_wrapper .page-item.active .page-link {
    background: #111827 !important;
    border-color: #111827 !important;
    color: #fff !important;
}
div.dataTables_wrapper .page-item .page-link:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}
div.dataTables_wrapper .page-item.disabled .page-link {
    color: #d1d5db !important;
    background: #f9fafb !important;
}
div.dataTables_wrapper div.dataTables_info {
    font-size: 0.8rem;
    color: #9ca3af;
    padding-top: 8px;
}
div.dataTables_wrapper div.dataTables_length label,
div.dataTables_wrapper div.dataTables_filter label {
    font-size: 0.82rem;
    color: #6b7280;
    font-weight: 500;
}
div.dataTables_wrapper div.dataTables_filter input {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 4px 10px !important;
    font-size: 0.82rem !important;
    outline: none !important;
}
div.dataTables_wrapper div.dataTables_filter input:focus {
    border-color: #111827 !important;
    box-shadow: 0 0 0 3px rgba(17,24,39,0.08) !important;
}
div.dataTables_wrapper div.dataTables_length select {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 3px 8px !important;
    font-size: 0.82rem !important;
}

/* ============================================================
   DASHBOARD — Stat cards, quick actions, tables, timeline
   ============================================================ */

/* Stat Cards */
.dash-stat-card {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s, transform 0.2s;
    height: 100%;
}
.dash-stat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
    transform: translateY(-2px);
}
.dash-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.dash-stat-body { flex: 1; }
.dash-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
}
.dash-stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: 2px;
}
.dash-stat-link {
    font-size: 0.7rem;
    color: #9ca3af;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 500;
}
.dash-stat-link:hover { color: #111827; }

/* Quick Actions */
.dash-quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 1rem 0.5rem;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s, transform 0.2s;
    height: 100%;
}
.dash-quick-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.09);
    transform: translateY(-2px);
}
.dash-quick-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}
.dash-quick-label {
    font-size: 0.73rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.2;
}

/* Cards */
.dash-card {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}
.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid #f1f3f5;
}
.dash-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #111827;
}
.dash-card-link {
    font-size: 0.73rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
}
.dash-card-link:hover { color: #111827; }
.dash-card-body { padding: 0.75rem 1.15rem 1.15rem; }

/* Table */
.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}
.dash-table thead th {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    padding: 0.5rem 0.5rem;
    border-bottom: 1px solid #f1f3f5;
}
.dash-table tbody td {
    padding: 0.6rem 0.5rem;
    color: #374151;
    border-bottom: 1px solid #f9fafb;
    vertical-align: middle;
}
.dash-table tbody tr:last-child td { border-bottom: none; }
.dash-table tbody tr:hover td { background: #f9fafb; }

/* Avatar */
.dash-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Badge */
.dash-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Course row */
.dash-course-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f9fafb;
}
.dash-course-row:last-child { border-bottom: none; }
.dash-course-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.dash-course-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.dash-course-date {
    font-size: 0.7rem;
    color: #9ca3af;
}

/* Empty state */
.dash-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #9ca3af;
}

/* Activity Timeline */
.activity-timeline { display: flex; flex-direction: column; }
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.55rem 0;
    position: relative;
}
.activity-item.has-line::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 34px;
    bottom: -4px;
    width: 1px;
    background: #f1f3f5;
}
.activity-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.activity-content { flex: 1; min-width: 0; }
.activity-title {
    font-size: 0.8rem;
    color: #111827;
    line-height: 1.3;
}
.activity-action {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.76rem;
    color: #6b7280;
    font-weight: 500;
}
.activity-desc {
    font-size: 0.73rem;
    color: #9ca3af;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.activity-time {
    font-size: 0.68rem;
    color: #9ca3af;
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 2px;
}

/* ============================================================
   SIDEBAR — White & Black Professional Theme
   ============================================================ */

/* Brand */
.sidebar-brand-wrap { padding: 1.25rem 1.25rem 1rem; border-bottom: 1px solid #f1f3f5; }
.sidebar-brand-link { display: flex; align-items: center; justify-content: center; }
.sidebar-logo { width: 80%; max-width: 192px; height: auto; object-fit: contain; display: block; }
.sidebar-brand-text { font-size: 1.1rem; font-weight: 700; color: #111827; letter-spacing: 0.02em; }

/* User pill */
.sidebar-user-pill { display: flex; align-items: center; gap: 10px; padding: 0.85rem 1.25rem; margin: 0.5rem 0.75rem; background: #f8f9fb; border-radius: 10px; border: 1px solid #eef0f3; }
.sidebar-user-avatar { width: 34px; height: 34px; border-radius: 50%; background: #111827; color: #fff; font-size: 0.85rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sidebar-user-name { font-size: 0.82rem; font-weight: 600; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.sidebar-user-role { font-size: 0.7rem; color: #6b7280; font-weight: 500; }

/* Section labels */
.sidebar-section-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #9ca3af; padding: 0.6rem 1.25rem 0.25rem; }

/* Divider */
.sidebar-divider { height: 1px; background: #f1f3f5; margin: 0.4rem 1rem; }

/* Nav links */
.sidebar .nav-link { display: flex; align-items: center; gap: 10px; padding: 0.55rem 0.75rem; margin: 1px 0.6rem; border-radius: 8px; color: #374151; font-size: 0.875rem; font-weight: 500; text-decoration: none; transition: background 0.15s, color 0.15s; position: relative; }
.sidebar .nav-link:hover { background: #f3f4f6; color: #111827; }
.sidebar .nav-item.active > .nav-link { background: transparent; color: #111827; font-weight: 700; }
.sidebar .nav-item.active > .nav-link .nav-text { background: linear-gradient(90deg, #dc2626, #f59e0b); background-size: 100% 1px; background-repeat: no-repeat; background-position: bottom left; padding-bottom: 2px; }
.sidebar .nav-item.active > .nav-link .nav-icon { color: #dc2626; background: #fef2f2; }

/* Nav icon box */
.nav-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 0.8rem; color: #6b7280; background: #f3f4f6; flex-shrink: 0; transition: background 0.15s, color 0.15s; }
.sidebar .nav-link:hover .nav-icon { background: #e5e7eb; color: #111827; }

/* Nav text */
.nav-text { flex: 1; }

/* Collapse arrow */
.nav-arrow { font-size: 0.65rem; color: #9ca3af; transition: transform 0.25s; margin-left: auto; }
.nav-link-collapse.expanded .nav-arrow, .nav-link-collapse[aria-expanded="true"] .nav-arrow { transform: rotate(180deg); }

/* Submenu */
.nav-submenu { padding: 4px 0; }
.nav-subitem { display: flex; align-items: center; padding: 0.42rem 0.75rem 0.42rem 2.75rem; font-size: 0.82rem; color: #6b7280; font-weight: 500; text-decoration: none; border-radius: 6px; margin: 1px 0.6rem; transition: background 0.15s, color 0.15s; }
.nav-subitem:hover { background: #f3f4f6; color: #111827; }
.nav-subitem.active { background: transparent; color: #dc2626; font-weight: 700; padding-left: 2.75rem; background-image: linear-gradient(90deg, #dc2626, #f59e0b); background-size: 100% 1px; background-repeat: no-repeat; background-position: bottom left; padding-bottom: 2px; }
