@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;700&display=swap");
@font-face {
  font-family: "Cairo";
  src: url("../../fonts/Cairo-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cairo";
  src: url("../../fonts/Cairo-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cairo";
  src: url("../../fonts/Cairo-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cairo";
  src: url("../../fonts/Cairo-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

span , div , p , a , span , input , textarea , button , select , option , label , h1 , h2 , h3 , h4 , h5 , h6
    {
        font-family: "Cairo", sans-serif;
    }
html {
  scroll-behavior: smooth;
}
.pin{
    font-family: "Cairo", sans-serif;
}
body {
  font-family: "Cairo", sans-serif;
  font-size: 16px;
  background-color: #F7F7F7;
  color: #111111;
  transition: 0.3s;
  /* For animation dark mode */
}

.introjs-tooltiptext{
    font-family: "Cairo", sans-serif !important;
}

.form-group {
  margin-bottom: 1rem;
}

.card {
  border-radius: 15px;
}

.navbar-custom {
  background-color: #002060;
}

.search_input {
  border-radius: 5px;
  border: 1px solid #dee2e6;
}

.badge {
  padding: 0.5rem;
}
.badge.bg-primary {
  background-color: #002060 !important;
}

.notification-list .noti-icon-badge {
  padding: 0.3em 0.5em;
}

.package-card {
  background: #ffffff;
  box-shadow: 1px 1px 5px 0 rgba(89, 91, 181, 0.1);
  text-align: center;
  /* margin-top: 15px; */
  padding: 20px 0;
  border-radius: 15px;
  border: none !important;
  box-shadow: 0 2px 18px 0 rgba(198, 198, 198, 0.3);
  -webkit-transition: all 0.3s linear;
  -moz-transition: all 0.3s linear;
  -ms-transition: all 0.3s linear;
  -o-transition: all 0.3s linear;
  transition: all 0.3s linear;
  background: #fff;
  width: 100%;
  margin-bottom: 1.5rem;
  color: #6c757d;
  min-height: 428px;
  height: calc(100% - 1.5rem);
}

.package-card .shape {
  height: 2px;
  margin: 0 auto 15px;
  position: relative;
  border-radius: 5px;
  width: 60px;
  background-color: #002060;
}

.package-card .pricing-header {
  position: relative;
  text-align: center;
  margin: 2rem 0 0.5rem;
}

.package-card .price-value {
  font-size: 28px;
  color: #002060;
  position: relative;
  text-align: center;
  font-weight: 700;
  top: 0 !important;
  margin-bottom: 10px;
}

.package-card .description {
  text-align: center;
  padding: 0 10px;
  list-style: none;
  margin-bottom: 0;
}

.package-card .description li {
  font-size: 15px;
  font-weight: 400;
  color: #444;
  padding: 10px 0;
  text-align: center;
}

.package-card .more-details {
  margin-top: 1rem;
}
.package-card .more-details a {
  color: #002060;
  display: block;
  font-weight: 700;
}

.package-card .btn-main {
  width: 90%;
  border-radius: 50px;
  padding: 0.7rem 1rem;
  font-size: 15px;
  margin-top: 1.5rem;
  border: 1px solid #002060;
}

.package-card.active {
  background-color: #002060;
}
.package-card.active .title h3 {
  color: #fff;
}
.package-card.active .shape {
  background-color: #fff;
}
.package-card.active .price-value {
  color: #fff;
}
.package-card.active .description li {
  color: #fff;
}
.package-card.active .btn-main {
  background-color: #fff;
  border: 1px solid #fff;
  color: #002060;
}
.package-card.active .more-details a {
  color: #fff;
  display: block;
  font-weight: 700;
}

.packageMoreDetails ul {
  padding: 0 20px;
  list-style: auto;
  margin-bottom: 0;
}
.packageMoreDetails ul li {
  font-size: 15px;
  font-weight: 400;
  color: #444;
  padding: 10px 0;
}

.left-side-menu {
  background: #002060;
}

.logo-box {
  background-color: #fff;
}
.logo-box img {
  max-width: 100%;
  object-fit: contain;
}

#sidebar-menu > ul > li {
  padding: 0 5px;
  margin-bottom: 1rem;
}

#sidebar-menu > ul > li > a {
  padding: 15px 20px;
  color: #fff;
  font-size: 14px;
}

#sidebar-menu .menuitem-active .active {
  background: #02266f;
  color: #fff;
  border-radius: 50px;
}

#sidebar-menu > ul > li > a:active, #sidebar-menu > ul > li > a:focus, #sidebar-menu > ul > li > a:hover {
  background: #02266f;
  border-radius: 50px;
  color: #fff;
}

#sidebar-menu > ul > li ul {
  padding-right: 15px;
}

#sidebar-menu > ul > li ul > li {
  margin-top: 10px;
}

#sidebar-menu .menuitem-active > a {
  color: #ffffff;
}

.nav-second-level li a:focus, .nav-second-level li a:hover {
  background: #02266f;
  color: #fff;
  border-radius: 50px;
}

.nav-second-level li a {
  padding: 0.8rem 30px;
}

.nav-second-level li a {
  color: #fff;
}

.footer {
  padding: 10px 15px 10px;
  font-size: 14px;
}

.login_card_item {
  position: relative;
  display: block;
  padding: 4rem 2rem;
  border-radius: 15px;
  height: calc(100% - 15px);
  text-align: center;
  margin-bottom: 15px;
  color: inherit;
}

.login_card_item.bg_2 {
  border: 1px solid #f0f2f5;
  background-color: #fff;
  box-shadow: 0 1px 2px 0 rgba(237, 237, 237, 0.5);
}

.login_card_item .icon {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto;
  display: flex;
  border-radius: 50px;
  align-items: center;
  justify-content: center;
}

.login_card_item .icon {
  font-size: 40px;
}

.login_card_item .title {
  display: block;
  font-size: 15px;
  margin-top: 2rem;
  font-weight: 500;
  color: #111111;
}

.login_card_item:hover .title {
  color: #111;
}

.dropdown-menu {
  inset: auto auto auto 0px !important;
}

.btn-main {
  background-color: #002060;
  color: #fff;
  font-size: 13px;
}

.btn-main:hover {
  background-color: #002060;
  color: #fff;
}

.btn:hover {
  background-color: #062b77;
  color: #fff;
}

.btn-outline-info {
  color: #002060;
  border: 1px solid #ebedf2;
  padding: 0.45rem 0.9rem;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 0.15rem;
}

.btn-outline-info:hover {
  color: #fff;
  background-color: #002060;
  border-color: #002060;
}

.btn-outline-danger {
  color: #de3333;
  border: 1px solid #de3333;
  padding: 0.45rem 0.9rem;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 0.15rem;
}

.btn-outline-danger:hover {
  background-color: #de3333;
  border-color: #de3333;
  color: #fff;
}

.btn i {
  /* padding-left: 0.35rem; */
}

.form-label {
  font-size: 13px;
  font-weight: 400;
  color: #646c9a;
}

label.form-check-label {
  font-size: 15px;
  font-weight: 400;
}

.page-title-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.table thead {
  text-align: center;
}
.table thead th {
  font-size: 13px;
  font-weight: 400;
  /* color: #646c9a; */
}
.table tbody td {
  text-align: center;
  font-size: 13px;
  font-weight: 400;
  color: #646c9a;
}

