select {
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position-x: 100%;
  background-position-y: 5px;
}

select.fill-white {
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position-x: 100%;
  background-position-y: 1px;
}

select.focus-white:focus {
  color: #495057;
  background-color: #fff0;
}

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

.select2-container .select2-selection--single .select2-selection__rendered {
  padding-top: 5px;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  top: 6px;
}

.select2-container--default .select2-selection--single {
  background-color: #fff;
  border: 1px solid #d2d6da;
  border-radius: 4px;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__clear {
  cursor: pointer;
  float: right;
  font-weight: bold;
  height: 37px;
  margin-right: 20px;
  padding-right: 0px;
}

.resultareabox {
  box-shadow: 0px 1px 3px 0px lavender;
  padding-bottom: 13px;
  background: #d3d3d35c;
  padding-top: 10px;
}

.school-logo {
  height: 20px;
  width: 20px;
  margin-right: 5px;
  object-fit: contain;
  object-position: center;
}

.site-image-container h2 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.site-image {
  /* padding: 170px; */
  border-radius: 10px;
  text-align: center;
}

.site-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid lightgray;
}

.site-image a {
  color: white;
  border: 1px solid white;
  padding: 10px;
  border-radius: 10px;
  font-size: 10px;
  background: black;
}

.site-image a:hover {
  color: white;
  border: 1px solid white;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(310deg, #7928ca 0%, #ff0080 100%);
}

.icon-sm i {
  top: 0px;
}

.table-responsive {
  padding: 10px 25px 20px 25px;
}

.dataTables_processing.card > div > div {
  background-color: #cb0b9f !important;
}

.lazy-background {
  opacity: 0;
  transition: opacity 1s;
}

.lazy-background.loaded {
  opacity: 1;
}

.sidenav {
  background: #f2f2f2;
}

.sidenav::-webkit-scrollbar {
  width: 2px;
}

.shorten-title {
  display: inline-block;
  width: auto; /* adjust as needed */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-dashboard-flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.custom-card-dashboard {
  width: 100%;
  max-width: 48%;
}

.custom-dashboard-logs {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.custom-dashboard-logs .card {
  width: 100%;
  max-width: 48%;
}

.custom-dashboard-notice {
  margin-bottom: 10px;
}

.custom-dashboard-notice .card {
  border: 1px solid #d0f1ff;
}

.night-mode .custom-dashboard-notice .card {
  border: 1px solid transparent;
}

.night-mode .modal-content {
  background-color: #2b3037;
}

.copy_roll_id {
  cursor: pointer;
}

.night-mode .copy_roll_id,
.night-mode code {
  color: orange !important;
}

.copy_roll_id:hover {
  color: #007bff;
}

.night-mode .copy_roll_id:hover {
  color: white !important;
}

.night-mode .fa.text-success {
  color: #28a745 !important;
}

.night-mode .fa.text-danger {
  color: #dc3545 !important;
}

.night-mode .fa.text-warning {
  color: #ffc107 !important;
}

.ui.selection.dropdown {
  /* min-width: fit-content;
  max-width: fit-content; */
  font-family: "Open Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  font-size: 13px;
}

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

.result-arena-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.result-arena-filter-title {
  width: auto !important;
  font-family: "Open Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

.page-item .page-link,
.page-item span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #8392ab !important;
  margin: 0 3px !important;
  border-radius: unset !important;
  width: fit-content !important;
  height: fit-content !important;
  font-size: 0.875rem !important;
  padding: 5px 15px;
}

.night-mode .ui.selection.dropdown {
  background: #282d34;
}

.night-mode .ui.dropdown .menu .selected.item,
.night-mode .ui.dropdown.selected {
  background: rgb(41 49 60);
}

.night-mode .ui.dropdown .menu {
  background: rgb(67 75 87);
}

.night-mode .page-link.disabled,
.night-mode .disabled > .page-link {
  background-color: #1d2125;
}

.night-mode .ui.default.dropdown:not(.button) > .text,
.night-mode .ui.dropdown:not(.button) > .default.text {
  color: rgba(191, 191, 191, 0.87) !important;
}

.page-item.active .page-link {
  color: #fff !important;
}

.quick-search-img {
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 50%;
}

.student-quick-search {
  display: flex;
  align-items: center;
  justify-content: end;
}

.result-arena-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: red;
  padding: 3px 5px;
  border-radius: 5px;
  color: #fff !important;
  width: fit-content;
  font-size: 9px;
}

.night-mode .result-arena-new {
  background-color: #cb0b9f;
}

.result-arena-table-responsive {
  height: 100%;
  max-height: 500px;
}

.result-arena-table-responsive::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.result-arena-broadsheet-table thead th {
  color: black;
}

.result-arena-broadsheet-table thead th {
  border: 1px solid #bfc9d4;
}

.result-arena-broadsheet-table > :not(:last-child) > :last-child > * {
  border-bottom: 1px solid #262e36;
}

.result-arena-broadsheet-table tbody tr td {
  border: 1px solid #bfc9d4 !important;
}

.result-arena-broadsheet-table thead th {
  position: sticky;
  top: -10px;
  background: white;
  z-index: 5;
}

.result-arena-broadsheet-table .result-arena-sub-th th {
  position: sticky;
  top: 30px;
  background: white;
  z-index: 5;
  text-align: center;
}

.result-arena-broadsheet-placeholder {
  margin: 25px 40px !important;
  padding: 20px;
  border: 1px solid #bfc9d4;
  border-style: dashed;
  border-radius: 10px;
}

.night-mode .result-arena-broadsheet-table thead th {
  background-color: #49505c;
  border-color: #ccc !important;
}

.skeleton-loader {
  width: 100%;
  height: 100%;
  background: #f6f7f8;
}

.loader-header {
  width: 90%;
  height: 20px;
  background: #ddd;
  margin-bottom: 10px;
}

.loader-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.loader-block {
  width: 40%;
  height: 20px;
  background: #ddd;
}

@keyframes pulse {
  0% {
    background-color: #ddd;
  }

  50% {
    background-color: #eee;
  }

  100% {
    background-color: #ddd;
  }
}

.skeleton-loader .loader-header,
.skeleton-loader .loader-block {
  animation: pulse 2s infinite ease-in-out;
}

.result-arena-link-action:hover {
  color: #cb0b9f !important;
}

.result-arena-students-sub-count {
  font-size: 12px;
  font-weight: bold;
  color: #cb0b9f;
}

input[readonly] {
  background-color: #f0f0f0;
  cursor: not-allowed;
}

#restore-default-color {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem !important;
}

.play-button {
  background: none;
  border: none;
  cursor: pointer;
  color: #333; /* Controls the SVG color */
}

.play-button:hover {
  color: #007bff; /* Change color on hover */
}

/* Optional: Add animation */
.play-button svg {
  transition: transform 0.2s ease;
}

.play-button:hover svg {
  transform: scale(1.1);
}

.no-catype-icon {
  font-size: 43px;
  color: #808b9f9c !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__placeholder {
  font-size: 13px;
}

.result-left-btn:hover {
  color: red !important;
}

.night-mode .result-left-btn:hover {
  color: #a1b0ca !important;
}

.restore-has-left:hover {
  color: #cb6b0b !important;
}

.night-mode svg.fa-edit path {
  stroke: orange !important;
}

svg.fa-trash path {
  fill: #e21492 !important;
}

.night-mode .ni-atom.text-warning {
  color: #ffc107 !important;
}

.night-mode .ni-check-bold.text-success {
  color: #28a745 !important;
}

.night-mode .ni-check-bold.text-danger {
  color: #dc3545 !important;
}

.night-mode svg.fa-eye path {
  fill: #a1b0ca !important;
}

/* max width 400px */
@media (max-width: 400px) {
  li .form-check.form-switch.header-button.night-mode-header {
    display: none;
  }

  .container,
  .container-fluid,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    padding-right: 10px;
    padding-left: 10px;
  }

  .mx-4 {
    margin-right: 10px !important;
    margin-left: 10px !important;
  }

  nav nav h6 {
    display: none;
  }

  nav nav ol li:nth-child(3) {
    display: none;
  }
}

