@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Overpass:wght@400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Overpass:wght@400;500;600;700;800;900&family=Poppins:wght@200;300;400;500;600;700;800&display=swap");

:root {
  /* Colors */
  --primary: #c7ac9a;
  --weak: #83c5eb;
  --moderate: #e59357;
  --severe: #e55757;
  --white: #ffffff;
  --bgcolor: #161b2e;
  --bgcolor2: #111525;

  --list-border: 1px solid #ddd;
}

html {
  background: var(--bgcolor2);
}

html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  font-family: "Inter", sans-serif;
  font-family: "Overpass", sans-serif;
}

body {
  background: #f8f8f8;
  color: black;
  height: 100%;
  width: 100%;
}

@media (max-width: 588px) {
  body {
    width: fit-content;
  }
}

body > header {
  background-color: var(--bgcolor);
  padding: 10px;
  color: white;
  border-bottom: 1px solid #838383;
}

main {
  background: var(--bgcolor2);
  gap: 1rem;
}

header h3,
nav a,
h1 {
  color: white !important;
}

h3 {
  color: black;
}

.tabs {
  display: flex;
  gap: 10px;
}

.tablabel {
  background: #555;
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
}

.tablabel:active {
  background: #777;
}

.main-content {
  padding: 20px;
}

.leftnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.city {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none !important;
}

.city img {
  width: 50px;
  height: 50px;
}

.rightnav {
  display: flex;
  justify-content: end;
  align-items: center;
}

.user {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  flex: none;
}

.user img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 48px;
  border: 1px solid #f8f1e9;
  background: url(<path-to-image>), lightgray 50% / cover no-repeat, #d9d9d9;
}

/* .flow {
  flex: none !important;
  width: 66%;
  align-items: center;
} */

.flow a {
  text-decoration: none;
  color: black;
  padding: 2%;
}

.active {
  background: var(--bgcolor2);
  border-radius: 5px;
}

.activity,
.login {
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0px 5px 20px 0px rgba(0, 0, 0, 0.05);
  padding: 2%;
}

.login {
  margin: 0;
  max-width: 25rem;
}

.loginParent {
  justify-content: center;
}

.activity2 {
  margin-top: 2%;
}

.activity-settings,
.activity-settings2,
.login-settings {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.activity-settings2 {
  gap: 0;
}

.search-container form,
.dropdown-container form,
.zoomButtons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dropdown-container,
.search-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.generateButton,
.loginButton,
.loginButton a,
.cancelButton,
.backButton,
a#back,
a[role="button"],
.zoomButtons button {
  width: 133px;
  height: 41px;
  background: var(--bgcolor);
  padding: 0;
  font-family: "Overpass", sans-serif;
  color: white;
  text-decoration: none;
}

.dashboardButton {
  width: 250px;
  height: 41px;
  background: var(--primary);
  padding: 0;
  margin: 2%;
  font-family: "Overpass", sans-serif;
  color: white;
  text-decoration: none;
}

.loginButton a {
  background: none !important;
}

.generateButton,
.generateButton#delete {
  margin-left: auto;
}

.generateButton#delete {
  background-color: var(--severe);
}

.generateButton a {
  text-decoration: none;
  color: var(--white);
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.apply-filters {
  margin: 0;
}

.graphButton {
  display: flex;
  justify-content: center;
}
/* CANCEL BUTTON */
.cancelButton {
  color: #696969;
  background: #f7f7f7;
  border: solid 1px #d6d6d6;
}

.cancelButton:hover {
  color: var(--white);
}

.buttonGroup,
.zoomButtons {
  display: flex;
  margin-left: auto;
  gap: 1rem;
}

.back-container {
  display: block;
}

a#back {
  display: flex;
  text-decoration: none;
  color: white;
  justify-content: center;
  align-items: center;
  padding: 0;
}

a[role="button"] {
  display: flex;
  justify-content: center;
  align-items: center;
}

.zoomButtons button {
  width: 50px;
  padding: 5px;
  background-color: white;
  border: 1px solid #bdbdbd;
  color: #333333;
}

.zoomButtons button#selected {
  background-color: #a38977;
  color: white;
  border: none;
}

.search-container input,
.dropdown-container select,
input {
  width: auto;
  height: 41px;
  padding: 2% 5%;
  margin: auto;
  font-family: "Overpass", sans-serif;
}

.dropdown-container select#page-count {
  width: auto;
  padding-right: 2rem;
  background-color: #f4f6f8;
  border: none;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 2% 0 0 0;
  color: white;
}

table h3 {
  color: white;
}

td,
th {
  text-align: left;
}

tr:nth-child(even) {
  background-color: #f4f6f8;
}