.table-bordered th,
.table-bordered td {
  border: 1px solid #f7f7f7;
}

.table thead th {
  border-bottom: 1px solid #f7f7f7;
}

.rolesWrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(33%, 4fr));
  width: 100%;
}
.rolesWrapper .form-check {
  padding: 10px 15px;
  margin-bottom: 1.5rem;
  cursor: pointer;
}
.rolesWrapper .form-check .form-check-input {
  margin-right: 0;
  margin-left: 1rem;
}

body.authentication-bg {
  background-color: #002060;
}
body.authentication-bg .form-label {
  font-size: 13px;
  font-weight: 400;
  color: #6b7177;
}
body.authentication-bg .form-control:disabled, body.authentication-bg .form-control[readonly] {
  background-color: #edeff1;
  opacity: 1;
}
body.authentication-bg .organization_wrapper .form-control:not(:disabled) {
  border-bottom: 2px solid #002060;
}
body.authentication-bg .organization_wrapper .active label {
  color: red;
}
body.authentication-bg .organization_wrapper .not-active {
  opacity: 0.5;
}
body.authentication-bg .organization_wrapper .form-control[type=tel]::placeholder {
  text-align: right;
}

@keyframes normalFade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.swal2-container.swal2-backdrop-show, .swal2-container.swal2-noanimation {
  background: rgba(0, 0, 0, 0.4) !important;
}

.swal2-modal .swal2-title {
  font-size: 21px;
  line-height: 30px;
}

.swal2-styled.swal2-cancel {
  background-color: #f0f0f0 !important;
  color: #333333 !important;
}

.modal .modal-header {
  background-color: #002060;
}
.modal .modal-title {
  font-size: 15px;
  color: #fff;
}
.modal .modal-footer {
  border-top: 1px solid #eff3f5;
}
.modal .btn-close {
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: 0.25em 0.25em;
  color: var(--ct-btn-close-color);
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
  border: 0;
  border-radius: 0.25rem;
  opacity: 1;
  background-size: 11px;
}
.modal p {
  font-size: 15px;
}

.organiztion-info .card {
  min-height: calc(100% - 1.5rem);
}

.organiztion-full-info .faq-question-q-box {
  background: rgba(0, 32, 96, 0.1);
}
.organiztion-full-info .faq-question-q-box i {
  line-height: 1.9;
}
.organiztion-full-info .item-info {
  border-top: 1px solid #eeecec;
  padding: 1rem 0;
}
.organiztion-full-info .item-info .faq-answer {
  margin-bottom: 0;
}
.organiztion-full-info .col-md-6:nth-child(1) .item-info {
  border-top: 0;
}
.organiztion-full-info .col-md-6:nth-child(2) .item-info {
  border-top: 0;
}

.note-frame {
  font-family: inherit !important;
}

.notRead {
  background-color: #f2f3f5;
}

.select2-container {
  display: block;
  width: 100% !important;
}

.select2-container .select2-selection--single {
  height: 53px;
  font-size: 14px;
  outline: none;
  box-shadow: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 53px;
}

.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered {
  padding-right: 20px;
}

.select2-container--default .select2-selection--single {
  background-color: #FAFBFE;
  border: 1px solid #eff1f7;
  border-radius: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #777E90;
}

.select2-dropdown {
  z-index: 999999;
  border: 1px solid #eff1f7;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #eee;
  border-radius: 4px;
  font-size: 14px;
  color: #777E90;
}

.select2-results__option {
  color: #777E90;
  font-size: 14px;
  padding: 8px 10px;
}

.select2-container--default .select2-results__option--selected {
  background-color: #f6f6f6;
  color: #777E90;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #EFF1F7;
  color: #777E90;
}

.select2-container {
  z-index: 999999;
}

.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow {
  left: 10px;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
}

.select2-container--default.select2-container--disabled .select2-selection--single {
  background-color: #FAFBFE;
}

.select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: #f0f0f0;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #002060;
  color: white;
}

.views-field {
  box-shadow: 0 2px 18px 0 rgba(198, 198, 198, 0.3);
  border-radius: 15px;
  text-align: center;
  display: block;
  background-color: #fff;
  padding: 30px 20px;
  position: relative;
  overflow: hidden;
  transition: -webkit-box-shadow 0.5s;
  transition: box-shadow 0.5s;
  transition: box-shadow 0.5s, -webkit-box-shadow 0.5s;
  height: calc(100% - 1rem);
}
.views-field .field-image img {
  margin: auto;
  height: 65px;
  width: auto;
  animation: none !important;
  transition: none !important;
  transform: none !important;
}
.views-field .title h3 {
  color: #000;
  margin-bottom: 30px;
  font-size: 20px;
  font-weight: bold;
  margin: 1.5rem 0;
}
.views-field .desc {
  font-size: 16px;
  color: #7B8BA5;
  margin-bottom: 0;
  min-height: 80px;
}
.views-field .show-quiz-btn a {
  border: 1px solid #D7DBE5;
  color: #111;
  border-radius: 50px;
  padding: 10px 30px;
  -webkit-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
  display: block;
  outline: 0;
  font-size: 14px;
  max-width: 80%;
  margin: 20px auto 0;
}
.views-field .show-quiz-btn a:hover {
  background: #012060;
  border: 1px solid #012060;
  color: #fff;
}

.quiz-lists .quiz-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 15px;
  font-size: 14px;
  margin-bottom: 1rem;
  box-shadow: 1px 1px 5px 0px rgba(89, 91, 181, 0.1);
  border-bottom: 1px solid #dedede;
  box-shadow: 0 1px 2px 0 rgba(237, 237, 237, 0.5);
  color: #334155;
}
.quiz-lists .quiz-item .view-quiz-btn {
  display: inline-block;
  border-radius: 50px;
  padding: 9px 20px;
  color: #fff;
  font-size: 14px;
  background-color: #002060;
  border: 1px solid #002060;
}
@media (max-width: 576px) {
  .quiz-lists .quiz-item {
    flex-direction: column;
    gap: 20px;
  }
}
.quiz-lists .quiz-item:hover {
  background-color: #edeff1;
  border: 1px solid #edeff1;
}

@media (max-width: 991.98px) {
  body.sidebar-enable::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9998;
  }

  .left-side-menu {
    width: 100%;
    max-width: 320px;
    right: 0;
    left: auto;
    top: 0;
    bottom: 0;
    padding: 70px 18px 32px;
    position: fixed !important;
    z-index: 9999 !important;
    background: var(--ct-bg-leftbar) !important;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  html[lang^="ar"] .left-side-menu {
    right: auto;
    left: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  html:not([lang^="ar"]) .left-side-menu {
    left: 0;
    right: auto;
  }

  .sidebar-enable .left-side-menu {
    display: block !important;
  }

  .left-side-menu .user-box {
    margin-bottom: 1.25rem;
  }

  #sidebar-menu > ul > li {
    margin-bottom: 0.5rem;
  }

  #sidebar-menu > ul > li > a {
    border-radius: 18px;
    padding: 14px 16px;
    color: var(--ct-menu-item) !important;
    font-weight: 500;
  }

  #sidebar-menu > ul > li ul {
    padding-right: 0;
  }

  #sidebar-menu > ul > li ul > li > a {
    border-radius: 14px;
    padding: 12px 18px;
    margin-top: 0.35rem;
    color: var(--ct-menu-item) !important;
  }
}