.night-mode .iziToast-texts strong,
.night-mode .iziToast-texts p {
  color: #000 !important;
}

.table-responsive {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; /* Use 'thin' for a smaller scrollbar */
}
.table-responsive::-webkit-scrollbar {
  width: 1px; /* Reduce the width for a smaller scrollbar */
}
.table-responsive::-webkit-scrollbar-thumb {
  border-radius: 5px; /* Adjust the border-radius for a more subtle look */
  background-color: rgba(0, 0, 0, 0.5); /* Add a color for better visibility */
}

@media (max-width: 576px) {
  .navbar .school-title {
    width: 100%;
    max-width: 200px;
    white-space: normal !important;
    word-wrap: break-word;
  }
}

/* 🌞 Default (Light Mode) */
.birthday-reminder-popup {
  border-radius: 16px !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15) !important;
  padding: 20px 24px !important;
  border: 2px solid #ff5ebc !important;
  background: #fff !important;
  color: #333 !important;
  animation: fadeInScale 0.25s ease-out;
}

/* Title */
.birthday-reminder-popup .swal2-title {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #222 !important;
  margin-bottom: 10px !important;
}

/* Content */
.birthday-reminder-popup .swal2-html-container {
  font-size: 15px !important;
  color: #444 !important;
}

/* Confirm button */
.birthday-reminder-popup .swal2-confirm {
  background-color: #ff5ebc !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  color: #fff !important;
  box-shadow: none !important;
}
.birthday-reminder-popup .swal2-confirm:hover {
  background-color: #ff4fa8 !important;
}