table#buildings-details {
  margin: auto;
  width: 80%;
}

table#buildings-details td {
  text-align: center;
}

table#buildings-details tr:nth-child(even) {
  background-color: transparent;
}

table#buildings-details h3 {
  margin: 0;
}

.weak,
.moderate,
.severe .imv {
  border-radius: 10px;
  width: 3rem;
  display: inline-flex;
  padding: 3px 28px;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
  border: none !important;
  box-sizing: border-box;
}

.weak {
  background: var(--weak);
}

.moderate {
  background: var(--moderate);
}

.severe,
.imv {
  background: var(--severe);
}

.imv {
  padding: 1% 3%;
  border-radius: 10px;
}

.location {
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0px 5px 20px 0px rgba(0, 0, 0, 0.05);
  padding: 2%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: center;
  align-items: stretch;
  row-gap: var(--cards-row-gap);
  column-gap: var(--cards-column-gap);
  margin-left: auto;
  margin-right: auto;
  margin-top: 2%;
  margin-bottom: 2%;
}

iframe {
  border-radius: 10px;
}

.location-search input {
  width: 100%;
  padding: 2%;
}

.location-result {
  border-radius: 12px;
  background: #f4f6f8;
  padding: 1.5% 2%;
  margin: 1% 0;
}

.location-result h5 {
  opacity: 0.7;
  font-weight: 100;
}

.machinelist,
.accelerographlist {
  width: 7rem;
  padding: 0;
}

#list {
  width: auto;
  height: 30px;
  padding: 2%;
  margin: auto;
  border-radius: 10px;
}

#noti_Container {
  position: relative;
}

#noti_Button {
  width: 22px;
  height: 22px;
  line-height: 22px;
  border-radius: 50%;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  background: var(--bgcolor);
  margin: 0 10px 0 10px;
  cursor: pointer;
  height: 100%;
  display: flex;
  align-items: center;
}

#noti_Counter {
  display: block;
  position: absolute;
  color: var(--white);
  font-size: 12px;
  font-weight: normal;
  padding: 1px 3px;
  margin: -8px 0 0 25px;
  border-radius: 2px;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  z-index: 1;
}

#notifications {
  /* display: none;
  position: absolute;
  top: 30px;
  left: -290px;
  background: var(--white);
  border: solid 1px rgba(100, 100, 100, 0.2);
  -webkit-box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  z-index: 20;
  width: 325px;
  border-radius: 15px;
  padding: 0; 
  background: var(--Gray-White, var(--white)); */
  /* box-shadow: 0px 5px 10px 0px #e4e8ee; */
  /* overflow-y: auto;
  color: black; */
  display: none;
  left: -25px;
  width: 80vw;
  max-height: 50vh;
  max-width: 240px;
  overflow-y: auto;
  position: absolute;
  transform: translateX(-50%);
  background: var(--white);
  border: solid 1px rgba(100, 100, 100, 0.2);
  -webkit-box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  z-index: 20;
  border-radius: 15px;
  padding: 0;
  color: black;
}

#notifications::-webkit-scrollbar {
  display: none;
}

#notifications:before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  color: transparent;
  border: 10px solid #ccc;
  border-color: transparent transparent var(--white);
  margin-top: -20px;
  margin-left: 10px;
}

#notifications h2 {
  margin: 10px;
  padding: 2%;
  text-align: left;
  border-bottom: solid 0.1px #d9d9d9;
}

.notifContent {
  margin: 0 10px;
  padding: 2%;
}

.notifContent article {
  display: flex;
  gap: 1rem;
  height: auto;
  align-items: center;
  border-bottom: solid 0.1px #d9d9d9;
  padding: 5% 3%;
}

.clickable-notification p {
  text-align: justify;
}

.notifContent span {
  background: #83c5eb;
  width: 32px;
  height: 16px;
  display: inline-block;
  border-radius: 50%;
  padding: 8px;
}

.notifContent p {
  margin: 0;
}

.seeAll {
  background: #f6f7f8;
  padding: 8px;
  font-size: 12px;
  font-weight: bold;
  border-top: solid 1px rgba(100, 100, 100, 0.3);
  text-align: center;
}
.seeAll a {
  color: #3b5998;
}
.seeAll a:hover {
  background: #f6f7f8;
  color: #3b5998;
  text-decoration: underline;
}

.grid {
  width: 100%;
}

.color1 {
  background: white;
  height: 50vh;
}

.color2 {
  background: var(--weak);
  height: 50vh;
}

.color3 {
  background: #e59357;
  height: 50vh;
}

.color4 {
  background: #e55757;
  height: 50vh;
}

form h5 {
  color: var(--white);
}