.answers-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}
@media (max-width: 767px) {
  .answers-wrapper {
    flex-direction: column;
  }
}

.question-card-item {
  border: 1px solid #dedede;
}
.question-card-item .card-header {
  border-top-right-radius: 15px;
  border-top-left-radius: 15px;
  border-bottom: 1px solid #dedede;
}
.question-card-item .answer-check-item {
  position: relative;
  padding: 0;
  flex: 1;
  width: 100%;
}
.question-card-item .answer-check-item input {
  opacity: 0;
  position: absolute;
}
.question-card-item .answer-check-item label {
  position: relative;
  display: block;
  width: 100%;
  padding: 10px 15px;
  box-shadow: 1px 1px 5px 0px rgba(89, 91, 181, 0.1);
  border: 1px solid #edeff1;
  box-shadow: 0 1px 2px 0 rgba(237, 237, 237, 0.5);
  color: #334155;
  border-radius: 0.5rem;
  padding: 1rem 1rem;
  font-size: 14px;
  transition: all 300ms ease-in-out;
}
.question-card-item .answer-check-item label .answer_note {
  margin-right: 25px;
  margin-top: 4px;
  display: none;
  margin-bottom: 0;
  font-size: 12px;
}
.question-card-item .answer-check-item label::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 1px solid #dedede;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 10px;
  text-align: center;
}
.question-card-item .answer-check-item:hover label {
  background-color: #edeff1;
}
.question-card-item .answer-check-item input:checked + label {
  background-color: #002060;
  color: #fff;
}
.question-card-item .answer-check-item input:checked + label .answer_note {
  display: block;
}
.question-card-item .answer-check-item input:checked + label::before {
  content: "";
  font-family: feather !important;
  speak: none;
  font-style: normal;
  font-weight: 400;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  font-size: 10px;
  line-height: 13px;
}
.question-card-item .answer-check-item.active {
  background-color: #002060;
  color: #fff;
  border-radius: 0.5rem;
  border: 0;
}
/* =============== RESPONSIVE TABLES FOR DASHBOARD =============== */
@media (max-width: 992px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table thead th {
        white-space: nowrap;
        font-size: 12px;
        padding: 12px 10px;
    }

    .table tbody td {
        white-space: nowrap;
        font-size: 13px;
        padding: 12px 10px;
    }
}

@media (max-width: 768px) {
    .table thead th {
        font-size: 11px;
        padding: 10px 8px;
    }

    .table tbody td {
        font-size: 12px;
        padding: 10px 8px;
    }

    .table thead th i {
        font-size: 14px;
    }

    .btn-group .btn {
        font-size: 12px;
        padding: 5px 12px;
    }

    .dropdown-menu {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .table thead th {
        font-size: 10px;
        padding: 8px 6px;
    }

    .table tbody td {
        font-size: 11px;
        padding: 8px 6px;
    }

    .table thead th i {
        font-size: 12px;
        margin-right: 4px !important;
    }

    .btn-group .btn {
        font-size: 11px;
        padding: 4px 10px;
    }

    .dropdown-menu {
        font-size: 12px;
        min-width: 150px;
    }

    .badge, .status-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* =============== END RESPONSIVE TABLES =============== */

.question-card-item .answer-check-item.active label {
  color: #fff;
}
.question-card-item .answer-check-item.active label .answer_note {
  display: block;
}
.question-card-item .answer-check-item.active label::before {
  content: "";
  font-family: feather !important;
  speak: none;
  font-style: normal;
  font-weight: 400;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  font-size: 10px;
  line-height: 13px;
}

/* =============== APP LAYOUT STYLES =============== */
/* Moved from app.blade.php for better code organization */

/* Apply only on small screens */
@media (max-width: 991.98px) {
    .content-page {
        margin-top: 0px !important;
        padding-top: 0px !important;
    }
}

/* ===== ALERTIFY STYLES ===== */
.alertify-notifier .ajs-success {
    background: #002060 !important;
    background: linear-gradient(90deg, #002060 0%, #002061 100%) !important;
    color: white !important;
    border-radius: 15px;
    border: 1px solid #002060;
}

.required-color {
    color: red;
}

.close {
    background: transparent;
    border: none;
    color: white;
}

.pagination {
    float: inline-end;
}

th {
    text-align: center !important;
}

.dataTables_info {
    font-weight: 100 !important;
}

.select2-selection--single {
    height: 38px !important;
}

.select2-selection__rendered {
    line-height: 37px !important;
}

.select2-selection__rendered {
    background-color: transparent !important;
}

/* ===== DARK THEME VISUAL REFINEMENTS ===== */
body[data-theme="dark"] {
    --ct-body-bg: #0f1214;
    --ct-body-color: #c2cbd4;
    --ct-bg-leftbar: #0f1214;
    --ct-bg-leftbar-dark: #0f1214;
    --ct-twocolumn-sidebar-bg: #0f1214;
    --ct-menu-item: #9aa5b1;
    --ct-menu-item-hover: #22c55e;
    --ct-menu-item-active: #22c55e;
    --ct-menu-item-color-dark: #a7b1bc;
    --ct-menu-item-hover-color-dark: #e5f1ea;
    --ct-menu-item-active-color-dark: #ffffff;
}

body[data-theme="dark"] .navbar-custom {
    background-color: #0d1112;
    border-bottom: 1px solid #171c1f;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

body[data-theme="dark"] .left-side-menu {
    background-color: #0f1214;
}

body[data-theme="dark"] .card,
body[data-theme="dark"] .card-header,
body[data-theme="dark"] .timeline,
body[data-theme="dark"] .gal-box,
body[data-theme="dark"] #preloader {
    --ct-card-border-color: #1c2226;
    --ct-card-cap-bg: #13181b;
    --ct-card-bg: #151a1e;
    border-radius: 14px;
}

body[data-theme="dark"] .table,
body[data-theme="dark"] .table-bordered,
body[data-theme="dark"] .table-striped,
body[data-theme="dark"] .jsgrid-table {
    --ct-table-bg: #151a1e;
    --ct-table-striped-bg: #1a2025;
    --ct-table-border-color: #1d2227;
    --ct-table-color: #c7d0d8;
    --ct-table-accent-bg: #171d21;
    border-radius: 12px;
    overflow: hidden;
}

body[data-theme="dark"] .table thead th {
    background-color: #171d21 !important;
    color: #cbd4dc !important;
    border-color: #1d2227 !important;
}

/* ===== DARK MODE - FIX ALL TEXT COLORS ===== */
body[data-theme="dark"] .table td,
body[data-theme="dark"] .table th,
body[data-theme="dark"] .table tr {
    color: #c9d1d9 !important;
}

body[data-theme="dark"] .table tbody td a {
    color: #4ade80 !important;
}

body[data-theme="dark"] .table tbody td a:hover {
    color: #22c55e !important;
}

body[data-theme="dark"] a:not(.btn):not(.badge) {
    color: #4ade80;
}

body[data-theme="dark"] a:not(.btn):not(.badge):hover {
    color: #22c55e;
}

body[data-theme="dark"] .text-primary,
body[data-theme="dark"] .text-info {
    color: #4ade80 !important;
}

body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3,
body[data-theme="dark"] h4,
body[data-theme="dark"] h5,
body[data-theme="dark"] h6 {
    color: #f0f6fc !important;
}

body[data-theme="dark"] p,
body[data-theme="dark"] span:not(.badge),
body[data-theme="dark"] div,
body[data-theme="dark"] label {
    color: inherit;
}

body[data-theme="dark"] .card-body {
    background: #161b22 !important;
    color: #c9d1d9 !important;
}

body[data-theme="dark"] .bg-white {
    background: #161b22 !important;
}

body[data-theme="dark"] .bg-light {
    background: #21262d !important;
}

body[data-theme="dark"] .text-dark {
    color: #f0f6fc !important;
}

body[data-theme="dark"] .text-muted {
    color: #8b949e !important;
}

/* Fix input and form elements */
body[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
body[data-theme="dark"] textarea,
body[data-theme="dark"] select {
    background-color: #21262d !important;
    border-color: #30363d !important;
    color: #f0f6fc !important;
}

/* Fix form-control focus border color to blue */
body[data-theme="dark"] .form-control:focus,
body[data-theme="dark"] .form-select:focus,
body[data-theme="dark"] select:focus,
body[data-theme="dark"] textarea:focus,
body[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):focus {
    border-color: #002060 !important;
    box-shadow: 0 0 0 3px rgba(0, 32, 96, 0.15) !important;
    outline: none !important;
}

body[data-theme="dark"] input::placeholder,
body[data-theme="dark"] textarea::placeholder {
    color: #8b949e !important;
}

/* Fix borders */
body[data-theme="dark"] .border,
body[data-theme="dark"] .border-top,
body[data-theme="dark"] .border-bottom,
body[data-theme="dark"] .border-start,
body[data-theme="dark"] .border-end {
    border-color: #30363d !important;
}

body[data-theme="dark"] hr {
    border-color: #30363d !important;
}

/* Fix dropdown */
body[data-theme="dark"] .dropdown-menu {
    background: #161b22 !important;
    border-color: #30363d !important;
}

body[data-theme="dark"] .dropdown-item {
    color: #c9d1d9 !important;
}

body[data-theme="dark"] .dropdown-item:hover {
    background: #21262d !important;
    color: #4ade80 !important;
}

/* Fix modal */
body[data-theme="dark"] .modal-content {
    background: #161b22 !important;
    border-color: #30363d !important;
}

body[data-theme="dark"] .modal-body {
    color: #c9d1d9 !important;
}

body[data-theme="dark"] .modal-header {
    background: #002060 !important;
    border-bottom: 1px solid #30363d !important;
}

body[data-theme="dark"] .modal-header .modal-title {
    color: #ffffff !important;
}

body[data-theme="dark"] .modal-header .btn-close {
    filter: brightness(0) invert(1) !important;
    opacity: 0.8 !important;
}

body[data-theme="dark"] .modal-header i {
    color: #ffffff !important;
}

body[data-theme="dark"] .import-modal-header {
    background: #002060 !important;
}

body[data-theme="dark"] .modal-footer {
    border-color: #30363d !important;
}

/* ===== DARK MODE IMPORT MODAL FIX ===== */
body[data-theme="dark"] #standard-modal .modal-body {
    background: #161b22 !important;
    color: #c9d1d9 !important;
}

body[data-theme="dark"] #standard-modal .import-section {
    background: transparent !important;
}

body[data-theme="dark"] #standard-modal .import-title {
    color: #f0f6fc !important;
}

body[data-theme="dark"] #standard-modal .import-title i {
    color: #4ade80 !important;
}

