/* ===============================
   GLOBAL RESET
================================ */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  background-color: #111827;
  color: #ffffff;
}

/* ===============================
   CENTER POPPER BODY
================================ */
.auth-body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #1b2233 0%, #0b1020 65%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #ffffff;
}

/* ===============================
   LOGO
================================ */
.auth-body .auth-logo {
  margin-bottom: 24px;
  text-align: center;
}

.auth-body .logo-img {
  max-width: 220px;
  height: auto;
  opacity: 1;
  filter: brightness(0) invert(1);
}


.auth-body .logo-text {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* ===============================
   LOGIN CARD
================================ */
.auth-body .auth-card {
  width: 100%;
  background: linear-gradient(180deg, #1e293b 0%, #182235 100%);
  border-radius: 26px;
  padding: 40px 36px;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* ===============================
   TITLE
================================ */
.auth-body .auth-title {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 6px;
}

.auth-body .auth-subtitle {
  text-align: center;
  font-size: 14px;
  color: #aab1c4;
  margin-bottom: 30px;
}

/* ===============================
   FORM
================================ */
.auth-body .form-label {
  font-size: 13px;
  color: #cbd5e1;
}

.auth-body .form-control {
  height: 46px;
  background-color: #0f172a;
  border: 1px solid #24324a;
  border-radius: 10px;
  color: #ffffff;
}

.auth-body .form-control::placeholder {
  color: #64748b;
}

.auth-body .form-control:focus {
  background-color: #0f172a;
  color: #ffffff;
  border-color: #7c8cff;
  box-shadow: 0 0 0 2px rgba(124, 140, 255, 0.25);
}

/* ===============================
   PASSWORD ICON
================================ */
.auth-body .password-group {
  position: relative;
}

.auth-body .eye-icon {
position: absolute;
right: 16px;
top: 42px;
font-size: 14px;
opacity: 0.6;
cursor: pointer;
}

/* ===============================
   EXTRA ROW
================================ */
.auth-body .form-extra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin: 16px 0 24px;
}

.auth-body .remember {
  color: #cbd5e1;
}

.auth-body .remember input {
  margin-right: 6px;
}

.auth-body .forgot {
  color: #8b9bff;
  text-decoration: none;
}

.auth-body .forgot:hover {
  text-decoration: underline;
}

/* ===============================
   BUTTON
================================ */
.auth-body .auth-btn {
  width: 100%;
  height: 48px;
  background: linear-gradient(90deg, #7c8cff, #8f9bff);
  border: none;
  border-radius: 12px;
  color: #0b1020;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
}

.auth-body .auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 35px rgba(124, 140, 255, 0.45);
}

/* ===============================
   TOP GLOW BORDER (ARC STYLE)
================================ */
.auth-body .auth-card {
  position: relative;
  overflow: hidden;
}

/* glowing top border */
.auth-body .auth-card::before {
     content: "";
    position: absolute;
    top: 1px;
    left: 50%;
    transform: translateX(-49%);
    width: 100%;
    height: 100%;
    border-radius: 26px;
    pointer-events: none;
    border-top: 3px solid #8f9bff;
    box-shadow: 0 -2px 20px rgba(143, 155, 255, 0.9), 0 -6px 40px rgba(143, 155, 255, 0.6);
}


/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 576px) {
  .auth-body .auth-card {
    padding: 32px 26px;
  }

  .auth-body .auth-title {
    font-size: 24px;
  }
}
@media (max-width: 400px) {
  .auth-body .auth-card {
    padding: 24px 20px;
  }
}


/* =========================
   Dark Modern Navbar
========================= */

.app-navbar {
  background-color: #1f2937;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 0;
}

/* Logo */
.app-navbar-brand {
  color: #fff;
}

.app-logo {
  height: 45px;
  filter: brightness(0) invert(1);
}

/* Menu links */
.app-navbar-menu .nav-link {
  color: #cbd5e1;
  font-weight: 500;
  padding: 8px 16px;
  transition: all 0.2s ease;
}

.app-navbar-menu .nav-link:hover {
  color: #ffffff;
}

/* Active menu */
.app-navbar-menu .nav-link.active {
  color: #ffffff;
  position: relative;
}

.app-navbar-menu .nav-link.active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -6px;
  height: 2px;
  background: #3b82f6;
  border-radius: 2px;
}