/* Close (X) button */
.birthday-reminder-popup .swal2-close {
  color: #ff5ebc !important;
  font-size: 20px !important;
  opacity: 0.8 !important;
  transition: opacity 0.2s ease;
}
.birthday-reminder-popup .swal2-close:hover {
  opacity: 1 !important;
}

/* Gentle scale animation */
@keyframes fadeInScale {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* 🌙 Dark Mode (when .night-mode is active on body or wrapper) */
.night-mode .birthday-reminder-popup {
  background: #1e1e1e !important;
  border: 2px solid #ff5ebc !important;
  color: #e5e5e5 !important;
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.1) !important;
}

.night-mode .birthday-reminder-popup .swal2-title {
  color: #fff !important;
}

.night-mode .birthday-reminder-popup .swal2-html-container {
  color: #ddd !important;
}

.night-mode .birthday-reminder-popup .swal2-confirm {
  background-color: #ff5ebc !important;
  color: #fff !important;
}

.night-mode .birthday-reminder-popup .swal2-close {
  color: #ff7cc8 !important;
}

.home-admission-form-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  border: none;
  border-radius: 8px;
  padding: 2px 0;
  background: #fafbfc;
}

.home-admission-form-divider span {
  flex: 0 0 auto;
  padding: 0 24px;
  font-weight: bold;
  font-size: 10px;
  background: #fafbfc;
  position: relative;
  z-index: 1;
}

.home-admission-form-divider::before,
.home-admission-form-divider::after {
  content: "";
  flex: 1 1 0%;
  border-bottom: 1px solid #ccc;
  margin: 0 8px;
  height: 0;
}

.night-mode .home-admission-form-divider {
  background: #212529;
}

.night-mode .home-admission-form-divider span {
  background: #212529;
}

.night-mode .home-admission-form-divider::before,
.night-mode .home-admission-form-divider::after {
  border-bottom: 1px solid #ccc;
}

.night-mode .home-admission-form-divider span {
  background: #212529;
  color: #fff;
}

.night-mode .home-admission-form-divider::before,
.night-mode .home-admission-form-divider::after {
  border-bottom: 1px solid #ccc;
}