body[data-theme="dark"] #standard-modal .form-control {
    background-color: #21262d !important;
    border-color: #30363d !important;
    color: #f0f6fc !important;
}

body[data-theme="dark"] #standard-modal .form-control::file-selector-button {
    background-color: #30363d !important;
    color: #f0f6fc !important;
    border-color: #30363d !important;
}

body[data-theme="dark"] #standard-modal .form-control:hover {
    border-color: #4ade80 !important;
}

body[data-theme="dark"] #standard-modal .btn-dark {
    background-color: #21262d !important;
    border-color: #30363d !important;
    color: #f0f6fc !important;
}

body[data-theme="dark"] #standard-modal .btn-dark:hover {
    background-color: #30363d !important;
    border-color: #4ade80 !important;
    color: #4ade80 !important;
}

body[data-theme="dark"] #standard-modal .btn-primary {
    background-color: #22c55e !important;
    border-color: #22c55e !important;
    color: #ffffff !important;
}

body[data-theme="dark"] #standard-modal .btn-primary:hover {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
}

/* ===== DARK MODE ACTION DROPDOWN FIX ===== */
body[data-theme="dark"] .btn-group .dropdown-menu {
    background: #161b22 !important;
    border: 1px solid #30363d !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    padding: 8px 0 !important;
}

body[data-theme="dark"] .btn-group .dropdown-item {
    color: #c9d1d9 !important;
    padding: 10px 20px !important;
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
    border: none !important;
    transition: all 0.2s ease !important;
}

body[data-theme="dark"] .btn-group .dropdown-item:hover,
body[data-theme="dark"] .btn-group .dropdown-item:focus {
    background: #21262d !important;
    color: #4ade80 !important;
}

body[data-theme="dark"] .btn-group .dropdown-item i {
    color: inherit !important;
    margin-right: 8px !important;
    font-size: 16px !important;
    width: 18px !important;
    text-align: center !important;
}

body[data-theme="dark"] .btn-group .dropdown-item:hover i,
body[data-theme="dark"] .btn-group .dropdown-item:focus i {
    color: #4ade80 !important;
}

body[data-theme="dark"] .btn-group .dropdown-item.delete-btn {
    color: #c9d1d9 !important;
}

body[data-theme="dark"] .btn-group .dropdown-item.delete-btn:hover,
body[data-theme="dark"] .btn-group .dropdown-item.delete-btn:focus {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
}

body[data-theme="dark"] .btn-group .dropdown-item.delete-btn:hover i,
body[data-theme="dark"] .btn-group .dropdown-item.delete-btn:focus i {
    color: #f87171 !important;
}

/* Ensure no buttons appear inside dropdown items */
body[data-theme="dark"] .btn-group .dropdown-item .btn,
body[data-theme="dark"] .btn-group .dropdown-item button {
    display: none !important;
}

/* Ensure dropdown items are clickable */
body[data-theme="dark"] .btn-group .dropdown-item {
    cursor: pointer !important;
    text-decoration: none !important;
}

/* ===== CARD TITLE CLARITY FIX (LIGHT MODE) ===== */
.card-title {
    color: white !important;
    font-weight: 600 !important;
    font-size: 18px !important;
}