/* Right side user info */
.app-user-info {
  color: #e5e7eb;
  font-size: 14px;
  margin-right: 14px;
  white-space: nowrap;
}

/* Buttons */
.app-login-btn,
.app-logout-btn {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.app-login-btn:hover,
.app-logout-btn:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}

/* Toggler (mobile menu icon) */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* =========================
   Logout Button (Refined)
========================= */

.app-logout-btn {
  border: 1px solid #af0000;
  color: #ffffff;
  background: #af0000;
  padding: 5px 16px 6px;
  font-size: 14px;
  line-height: 1.2;
  border-radius: 5px;
  transition: all 0.25s ease;
}

/* Hover */
.app-logout-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
}

/* Focus (keyboard users) */
.app-logout-btn:focus {
  box-shadow: none
}

/* Align nicely in navbar */
.app-navbar .btn {
  margin-left: 8px;
}


/* Mobile */
@media (max-width: 991px) {
  .app-navbar-menu .nav-link {
    padding: 10px 0;
  }

  .app-user-info {
    margin: 10px 0;
  }
}

/* =========================
   Center Logout Modal Content
========================= */

#logoutModal .modal-content {
  text-align: center;
}

#logoutModal .modal-header {
  justify-content: center;
  position: relative;
}

#logoutModal .modal-title {
  width: 100%;
}

#logoutModal .btn-close {
  position: absolute;
  right: 16px;
  top: 16px;
}

#logoutModal .modal-body {
  text-align: center;
  font-size: 16px;
}

#logoutModal .modal-footer {
  justify-content: center;
  gap: 12px;
}

/* ==================================
   CHANGE PASSWORD – PREMIUM UI
   Scoped by .app-change-password
================================== */

.app-change-password {
  padding-top: 40px;
}

/* Card */
.app-change-password .card {
  background-color: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* Card body spacing */
.app-change-password .card-body {
  padding: 34px 32px 36px;
}

/* Title */
.app-change-password .card-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 26px;
  letter-spacing: 0.2px;
}

/* Labels */
.app-change-password .form-label {
  color: #cbd5e1;
  font-size: 14px;
  margin-bottom: 6px;
}

/* Inputs */
.app-change-password .form-control {
  background-color: #111827;
  border: 1px solid #424b57;
  border-radius: 10px;
  padding: 11px 14px;
  color: #ffffff;
  transition: all 0.25s ease;
}

.app-change-password .form-control::placeholder {
  color: #9ca3af;
}

.app-change-password .form-control:focus {
  background: linear-gradient(180deg, #0b1220 0%, #070d1a 100%);
  border-color: #3b82f6;
  box-shadow:none;
  color: #ffffff;
}

/* Input spacing */
.app-change-password .mb-3 {
  margin-bottom: 18px !important;
}

/* Update button */
.app-change-password .btn-primary {
  margin-top: 14px;
  padding: 9px 30px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 5px;
  background: #818cf8;
  border: 1px solid #818cf8;
  box-shadow:none;
  transition: all 0.25s ease;
  color: #000000;
}

.app-change-password .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:none;
  background: #a5b4fc;
color: #030712;
border-color: #a5b4fc;
}

/* Mobile */
@media (max-width: 768px) {
  .app-change-password .card-body {
    padding: 26px 22px 28px;
  }
}

/* ==================================
   EDIT PROFILE – PREMIUM UI
   Scoped by .app-edit-profile
================================== */

.app-edit-profile {
  padding-top: 40px;
}