.login {
  text-align: center;
  margin: 12% 20%;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login-settings {
  flex-direction: column;
}

.dropdown-content {
  display: block; /* Changed from 'none' to 'block' */
  visibility: hidden; /* Initially hidden */
  opacity: 0; /* Start with 0 opacity */
  position: absolute;
  background-color: var(--white);
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.192);
  border-radius: 5%;
  top: 100%;
  right: 0;
  overflow: hidden;
  z-index: 1;
  transition: opacity 0.3s, transform 0.3s; /* Transition for opacity and transform */
  transform: translateY(-20px); /* Start slightly above the actual position */
}

.show-dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0); /* Move to actual position */
}

.dropdown-content a {
  color: #333333 !important; /* Darker text for better readability */
  padding: 12px 24px; /* Increased side padding */
  text-decoration: none;
  display: block;
  transition: background-color 0.3s; /* Smooth transition for hover effect */
  border-bottom: 1px solid #eaeaea; /* Light grey border for grid lines */
  text-align: start;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: #f8f1e9; /* Light grey background on hover */
}

.dropdown-content::before {
  content: "";
  position: absolute;
  top: -10px; /* Position above the dropdown */
  left: 20px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent var(--white) transparent;
}

svg {
  right: 20px;
  cursor: pointer;
}

tbody td,
tbody th {
  font-family: "Overpass", sans-serif;
  text-align: left;
}

tbody th {
  color: #696969;
  font-size: 0.8rem;
  font-weight: 100;
}

.intensity {
  text-align: start;
}

.title {
  font-family: "Poppins", sans-serif;
  color: var(--white);
}

.page-name {
  margin: 1% 0 0 0;
}

label {
  color: var(--white);
}

.label-input {
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 722px) {
  .leftnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .city {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none !important;
    width: 100%;
    justify-content: center;
    margin: 1rem 0;
  }

  .flow {
    flex: none !important;
    align-items: center;
    width: 100%;
  }

  .flow.end {
    justify-content: center;
  }
}

.login-page {
  width: auto;
  height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bgcolor2);
}

.login-box {
  width: 80%;
  justify-content: center;
}

.login-box i {
  font-size: 100px;
  padding: 2%;
}

.login-left {
  background-image: url(/assets/img/login.jpg);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

.ellipsis {
  padding: 70% 0 0 0;
  -webkit-filter: invert(100%); /* Safari/Chrome */
  filter: invert(100%);
  height: 100% !important;
  width: 100% !important;
}

.login-city,
.forgot-screen {
  justify-content: center;
  padding: 0 0 3% 0;
}

.forgot-screen {
  flex-direction: column;
}

.forgot-screen p {
  margin-top: 0 !important;
}

.time-buttons {
  display: flex;
  gap: 0.5rem;
  /* height: 4rem !important; */
  align-items: center;
  flex-wrap: wrap;
}

.seismic-activity {
  font-size: 20px;
  width: auto;
  text-align: center;
  margin: 0;
  height: auto;
  min-height: 4rem;
  padding: 0 15px;
  background: var(--bgcolor);
}

.filter {
  display: flex;
  align-items: end;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding: 0.5rem 1rem;
}

.pages {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
}

.snackbar {
  visibility: hidden;
  min-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 2px;
  padding: 16px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  border-radius: 1rem;
}
.show {
  visibility: visible;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}
@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}
@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

.errorMessage {
  color: var(--severe);
}

#building-locations {
  height: 450px;
  overflow-y: auto;
}

.search-location {
  width: 100%;
}

.cancelbtn,
.deletebtn {
  width: 133px;
  height: 41px;
  padding: 0;
}

.cancelbtn {
  background-color: #ccc;
  color: black;
}

.deletebtn {
  background-color: #f44336;
}

.container {
  padding: 16px;
  text-align: center;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: #474e5d;
  padding-top: 50px;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
}

hr {
  border: 1px solid #f1f1f1;
  margin-bottom: 25px;
}

.close {
  position: absolute;
  right: 35px;
  top: 15px;
  font-size: 40px;
  font-weight: bold;
  color: #f1f1f1;
}

.close:hover,
.close:focus {
  color: #f44336;
  cursor: pointer;
}

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

@media screen and (max-width: 300px) {
  .cancelbtn,
  .deletebtn {
    width: 100%;
  }
}

u,
td a,
#machine-list a {
  color: black;
}

.asterisk,
.required-warning {
  color: var(--severe) !important;
}

#main {
  display: table;
  width: 100%;
  height: 100vh;
  text-align: center;
}

.fof {
  display: table-cell;
  vertical-align: middle;
}

.fof h1 {
  font-size: 50px;
  display: inline-block;
  padding-right: 12px;
}