/* Card Header Section - Light Mode Clarity */
.card-header-section {
    background: linear-gradient(135deg, #002060 0%, #003080 100%) !important;
    color: #ffffff !important;
}

.card-header-section * {
    color: #ffffff !important;
}

.card-header-section .card-title,
.card-header-section .header-title,
.card-header-section h3,
.card-header-section h4,
.card-header-section h5,
.card-header-section .patient-name {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 18px !important;
}

.card-header-section i,
.card-header-section [class*="fe-"],
.card-header-section .fe-clock,
.card-header-section .fe-dollar-sign,
.card-header-section .fe-paperclip,
.card-header-section .fe-user {
    color: #ffffff !important;
    font-size: 20px !important;
}

/* Override for card-title inside card-header-section specifically */
.files-card .card-header-section .card-title,
.payments-summary-card .card-header-section .card-title,
.timeline-card .card-header-section .header-title {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 18px !important;
}

/* Regular card-title outside header section */
.files-card .card-title:not(.card-header-section .card-title),
.payments-summary-card .card-title:not(.card-header-section .card-title) {
    color: #002060 !important;
    font-weight: 600 !important;
    font-size: 18px !important;
}

/* Dark mode card-title styles */
body[data-theme="dark"] .card-title {
    color: #f0f6fc !important;
    font-weight: 600 !important;
}

/* Card Header Section - Dark Mode Clarity */
body[data-theme="dark"] .card-header-section {
    background: linear-gradient(135deg, #002060 0%, #003080 100%) !important;
    color: #ffffff !important;
}

body[data-theme="dark"] .card-header-section * {
    color: #ffffff !important;
}

body[data-theme="dark"] .card-header-section .card-title,
body[data-theme="dark"] .card-header-section .header-title,
body[data-theme="dark"] .card-header-section h3,
body[data-theme="dark"] .card-header-section h4,
body[data-theme="dark"] .card-header-section h5,
body[data-theme="dark"] .card-header-section .patient-name {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 18px !important;
}

body[data-theme="dark"] .card-header-section i,
body[data-theme="dark"] .card-header-section [class*="fe-"],
body[data-theme="dark"] .card-header-section .fe-clock,
body[data-theme="dark"] .card-header-section .fe-dollar-sign,
body[data-theme="dark"] .card-header-section .fe-paperclip,
body[data-theme="dark"] .card-header-section .fe-user {
    color: #ffffff !important;
    font-size: 20px !important;
}

/* Override for card-title inside card-header-section in dark mode */
body[data-theme="dark"] .files-card .card-header-section .card-title,
body[data-theme="dark"] .payments-summary-card .card-header-section .card-title,
body[data-theme="dark"] .timeline-card .card-header-section .header-title {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 18px !important;
}

body[data-theme="dark"] .files-card .card-title,
body[data-theme="dark"] .payments-summary-card .card-title {
    color: #f0f6fc !important;
    font-weight: 600 !important;
}

/* ===== DARK MODE SIDEBAR MENU LINKS ===== */
body[data-theme="dark"] #sidebar-menu > ul > li > a.active,
body[data-theme="dark"] #sidebar-menu .menuitem-active > a,
body[data-theme="dark"] #sidebar-menu .menuitem-active .active {
    background: #002060 !important;
    color: #ffffff !important;
    border-radius: 50px !important;
}

body[data-theme="dark"] #sidebar-menu > ul > li > a:hover,
body[data-theme="dark"] #sidebar-menu > ul > li > a:focus,
body[data-theme="dark"] #sidebar-menu > ul > li > a:active {
    background: #002060 !important;
    color: #ffffff !important;
    border-radius: 50px !important;
}

body[data-theme="dark"] #sidebar-menu > ul > li > a.active i,
body[data-theme="dark"] #sidebar-menu .menuitem-active > a i,
body[data-theme="dark"] #sidebar-menu > ul > li > a:hover i {
    color: #ffffff !important;
}

body[data-theme="dark"] #sidebar-menu > ul > li > a.active span,
body[data-theme="dark"] #sidebar-menu .menuitem-active > a span,
body[data-theme="dark"] #sidebar-menu > ul > li > a:hover span {
    color: #ffffff !important;
}

/* ===== DARK MODE BTN-MAIN STYLING ===== */
body[data-theme="dark"] .btn-main {
    background-color: #002060 !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 13px !important;
}

body[data-theme="dark"] .btn-main:hover {
    background-color: #003080 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 32, 96, 0.3) !important;
}

body[data-theme="dark"] .btn-main i {
    color: #ffffff !important;
}

body[data-theme="dark"] .btn-main:active {
    background-color: #001850 !important;
    transform: translateY(0) !important;
}

/* ===== DARK MODE CHAT PAGE FIX ===== */
body[data-theme="dark"] .chat-list,
body[data-theme="dark"] .chat-conversation,
body[data-theme="dark"] .chat-leftsidebar,
body[data-theme="dark"] .chat-rightsidebar,
body[data-theme="dark"] .chat-container,
body[data-theme="dark"] .conversation-list,
body[data-theme="dark"] .chat-detail {
    background: #161b22 !important;
    color: #c9d1d9 !important;
}

body[data-theme="dark"] .chat-day-title span {
    background: #21262d !important;
    color: #8b949e !important;
}

body[data-theme="dark"] .ctext-wrap {
    background: #21262d !important;
    color: #f0f6fc !important;
}

body[data-theme="dark"] .conversation-name,
body[data-theme="dark"] .chat-user-name {
    color: #f0f6fc !important;
}

body[data-theme="dark"] .chat-input-section,
body[data-theme="dark"] .chat-input-links {
    background: #161b22 !important;
    border-color: #30363d !important;
}

body[data-theme="dark"] .chat-input-section input,
body[data-theme="dark"] .chat-input-section textarea {
    background: #21262d !important;
    border-color: #30363d !important;
    color: #f0f6fc !important;
}

body[data-theme="dark"] .chat-leftsidebar .nav-tabs,
body[data-theme="dark"] .chat-tabs {
    background: #161b22 !important;
    border-color: #30363d !important;
}

body[data-theme="dark"] .chat-leftsidebar .nav-tabs .nav-link,
body[data-theme="dark"] .chat-tabs .nav-link {
    color: #8b949e !important;
}

body[data-theme="dark"] .chat-leftsidebar .nav-tabs .nav-link.active,
body[data-theme="dark"] .chat-tabs .nav-link.active {
    background: transparent !important;
    color: #4ade80 !important;
    border-color: #4ade80 !important;
}

body[data-theme="dark"] .chat-message-list,
body[data-theme="dark"] .simplebar-content-wrapper {
    background: transparent !important;
}

body[data-theme="dark"] li.chat-list:hover,
body[data-theme="dark"] li.chat-list.active {
    background: #21262d !important;
}

/* ===== DARK MODE REPORTS PAGE FIX ===== */
body[data-theme="dark"] .report-card,
body[data-theme="dark"] .monthly-report,
body[data-theme="dark"] .report-section {
    background: #161b22 !important;
    border-color: #30363d !important;
}

body[data-theme="dark"] .report-header {
    background: #21262d !important;
    color: #f0f6fc !important;
}

/* Fix all remaining white backgrounds */
body[data-theme="dark"] .bg-white,
body[data-theme="dark"] .bg-light {
    background: #161b22 !important;
    color: #c9d1d9 !important;
}

/* ===== DARK MODE DASHBOARD STAT CARDS ===== */
body[data-theme="dark"] .widget-rounded-circle,
body[data-theme="dark"] .stat-card,
body[data-theme="dark"] .info-box,
body[data-theme="dark"] .summary-card {
    background: #161b22 !important;
    border-color: #30363d !important;
}

body[data-theme="dark"] .widget-rounded-circle h3,
body[data-theme="dark"] .widget-rounded-circle .number,
body[data-theme="dark"] .stat-card h3,
body[data-theme="dark"] .stat-card .number {
    color: #f0f6fc !important;
}

