/* Fix Auto Fill Style */
@keyframes onAutoFillStart {
}

input:-internal-autofill-selected {
  animation-name: onAutoFillStart;
}

/* Error Fetch */
.error-fetch-wrapper {
  position: absolute;
  top: -50px;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Custom Bootstrap Modal open to Stop Body from Scrolling */
.stop-scrolling {
  height: 100%;
  overflow: hidden;
}

.modal-header {
  background-color: #052c65;
  color: #fefefe;
  border-radius: 0;
  border-color: #052c65;
  outline-color: #052c65;
}

.modal-header .modal-title {
  color: inherit;
}

.cursor-pointer {
  cursor: pointer;
}

/* !HIGHCHARTS CUSTOM */
.highcharts-contextmenu hr {
  margin: 0;
}
/* !HIGHCHARTS CUSTOM */

/* !IMAGES FULL HEIGHT ZOOMIN */
.imgres-wrap {
  height: 200px;
  overflow: hidden;
}

.imgres-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Accessibility Widget */

.asw-widget .asw-menu-btn {
  display: none !important;
}

.asw-footer {
  visibility: hidden !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Accessibility Widget */

/* Right side floating actions */
.weather-floating-actions {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  z-index: 1030;
}

.weather-temp {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  border: none;
  outline: none;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  margin-bottom: 20px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.weather-temp-value {
  font-weight: 600;
  color: #ffffff;
}

.weather-temp-value span {
  color: #ffc107;
}

.weather-temp:hover {
  background: rgba(0, 0, 0, 0.65);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.weather-floating-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: none;
  background: #052c65;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row-reverse;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    width 0.2s ease;
}

.weather-floating-icon {
  flex: 0 0 auto;
}

.weather-floating-icon i {
  font-size: 1.2rem;
}

.weather-floating-label {
  margin-right: 0;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  transform: translateX(4px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    max-width 0.2s ease,
    margin-right 0.2s ease;
}

.weather-floating-btn:hover {
  background: #084298;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  width: auto;
  padding: 0 14px;
  justify-content: flex-start;
}

.weather-floating-btn:hover .weather-floating-label {
  opacity: 1;
  transform: translateX(0);
  max-width: 200px;
  margin-right: 8px;
}

@media (max-width: 991.98px) {
  .weather-floating-actions {
    right: 12px;
  }
}

/* React Select inside Bootstrap form-floating */
.form-floating .react-select-form .react-select__control {
  min-height: calc(2.5rem + 2px);
  border-radius: 0.4rem;
}

.form-floating .react-select-form .react-select__control--is-focused {
  box-shadow: none;
}

.form-floating .react-select-form .react-select__value-container {
  padding-top: 0.9rem;
  padding-bottom: 0.4rem;
}

.form-floating .react-select-form + label {
  opacity: 0.65;
  transform: none;
}

.form-floating:has(.react-select-form .react-select__single-value) .react-select-form + label {
  opacity: 1;
  transform: scale(0.8) translateY(-0.4rem) translateX(0.2rem);
}

/* Weather popup card */
.weather-floating-popup {
  position: fixed;
  right: 96px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1029;
  pointer-events: none;
}

.weather-floating-card {
  width: 360px;
  max-height: 420px;
  border-radius: 18px;
  background: #4b4f58;
  color: #f8f9fa;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  padding: 20px 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  pointer-events: auto;
  transform-origin: right center;
  transform: scaleX(0) scaleY(0.2);
  opacity: 0;
  overflow: hidden;
}

.weather-floating-card--opening {
  animation: weather-floating-expand 0.45s ease forwards;
}

.weather-floating-card--closing {
  animation: weather-floating-collapse 0.45s ease forwards;
}

@keyframes weather-floating-expand {
  0% {
    transform: scaleX(0) scaleY(0.2);
    opacity: 0;
  }
  50% {
    transform: scaleX(1) scaleY(0.2);
    opacity: 1;
  }
  100% {
    transform: scaleX(1) scaleY(1);
    opacity: 1;
  }
}

@keyframes weather-floating-collapse {
  0% {
    transform: scaleX(1) scaleY(1);
    opacity: 1;
  }
  50% {
    transform: scaleX(1) scaleY(0.2);
    opacity: 1;
  }
  100% {
    transform: scaleX(0) scaleY(0.2);
    opacity: 0;
  }
}

.weather-floating-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.weather-floating-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.weather-floating-header-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.weather-floating-temp-main {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}

.weather-floating-temp-main span {
  color: #ffc107;
}

.weather-floating-condition {
  font-size: 0.9rem;
}

.weather-floating-location {
  font-size: 0.8rem;
}

.weather-floating-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.weather-floating-date {
  font-size: 0.8rem;
}

.weather-floating-icon-large i {
  font-size: 2.4rem;
}

.weather-floating-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.weather-floating-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}

.weather-floating-direction-text {
  display: inline-block;
  max-width: 120px;
  font-size: 0.7rem;
  line-height: 1.1;
  white-space: normal;
  text-align: right;
}

.weather-floating-meta-icon i {
  font-size: 1rem;
}

.weather-floating-scroll {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  max-height: 170px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.weather-floating-forecast-item {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 10px;
  font-size: 0.8rem;
}

.weather-floating-forecast-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.weather-floating-forecast-icon {
  border-radius: 50%;
}

.weather-floating-forecast-center {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.weather-floating-forecast-time {
  font-weight: 600;
  white-space: nowrap;
}

.weather-floating-forecast-main {
  text-align: left;
  line-height: 1.2;
}

.weather-floating-forecast-extra {
  font-weight: 500;
  white-space: nowrap;
}

.weather-floating-footer {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 991.98px) {
  .weather-floating-popup {
    right: 70px;
    top: auto;
    bottom: 80px;
    transform: none;
  }

  .weather-floating-card {
    width: 310px;
  }
}
