/* styles/globals.css */

html,
body {
  padding: 0;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
  line-height: 1.2;
  font-size: 18px;
  background-color: #ffffff;
  /* Light background */
  color: #333333;
  /* Dark text */
}

a {
  color: #0070f3;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.loading-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(240, 240, 240, 0.8);
  z-index: 9999;
}

.loading-icon {
  fill: #3498db;
  animation: rotate 1s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.menu-container {
  display: flex;
  flex-wrap: wrap;
  /* Allows items to wrap into the next row */
  justify-content: space-between;
  /* Distributes space between items */
  max-width: 800px;
  /* Set a max width for the container */
}

.menu-item {
  width: 33%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f0f0f0;
  margin-bottom: 1px;
  color: black;
  font-size: 9px;
  cursor: pointer;
}

.even-row-light {
  background-color: #ffffff;
}

.odd-row-light {
  background-color: #f5f5f5;
}

.even-row-dark {
  background-color: #141414;
}

.odd-row-dark {
  background-color: #1d1d1d;
}

.marker-pin {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  position: absolute;
  transform: rotate(-45deg);
  left: 50%;
  top: 50%;
  margin: -15px 0 0 -15px;
}

.marker-pin::after {
  content: '';
  width: 24px;
  height: 24px;
  margin: 3px 0 0 3px;
  background: #333;
  position: absolute;
  border-radius: 50%;
}

.custom-div-icon i {
  position: absolute;
  width: 22px;
  font-size: 22px;
  left: 0;
  right: 0;
  margin: 10px auto;
  text-align: center;
}

.custom-div-icon-inner .marker-pin {
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
}

.custom-div-icon-inner .marker-pin::after {
  width: 16px;
  height: 16px;
  margin: 2px 0 0 2px;
}

.custom-div-icon-inner i {
  width: 16px;
  font-size: 16px;
  margin: 6px auto;
}

.leaflet-control-layers-toggle {
  background-color: #333;
  width: 36px;
  height: 36px;
}

.dataexpcontainer {
  display: flex;
  flex-wrap: wrap;
  /* Allows items to wrap onto new lines */
}

.dataexpitem {
  flex-basis: calc(100% / 3.1);

  /* Each item takes up one-third of the container's width */
  box-sizing: border-box;
  /* Ensures padding and border are included in the width */
}

.page-container.readonly {
  opacity: 0.7;
  pointer-events: none;
}

/* 
.page-container.readonly .ant-form-item-control-input {
  background-color: #f5f5f5;
}

.page-container.readonly .non-form-content {
  color: #888;
}

.page-container button {
  margin-bottom: 20px;
} */
.grid-item-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.autofill-override input:-webkit-autofill,
.autofill-override input:-webkit-autofill:hover,
.autofill-override input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
  -webkit-text-fill-color: inherit !important;
}

.ant-form-item-required:before {
  display: none !important;
}

.ant-form-item-required:after {
  display: inline-block;
  margin-left: 4px;
  color: #ff4d4f;
  font-size: 14px;
  font-family: SimSun, sans-serif;
  line-height: 1;
  content: '*';
}

.ant-modal .ant-modal-content {
  padding: 0px !important;
}

/* Changes for the UI improvements  */
/* Base styles for menu items */

.custom-menu .ant-menu-item {
  transition: all 0.3s ease;
  border-radius: 6px;
  padding: 12px 16px !important;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: rgba(255, 255, 255, 0.85);
  background-color: transparent;
}

/* Hover effect: Lighter overlay */
.custom-menu .ant-menu-item:not(.ant-menu-item-selected):hover {
  background-color: #3C8CFC !important;
  /* lighter version of #1B75FA */
  color: #ffffff !important;
}

/* Selected item: Purplish blue */
.custom-menu .ant-menu-item-selected {
  background-color: #1B75FA !important;
  color: #ffffff !important;
}

/* Ensure icons match label color */
.custom-menu .ant-menu-item .anticon {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
}

.custom-menu .ant-menu-item:hover .anticon,
.custom-menu .ant-menu-item-selected .anticon {
  color: #ffffff;
}

/* hover underline animation */

.custom-tabs .ant-tabs-ink-bar {
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.custom-tabs .ant-tabs-tab:not(.ant-tabs-tab-active):hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 2px;
  right: 12px;
  height: 4px;
  background-color: #1877F2;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  transition: all 0.3s ease;
}