body[data-theme="dark"] .widget-rounded-circle .label,
body[data-theme="dark"] .stat-card .label {
    color: #8b949e !important;
}

/* Colored stat cards */
body[data-theme="dark"] .widget-rounded-circle.bg-primary,
body[data-theme="dark"] .widget-rounded-circle.bg-info,
body[data-theme="dark"] .widget-rounded-circle.bg-warning,
body[data-theme="dark"] .widget-rounded-circle.bg-danger,
body[data-theme="dark"] .widget-rounded-circle.bg-success {
    background: #161b22 !important;
    border: 2px solid !important;
}

body[data-theme="dark"] .widget-rounded-circle.bg-primary {
    border-color: #4ade80 !important;
}

body[data-theme="dark"] .widget-rounded-circle.bg-info {
    border-color: #3b82f6 !important;
}

body[data-theme="dark"] .widget-rounded-circle.bg-warning {
    border-color: #f59e0b !important;
}

body[data-theme="dark"] .widget-rounded-circle.bg-danger {
    border-color: #ef4444 !important;
}

body[data-theme="dark"] .widget-rounded-circle.bg-success {
    border-color: #10b981 !important;
}

/* ===== DARK MODE PROFILE PAGE ===== */
body[data-theme="dark"] .profile-card,
body[data-theme="dark"] .user-profile-card,
body[data-theme="dark"] .profile-header {
    background: #161b22 !important;
    border-color: #30363d !important;
}

body[data-theme="dark"] .profile-info,
body[data-theme="dark"] .contact-info {
    color: #c9d1d9 !important;
}

/* ===== DARK MODE FORM PAGES ===== */
body[data-theme="dark"] .form-card,
body[data-theme="dark"] .visit-form {
    background: #161b22 !important;
}

body[data-theme="dark"] .time-slot,
body[data-theme="dark"] .time-button {
    background: #21262d !important;
    border-color: #30363d !important;
    color: #f0f6fc !important;
}

body[data-theme="dark"] .time-slot:hover,
body[data-theme="dark"] .time-slot.active {
    background: #4ade80 !important;
    border-color: #4ade80 !important;
    color: white !important;
}

/* ===== DARK MODE PERMISSIONS SECTION ===== */
body[data-theme="dark"] .permissions-section,
body[data-theme="dark"] .permission-group {
    background: #161b22 !important;
    border-color: #30363d !important;
}

body[data-theme="dark"] .permission-header {
    background: #21262d !important;
    color: #f0f6fc !important;
    border-color: #30363d !important;
}

body[data-theme="dark"] .permission-item {
    color: #c9d1d9 !important;
}

body[data-theme="dark"] .permission-item:hover {
    background: #21262d !important;
}

/* ===== DARK MODE PATIENT PROFILE ===== */
body[data-theme="dark"] .patient-profile,
body[data-theme="dark"] .patient-details {
    background: #161b22 !important;
}

body[data-theme="dark"] .patient-name {
    color: #f0f6fc !important;
}

body[data-theme="dark"] .payment-section {
    background: #21262d !important;
    border-color: #30363d !important;
}

/* ===== DARK MODE TIMELINE ===== */
body[data-theme="dark"] .timeline,
body[data-theme="dark"] .activity-timeline {
    background: #161b22 !important;
}

body[data-theme="dark"] .timeline-item {
    background: #21262d !important;
    border-color: #30363d !important;
    color: #c9d1d9 !important;
}

/* ===== DARK MODE EXPENSE PAGE ===== */
body[data-theme="dark"] .expense-header,
body[data-theme="dark"] .date-header {
    background: #21262d !important;
    color: #f0f6fc !important;
    border-color: #30363d !important;
}

/* ===== DARK MODE CLINIC INFO ===== */
body[data-theme="dark"] .clinic-info-card,
body[data-theme="dark"] .clinic-details {
    background: #161b22 !important;
    border-color: #30363d !important;
}

body[data-theme="dark"] .clinic-info-item {
    color: #c9d1d9 !important;
    border-color: #30363d !important;
}

body[data-theme="dark"] .subscription-badge {
    background: #4ade80 !important;
    color: white !important;
}

body[data-theme="dark"] .page-title-box {
    background: transparent;
    border: 0;
    box-shadow: none;
}

body[data-theme="dark"] .container-fluid {
    background: transparent;
}

body[data-theme="dark"] .form-control,
body[data-theme="dark"] .select2-selection--single,
body[data-theme="dark"] .select2-search__field {
    background-color: #14181c;
    border-color: #252b31;
    color: #d5dde5;
}

body[data-theme="dark"] .app-search .form-control {
    border-radius: 32px;
    padding-inline-start: 2.25rem;
    background-color: #14181c;
    color: #d5dde5;
}

body[data-theme="dark"] .app-search .form-control::placeholder {
    color: #7b8790;
}

body[data-theme="dark"] .btn,
body[data-theme="dark"] .btn-light {
    border-radius: 10px;
}

/* Topbar icon chips */
.topnav-menu .noti-icon {
    opacity: .9
}

.topnav-menu .nav-link {
    border-radius: 12px;
}

/* ===== MOBILE RESPONSIVE FIXES ===== */
@media (max-width: 991.98px) {
    /* Ensure sidebar button is always clickable and visible */
    .navbar-custom .button-menu-mobile {
        z-index: 10000 !important;
        position: relative !important;
        display: inline-block !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        min-width: 50px !important;
        min-height: 50px !important;
        padding: 0 !important;
        margin: 0 !important;
        transition: background-color 0.2s ease, opacity 0.2s ease;
    }

    /* Button hover and active states for better feedback */
    .navbar-custom .button-menu-mobile:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
    }

    .navbar-custom .button-menu-mobile:active {
        background-color: rgba(255, 255, 255, 0.2) !important;
        opacity: 0.8;
    }

    /* Fix button touch area */
    .button-menu-mobile i {
        pointer-events: none;
    }

    /* Ensure sidebar is hidden by default on mobile */
    .left-side-menu {
        display: none !important;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    html[lang^="ar"] .left-side-menu {
        transform: translateX(100%);
    }

    /* Show sidebar when enabled */
    body.sidebar-enable .left-side-menu {
        display: block !important;
        transform: translateX(0) !important;
    }

    /* Mobile sidebar overlay */
    .mobile-sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    body.sidebar-enable .mobile-sidebar-overlay {
        display: block;
        opacity: 1;
    }

    /* Keep ::after for backward compatibility */
    body.sidebar-enable::after {
        z-index: 9998 !important;
    }

    /* Ensure sidebar is above overlay */
    .left-side-menu {
        z-index: 9999 !important;
    }

    /* Fix navbar layout on small screens */
    .navbar-custom {
        position: relative;
        z-index: 10001;
    }

    .navbar-custom .topnav-menu {
        flex-wrap: nowrap;
    }

    /* Fix topbar menu items spacing on small screens */
    .navbar-custom .topnav-menu .nav-link {
        padding: 0 8px !important;
    }

    /* Ensure logo doesn't interfere */
    .logo-box {
        display: none !important;
    }

    /* Fix content area on mobile */
    .content-page {
        margin-left: 0 !important;
        padding: 15px !important;
    }

    /* Fix container padding on mobile */
    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Improve touch targets */
    .topnav-menu li {
        min-width: 44px;
        min-height: 44px;
    }

    /* Fix notification dropdown on mobile */
    .dropdown-menu {
        max-width: calc(100vw - 30px);
        left: auto !important;
        right: 10px !important;
    }

    html[lang^="ar"] .dropdown-menu {
        right: auto !important;
        left: 10px !important;
    }
}