/* Card */
.app-edit-profile .card {
  background: radial-gradient(
      120% 120% at 20% 0%,
      #243142 0%,
      #0b1220 55%,
      #070d1a 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* Body spacing */
.app-edit-profile .card-body {
  padding: 34px 32px 36px;
}

/* Title */
.app-edit-profile .card-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 26px;
}

/* Labels */
.app-edit-profile .form-label {
  color: #cbd5e1;
  font-size: 14px;
  margin-bottom: 6px;
}

/* Inputs */
.app-edit-profile .form-control {
  background: linear-gradient(180deg, #0b1220 0%, #070d1a 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 11px 14px;
  color: #ffffff;
}

.app-edit-profile .form-control:focus {
  border-color: #3b82f6;
  box-shadow:
    0 0 0 2px rgba(59, 130, 246, 0.35);
}

/* Disabled email */
.app-edit-profile .form-control:disabled {
  background: #050a15;
  color: #94a3b8;
  cursor: not-allowed;
}

/* Button */
.app-edit-profile .btn-primary {
  margin-top: 14px;
  padding: 9px 30px;
  font-size: 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  box-shadow:
    0 10px 25px rgba(59, 130, 246, 0.45);
}

.app-edit-profile .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px rgba(59, 130, 246, 0.55);
}

/* Spacing */
.app-edit-profile .mb-3 {
  margin-bottom: 18px !important;
}

/* Mobile */
@media (max-width: 768px) {
  .app-edit-profile .card-body {
    padding: 26px 22px 28px;
  }
}


/* ==================================================
   USER DASHBOARD – PREMIUM DATA UI
   Scoped by .app-user-dashboard
================================================== */

.app-user-dashboard {
  padding-top: 20px;
}

/* Page title */
.app-user-dashboard h4 {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Main cards */
.app-user-dashboard .card {
      background-color: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* Card body spacing */
.app-user-dashboard .card-body {
  padding: 24px 26px;
}

/* =====================
   FILTER FORM
===================== */

.app-user-dashboard .form-label {
  color: #cbd5e1;
  font-size: 14px;
  margin-bottom: 6px;
}

.app-user-dashboard .form-control,
.app-user-dashboard .form-select {
 background-color: #111827;
    border: 1px solid #424b57;
    border-radius: 10px;
    padding: 11px 14px;
    color: #ffffff;
    transition: all 0.25s ease;
}

.app-user-dashboard .form-control::placeholder {
  color: #9ca3af;
}

.app-user-dashboard .form-control:focus,
.app-user-dashboard .form-select:focus {
  border-color: #3b82f6;
  box-shadow: none;
  color: #ffffff;
}

/* =====================
   BUTTONS
===================== */

.app-user-dashboard .btn-primary {
    padding: 9px 30px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 5px;
    background: #818cf8;
    border: 1px solid #818cf8;
    box-shadow: none;
    transition: all 0.25s ease;
    color: #000000;
}

.app-user-dashboard .btn-primary:hover {
  transform: translateY(-1px);
    box-shadow: none;
    background: #a5b4fc;
    color: #030712;
    border-color: #a5b4fc;
}

.app-user-dashboard .btn-light {
  background: rgba(255,255,255,.08);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.15);
}

.app-user-dashboard .btn-outline-secondary {
  color: #cbd5e1;
  border-color: rgba(203,213,225,.35);
}

.app-user-dashboard .btn-outline-secondary:hover {
  background: rgba(255,255,255,.12);
}

/* =====================
   ALERTS
===================== */

.app-user-dashboard .alert {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #e5e7eb;
}

/* =====================
   STATUS BADGES
===================== */

.app-user-dashboard .status-badge-link {
  text-decoration: none;
}

.app-user-dashboard .badge {
  border-radius: 999px;
  font-weight: 500;
  padding: 6px 10px;
}

/* =====================
   TABLE
===================== */

.app-user-dashboard .table {
  color: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.app-user-dashboard .table thead th {
  background: #0b1220;
    color: #cbd5e1;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding: 14px;
    text-align: left;
}
.app-user-dashboard .table thead th a{
  text-decoration: none;
  color: #cbd5e1;
}

.app-user-dashboard .table tbody tr:hover {
  background: rgba(255,255,255,.04);
}

.app-user-dashboard .table td {
  border-color: rgba(255,255,255,.08);
  background-color: #313a47;
}


.app-user-dashboard .table.slick-table td,
  .app-user-dashboard .table.slick-table th, .app-user-dashboard .table td, .app-user-dashboard .table th {
    color:#fff;
  }

  .app-user-dashboard  .table.slick-table thead th {
    white-space: nowrap;
  }

  .app-user-dashboard  .trunc-18 {
    max-width: 18ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
.app-user-dashboard .text-muted{color: #fff !important;}
  .app-user-dashboard  .trunc-24 {
    max-width: 24ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-user-dashboard  .trunc-32 {
    max-width: 32ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color:#fff;
  }

  .app-user-dashboard .sort-arrow {
    font-size: .75rem;
    margin-left: .25rem;
    opacity: .7;
  }

  .app-user-dashboard  .nowrap {
    white-space: nowrap;
  }

 .app-user-dashboard .modal-header{
  background-color: #1f2937;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
 }
 .app-user-dashboard .modal-body,  .app-user-dashboard .modal-footer{background-color: #1f2937;}
 .app-user-dashboard .modal-footer{background-color: #1f2937; border-top: 1px solid rgba(255, 255, 255, 0.08); text-align: center; justify-content: center;}
 .app-user-dashboard .modal-header .btn-close{
  opacity: 1;
    filter: brightness(0) invert(1);
    outline: 0;
    box-shadow: none;
 }

  /* Loader overlay: fullscreen, centered content */
  #loaderOverlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .4);
    z-index: 1050;
  }

  #loaderOverlay .box {
    background: #818cf8;
    border-radius: .5rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15);
    text-align: center;
    min-width: 220px;
  }

  /* Totals panel minor styles */
  .app-user-dashboard  .card .badge { font-weight: 500; }
  .app-user-dashboard  .progress { background-color:#eef2f7; }

  /* Clickable badges */
  .app-user-dashboard  .status-badge-link { text-decoration: none; display: inline-block; }
  .app-user-dashboard  .status-badge-link:hover { opacity: .92; }

/* =====================
   PAGINATION
===================== */

.app-user-dashboard .pagination .page-link {
  background: rgba(255,255,255,.06);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.12);
}

.app-user-dashboard .pagination .page-item.active .page-link {
  background: #3b82f6;
  border-color: #3b82f6;
}

.app-user-dashboard .pagination .page-link:hover {
  background: rgba(255,255,255,.15);
}

/* =====================
   MOBILE
===================== */

@media (max-width: 768px) {
  .app-user-dashboard .card-body {
    padding: 20px 18px;
  }
}

/* ==================================
   Dropdown Arrow Color – Dashboard
================================== */

.app-user-dashboard .form-select {
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='white' d='M7.247 11.14 2.451 5.658c-.566-.647-.106-1.658.753-1.658h9.592c.86 0 1.32 1.01.753 1.658L8.753 11.14a1 1 0 0 1-1.506 0z'/%3e%3c/svg%3e");
}
.app-user-dashboard input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.9;
  cursor: pointer;
}
.card-body{color: #fff;}

@media (max-width: 768px) {
.app-navbar .btn {
    margin-left: 0;
}
.app-change-password {
    padding-top: 15px;
}
.app-user-dashboard {
    padding-top: 15px;
}
html, body{height: auto;}
}

/* ==================================
   Status Badge – Box Layout
================================== */

.app-user-dashboard .app-status-box {
  display: flex;
  flex-direction: column;   /* nicha nicha */
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 110px;
  padding: 10px 12px;
  border-radius: 12px;
 margin-top: 10px;
    background-color: rgb(223 226 255 / 18%);
    border-color: rgb(129 140 248 / 46%) !important;
  line-height: 1.2;
  text-align: center;
}



/* ==================================
   Status Badge → Stats Card Style
================================== */

.app-user-dashboard .status-badge-link {
  text-decoration: none;
}

.app-user-dashboard .app-status-box {
  display: flex;
  flex-direction: column;      /* text nicha-nicha */
  justify-content: center;
  align-items: flex-start;

  min-width: 170px;
  padding: 14px 16px;

  background: linear-gradient(
    180deg,
    #1f2a37 0%,
    #0b1220 100%
  );

  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;

  color: #ffffff;
  font-weight: 500;

  transition: all .25s ease;
}

/* First line (Status + count) */
.app-user-dashboard .app-status-box span:first-child {
  font-size: 15px;
  font-weight: 600;
}

/* Second line (percentage) */
.app-user-dashboard .app-status-box span:last-child {
  font-size: 13px;
  margin-left: 0 !important;
  opacity: .85;
}

/* Hover effect (like stat cards) */
.app-user-dashboard .status-badge-link:hover .app-status-box {
  transform: translateY(-2px);
  box-shadow:
    0 12px 30px rgba(0,0,0,.45);
  border-color: rgba(59,130,246,.6);
}

/* Active (clicked filter) */
.app-user-dashboard .app-status-box[style*="inset"] {
  outline: 2px solid rgba(59,130,246,.6);
  outline-offset: -2px;
}
@media (max-width: 768px) {
  .app-user-dashboard .app-status-box{width: auto;}
}