.fof p {
  display: inline-block;
  animation: type 0.5s alternate infinite;
  color: white;
}

@keyframes type {
  from {
    box-shadow: inset -3px 0px 0px #888;
  }
  to {
    box-shadow: inset -3px 0px 0px transparent;
  }
}

.date-filter {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.date-filter input {
  margin: 0;
}

.time-filters {
  display: flex;
  justify-content: space-between;
  padding: 1% 0;
  flex-wrap: wrap;
}

.pointer {
  cursor: pointer;
}

.pointer:hover {
  background: #f1f1f1;
}

.login-form {
  width: 100%;
}

form.login-form > input {
  padding: var(--common-padding);
  width: 100%;
}

.table-section,
.table-details,
.activity {
  overflow-x: auto !important;
}
.table-section {
  display: grid !important;
}

ul {
  display: flex;
  justify-content: space-between;
}

/* li {
  width: 10rem;
} */

.table-details > .flow {
  flex-wrap: nowrap;
}

.total {
  background: var(--bgcolor);
  border-radius: 10px;
  justify-content: space-around;
  color: white;
  text-align: center;
  padding: 2%;
  margin: 1% 0;
}

.total h3 {
  color: white;
}

ul {
  display: flex;
  justify-content: space-between;
  border-bottom: var(--list-border);
  color: white;
}

li {
  border-bottom: none !important;
}

li {
  width: 20%;
}

.recent {
  background: rgba(255, 255, 255, 0.29);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.download {
  flex: none;
}

.content {
  background: var(--bgcolor);
  align-items: center;
}

.start {
  text-align: start;
}

.end {
  text-align: end;
}

.tableMobile,
.tableMobile2 {
  background: var(--bgcolor);
}

.mobile,
.mobile2 {
  display: none;
}

.locationContainer {
  display: flex;
  align-items: center;
}

@media only screen and (max-width: 1340px) {
  .bigScreen2 {
    display: none;
  }
  .mobile2 {
    display: block;
  }

  .mobile2 a {
    text-decoration: none;
  }

  .tableMobile2 {
    justify-content: space-between;
  }

  li {
    width: auto;
  }

  form h5 {
    display: none;
  }

  .locationContainer {
    display: block;
  }
}

@media only screen and (max-width: 790px) {
  .bigScreen {
    display: none;
  }
  .mobile {
    display: block;
  }

  .mobile a {
    text-decoration: none;
  }

  .tableMobile {
    justify-content: space-between;
  }

  li {
    width: auto;
  }

  form h5 {
    display: none;
  }

  .locationContainer {
    display: block;
  }
}

.remember-me {
  display: flex;
  align-items: center;
  justify-content: center;
}

#rememberMe {
  height: 15px;
}

.remember-me label {
  color: black;
  height: 16px;
}

.listButtons {
  display: flex;
  gap: 1%;
  flex-wrap: wrap;
}

.button-container {
  width: 24%;
}

.iconButton {
  background: #424245;
  width: 24%;
}

.iconButton:hover {
  background: #424245;
}

.iconButton2 {
  background: #626481;
  width: 100%;
}

.iconButton3 {
  background: #424245;
  width: 24%;
  cursor: default;
}

.iconButton3:hover {
  background: #424245;
}

.icons {
  filter: invert(100%);
  height: 100% !important;
  width: 100% !important;
}

.edit {
  margin: 2% 0;
}

.delButton {
  background: var(--red);
}

.graph {
  background: #ebebeb;
}

td {
  color: black !important;
}

.loader-container {
  position: absolute;
  right: 50%;
  top: 15%;
  z-index: 999;
}

.loader {
  border: 16px solid #f3f3f3; /* Light grey */
  border-top: 16px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
  display: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.graph {
  background: #ebebeb;
}

.graph h3,
.date-filter label {
  color: black;
}

.filter-date {
  gap: 2%;
  display: flex;
  align-items: center;
  /* flex-wrap: wrap; */
}

.date-filter,
.filter-date {
  flex-wrap: wrap;
}

.date-filter input {
  width: revert;
}

.graph-description {
  padding: 1% 0 2% 0;
}

.hidden-button {
  display: none;
  width: 100%;
}

.end.show-buttons .hidden-button {
  display: inline-block;
  width: 100%;
}

.tableMobile {
  position: relative;
}

.end {
  position: relative;
}

.end.show-buttons .hidden-button {
  display: block;
}

.three {
  width: 33.3%;
}

.four {
  width: 25%;
}

.five {
  width: 20%;
}

.for-display,
.for-display h3,
.display-only {
  background: none;
  border-bottom: none !important;
  text-align: center;
  color: white;
}

.display-only {
  text-align: center;
  background: none;
}

textarea {
  resize: none;
}