/* Fix Dropdown Transform Issue */
.dropdown-menu,
.dropdown-menu.show,
.dropdown-menu[style*="transform"],
.dropdown-menu[style*="translate3d"] {
    transform: none !important;
    -webkit-transform: none !important;
}

/* Extra small screens (iPhone 15 Pro: 393px width) */
@media (max-width: 430px) {
    .navbar-custom .button-menu-mobile {
        width: 50px !important;
        height: 60px !important;
        line-height: 60px !important;
        font-size: 22px !important;
    }

    .topnav-menu .nav-link {
        padding: 0 6px !important;
    }

    .navbar-custom .topnav-menu .nav-user img {
        width: 32px !important;
        height: 32px !important;
    }

    .navbar-custom .topnav-menu .pro-user-name {
        display: none !important;
    }

    /* Fix sidebar width on very small screens */
    .left-side-menu {
        max-width: 280px !important;
        width: 85% !important;
    }

    /* Reduce notification badge size */
    .noti-icon-badge {
        width: 18px !important;
        height: 18px !important;
        font-size: 10px !important;
        line-height: 18px !important;
    }

    /* Adjust topbar height on very small screens */
    .navbar-custom {
        min-height: 60px !important;
    }
}

/* Fix for cards and content on mobile */
@media (max-width: 991.98px) {
    .card {
        margin-bottom: 15px !important;
    }

    .page-title-box {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }

    /* Improve table responsiveness */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }

    /* Fix form controls on mobile */
    .form-control,
    .select2-selection--single {
        font-size: 16px !important;
    }
}

/* Prevent body scroll when sidebar is open */
@media (max-width: 991.98px) {
    body.sidebar-enable {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }
}

/* ===== PAGE LOADER - Light & Fast (no image) ===== */
.page-loader {
    position: fixed;
    inset: 0;
    background: #f8fafc;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.32s ease-out, visibility 0.32s ease-out;
}

body[data-theme="dark"] .page-loader {
    background: #0f172a;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.page-loader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    text-align: center;
}

.loader-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #002060;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

body[data-theme="dark"] .loader-brand-name {
    color: #22c55e;
}

.loader-text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 1rem;
}

.loader-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}

body[data-theme="dark"] .loader-text {
    color: #94a3b8;
}

.loader-dots {
    display: flex;
    gap: 3px;
    align-items: center;
}

.loader-dots span {
    width: 5px;
    height: 5px;
    background: #002060;
    border-radius: 50%;
    animation: loaderDot 0.9s ease-in-out infinite;
}

body[data-theme="dark"] .loader-dots span {
    background: #22c55e;
}

.loader-dots span:nth-child(1) { animation-delay: 0s; }
.loader-dots span:nth-child(2) { animation-delay: 0.15s; }
.loader-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes loaderDot {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
    40% { transform: translateY(-5px); opacity: 1; }
}

/* Progress bar - thin, GPU-friendly */
.loader-progress-bar {
    width: 180px;
    height: 2px;
    background: rgba(0, 32, 96, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

body[data-theme="dark"] .loader-progress-bar {
    background: rgba(34, 197, 94, 0.1);
}

.loader-progress-fill {
    height: 100%;
    width: 36%;
    border-radius: 2px;
    background: #002060;
    transform-origin: left;
    animation: loaderProgress 1s ease-in-out infinite;
    will-change: transform;
}

body[data-theme="dark"] .loader-progress-fill {
    background: #22c55e;
}

@keyframes loaderProgress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(380%); }
}

body.loading {
    overflow: hidden;
}

.page-loader.hidden .page-loader-content {
    animation: loaderExit 0.28s ease-out forwards;
}

@keyframes loaderExit {
    to { opacity: 0; transform: scale(0.98); }
}

@media (max-width: 576px) {
    .loader-brand-name { font-size: 1.25rem; margin-bottom: 0.5rem; }
    .loader-text { font-size: 0.8125rem; }
    .loader-progress-bar { width: 140px; }
}

/* ===== CONTAINER FLUID STYLES ===== */
.container-fluid {
    padding-top: 0 !important;
}

.logo-box .logo {
    line-height: 0 !important;
}

/* ===== MODERN NOTIFICATION DROPDOWN STYLES ===== */
.modern-notification-dropdown {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: none;
    padding: 0;
    overflow: hidden;
}

.modern-notification-dropdown .noti-title {
    background: linear-gradient(135deg, #002060 0%, #003080 100%);
    color: white;
    padding: 15px 20px;
    border-bottom: none;
    margin: 0;
}

.modern-notification-dropdown .noti-title h5 {
    color: white;
    font-weight: 700;
    font-size: 16px;
    margin: 0;
    display: flex;
    align-items: center;
}

.modern-notification-dropdown .noti-title i {
    font-size: 18px;
}

.modern-notify-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.modern-notify-item:hover {
    background-color: #f8fbff;
    text-decoration: none;
    color: inherit;
}

.modern-notify-item.unread {
    background-color: #f0f7ff;
    border-left: 4px solid #002060;
}

.modern-notify-item.unread:hover {
    background-color: #e8f2ff;
}

.notify-icon-wrapper {
    flex-shrink: 0;
    margin-left: 0;
    margin-right: 12px;
}

.modern-notify-item .notify-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    margin: 0;
    float: none;
}

.modern-notify-item .notify-icon.bg-primary {
    background: linear-gradient(135deg, #002060 0%, #003080 100%) !important;
}

.modern-notify-item .notify-icon.bg-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
}

.notify-content {
    flex: 1;
    min-width: 0;
}

