.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  background: #3c3c3c;
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
  background: #010205;
}

.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
  display: none;
}

.ui-datepicker .ui-datepicker-prev::before,
.ui-datepicker .ui-datepicker-next::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: white;
}

.ui-datepicker .ui-datepicker-prev::before {
  content: '<';
}

.ui-datepicker .ui-datepicker-next::before {
  content: '>';
}

.ui-datepicker .ui-datepicker-prev:hover::before,
.ui-datepicker .ui-datepicker-next:hover::before {
  color: #ffffff;
}

.hide-scrollbar {
  scrollbar-width: none; /* For Firefox */
  -ms-overflow-style: none; /* For Internet Explorer and Edge */
}

.hide-scrollbar::-webkit-scrollbar {
  display: none; /* For Chrome, Safari, and Opera */
}

/* Hide the day selection calendar */
.month-year-picker .ui-datepicker-calendar {
  display: none !important;
}

/* Center the "Done" button */
.ui-datepicker-buttonpane {
  text-align: center;
}

#ui-datepicker-div {
  width: 300px;
}

/* Start Active Button  */

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

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

.slider:before {
  position: absolute;
  content: '';
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

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

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

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

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

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

/* End Active Button  */

/* Keep layout stable when scrollbars appear/disappear (filters, tabs, table height) */
html {
  scrollbar-gutter: stable;
}

#sidebar {
  scrollbar-gutter: stable;
}

.app-main {
  scrollbar-gutter: stable;
}

/* Auth (Login) page */
.auth-page .auth-bg {
  background: radial-gradient(circle at 50% 20%, #ffe4ef 0%, #f8cfe0 55%, #f6c3d8 100%);
}

.auth-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 22px 20px;
  box-shadow: 0 0 40px #f399c0;
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.auth-logo {
  width: 88px;
  height: 88px;
}

.auth-welcome {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  letter-spacing: 0.01em;
}

.auth-title {
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 500;
  color: #111827;
}

.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.auth-input {
  border-radius: 8px;
  width: 100%;
  height: 40px;
  border: 1px solid #cfd5dc;
  background: #f6f7f9;
  padding: 0 16px;
  font-size: 14px;
  color: #111827;
  outline: none;
  box-shadow: 0 2px 0 rgba(17, 24, 39, 0.04);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.auth-input--with-toggle {
  padding-right: 3rem;
}

.auth-input::placeholder {
  color: #c2c7cf;
  font-weight: 400;
}

.auth-input:focus {
  background: #ffffff;
  border-color: #c2c8d0;
  box-shadow:
    0 0 0 3px rgba(255, 59, 147, 0.1),
    0 2px 0 rgba(17, 24, 39, 0.04);
}

.auth-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  background: transparent;
  border: 0;
  font-size: 17px;
}

.auth-password-toggle:hover {
  background: rgba(17, 24, 39, 0.04);
}

.auth-submit {
  height: 46px;
  border-radius: 8px;
  background: #ff3b93;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 12px 28px rgba(255, 59, 147, 0.22);
  transition:
    transform 0.06s ease,
    filter 0.12s ease;
}

.auth-submit:hover {
  filter: brightness(0.98);
}

.auth-submit:active {
  transform: translateY(1px);
}

.auth-footer {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .auth-card {
    padding: 22px 18px 18px;
    border-radius: 14px;
  }

  .auth-logo {
    width: 80px;
    height: 80px;
  }

  .auth-title {
    font-size: 1.15rem;
  }
}