.modern-notify-item .notify-details {
    margin: 0 0 5px 0;
    color: #002060;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.modern-notify-item .notify-time {
    color: #6c757d;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

.empty-notification {
    padding: 30px 20px !important;
}

.empty-notification .text-center {
    color: #6c757d;
}

.modern-notify-all {
    background: linear-gradient(135deg, #002060 0%, #003080 100%);
    color: white !important;
    padding: 12px 20px;
    font-weight: 600;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-notify-all:hover {
    background: linear-gradient(135deg, #003080 0%, #0040a0 100%);
    color: white !important;
    text-decoration: none;
}

.modern-notify-all i {
    font-size: 16px;
}

.noti-scroll {
    max-height: 300px;
}

/* ===== PWA INSTALL BANNER STYLES ===== */
#pwa-install-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 10000;
    max-width: 500px;
    width: calc(100% - 40px);
    background: linear-gradient(135deg, #002060 0%, #003080 100%);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 32, 96, 0.3);
    padding: 0;
    opacity: 0;
    transition: all 0.3s ease;
    direction: rtl;
}

#pwa-install-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.pwa-install-banner-content {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
}

.pwa-install-banner-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pwa-install-banner-icon i {
    font-size: 24px;
    color: white;
}

.pwa-install-banner-text {
    flex: 1;
    color: white;
}

.pwa-install-banner-text strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.pwa-install-banner-text small {
    display: block;
    font-size: 13px;
    opacity: 0.9;
}

.pwa-install-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.pwa-install-banner-actions .btn-primary {
    background: white;
    color: #002060;
    border: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pwa-install-banner-actions .btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pwa-install-banner-actions .btn-link {
    color: white;
    text-decoration: none;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.pwa-install-banner-actions .btn-link:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

/* Mobile Responsive for PWA Banner */
@media (max-width: 576px) {
    #pwa-install-banner {
        bottom: 10px;
        width: calc(100% - 20px);
        max-width: none;
    }

    .pwa-install-banner-content {
        padding: 12px 15px;
        gap: 12px;
    }

    .pwa-install-banner-icon {
        width: 40px;
        height: 40px;
    }

    .pwa-install-banner-icon i {
        font-size: 20px;
    }

    .pwa-install-banner-text strong {
        font-size: 14px;
    }

    .pwa-install-banner-text small {
        font-size: 12px;
    }

    .pwa-install-banner-actions .btn-primary {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Dark Theme Support for PWA Banner */
body[data-theme="dark"] #pwa-install-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* ===== OFFLINE INDICATOR STYLES ===== */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 12px 20px;
    text-align: center;
    z-index: 10001;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    direction: rtl;
}

.offline-indicator.show {
    transform: translateY(0);
}

.offline-indicator-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
}

.offline-indicator-content i {
    font-size: 18px;
}

.offline-visits-note {
    opacity: 0.95;
    font-size: 13px;
}

.offline-visits-link {
    display: inline-flex;
    align-items: center;
    margin-right: 12px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: background 0.2s, transform 0.15s;
}

.offline-visits-link:hover {
    background: rgba(255, 255, 255, 0.35);
    color: white;
    transform: translateY(-1px);
}

/* Adjust body padding when offline indicator is shown */
body.offline-active {
    padding-top: 48px;
}

@media (max-width: 991.98px) {
    .offline-indicator {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* ===== DARK MODE TOGGLE STYLES ===== */
.dark-mode-toggle {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    padding: 8px 10px;
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.dark-mode-toggle .dark-mode-icon,
.dark-mode-toggle .light-mode-icon {
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.dark-mode-toggle .dark-mode-icon {
    color: #64748b;
}

.dark-mode-toggle .light-mode-icon {
    color: #fbbf24;
}

.dark-mode-toggle:hover .dark-mode-icon {
    color: #002060;
}

body[data-theme="dark"] .dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .dark-mode-toggle:hover .light-mode-icon {
    color: #22c55e;
}

/* Smooth Theme Transition */
body.theme-transitioning,
body.theme-transitioning *,
body.theme-transitioning *::before,
body.theme-transitioning *::after {
    transition: background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Dark Mode Icon Animation */
.dark-mode-toggle i {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-mode-toggle:hover i {
    transform: rotate(15deg) scale(1.1);
}

/* Icon fade animation */
.dark-mode-toggle .dark-mode-icon,
.dark-mode-toggle .light-mode-icon {
    opacity: 1;
}

/* ===== MODERN ANIMATIONS & ENHANCEMENTS ===== */
/* Remove all animations from images */
img,
.image img,
.field-image img,
.views-field img,
.avatar-xl,
.avatar-lg,
.avatar-md,
.avatar-sm,
.logo-box img,
.profile-image,
.user-avatar img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

img:hover,
.image img:hover,
.field-image img:hover,
.views-field img:hover {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Card Animations */
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 32, 96, 0.15);
}

/* Button Enhancements */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 32, 96, 0.25);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(40, 167, 69, 0.25);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.25);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 193, 7, 0.25);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(23, 162, 184, 0.25);
}

/* Table Row Animations */
.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    /* transform: scale(1.01); */
    box-shadow: 0 4px 8px rgba(0, 32, 96, 0.1);
}

/* Form Input Enhancements */
.form-control,
.form-select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus,
.form-select:focus {
    transform: translateY(-2px);
    box-shadow: 0 0 0 4px rgba(0, 32, 96, 0.15);
}

/* Navbar Enhancements */
.navbar-custom .nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 50%;
    width: 0;
    height: 2px;
    background: #002060;
    transition: width 0.3s ease, right 0.3s ease;
}

.navbar-custom .nav-link:hover::after {
    width: 100%;
    right: 0;
}

/* Sidebar Menu Enhancements */
.left-side-menu .menu-title {
    transition: all 0.3s ease;
}

.left-side-menu .menu-item {
    transition: all 0.3s ease;
}

.left-side-menu .menu-item:hover {
    transform: translateX(-5px);
}

html[lang^="ar"] .left-side-menu .menu-item:hover {
    transform: translateX(5px);
}

/* Dropdown Enhancements */
.dropdown-menu {
    animation: fadeInDown 0.3s ease-out;
    box-shadow: 0 8px 24px rgba(0, 32, 96, 0.15);
}

.dropdown-item {
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    transform: translateX(-5px);
    background-color: rgba(0, 32, 96, 0.1);
}

html[lang^="ar"] .dropdown-item:hover {
    transform: translateX(5px);
}

/* Modal Enhancements */
.modal-content {
    animation: fadeInUp 0.4s ease-out;
}

.modal-header {
    border-bottom: 2px solid rgba(0, 32, 96, 0.1);
}

/* Badge Enhancements */
.badge {
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.1);
}

/* Alert Enhancements */
.alert {
    animation: slideInRight 0.5s ease-out;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Progress Bar Enhancements */
.progress {
    transition: all 0.3s ease;
}

.progress-bar {
    transition: width 0.6s ease;
}

/* Icon Enhancements */
i[class^="fe-"],
i[class^="mdi-"],
i[class^="uil-"] {
    transition: all 0.3s ease;
}

.btn:hover i,
.nav-link:hover i,
.dropdown-item:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Page Title Animations */
.page-title-box {
    animation: fadeInDown 0.6s ease-out;
}

/* Stat Cards Animations */
.widget-rounded-circle,
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.widget-rounded-circle:hover,
.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 32, 96, 0.2);
}

/* Timeline Animations */
.timeline-item {
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(0, 32, 96, 0.15);
}

html[lang^="ar"] .timeline-item:hover {
    transform: translateX(5px);
}

/* Notification Bell Animation */
.noti-icon {
    transition: all 0.3s ease;
}

.noti-icon:hover {
    transform: scale(1.1) rotate(10deg);
}

.noti-icon-badge {
    animation: pulse 2s ease-in-out infinite;
}

/* Smooth Transitions for All Interactive Elements */
a:not(.btn):not(.badge),
button:not(.btn),
.nav-link,
.dropdown-item,
.card,
.table tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Specific Animations */
body[data-theme="dark"] .card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

body[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 8px 16px rgba(34, 197, 94, 0.3);
}

/* Mobile Responsive Animations */
@media (max-width: 768px) {
    .card:hover {
        transform: translateY(-2px);
    }

    .widget-rounded-circle:hover,
    .stat-card:hover {
        transform: translateY(-3px) scale(1.01);
    }
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Global Action Buttons */
.action-btn {
    background: linear-gradient(135deg, #002060 0%, #003080 100%);
    border: none;
    color: white;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #003080 0%, #0040a0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 32, 96, 0.3);
    color: white;
}

.action-btn.delete-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.action-btn.delete-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/*# sourceMappingURL=styles.css.map */
