@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

html {
  width: 100%;
  height: 100%;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
  background-color: whitesmoke;
}


* {
  box-sizing: border-box;
}

.row::after {
  content: "";
  clear: both;
  display: block;
}

[class*="col-"] {
  float: left;
  padding: 1rem;
}

/* For desktop: */
.col-1 {
  width: 8.33%;
}

.col-2 {
  width: 16.66%;
}

.col-3 {
  width: 25%;
}

.col-4 {
  width: 33.33%;
}

.col-5 {
  width: 41.66%;
}

.col-6 {
  width: 50%;
}

.col-7 {
  width: 58.33%;
}

.col-8 {
  width: 66.66%;
}

.col-9 {
  width: 75%;
}

.col-10 {
  width: 83.33%;
}

.col-11 {
  width: 91.66%;
}

.col-12 {
  width: 100%;
}

@media only screen and (max-width: 768px) {

  /* For mobile phones: */
  [class*="col-"] {
    width: 100%;
  }
  section {
    margin: 0px;
  }
}

/* General Styles */
body {
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  border: 5px solid #F7B39C;
  border-radius: 25px;
  padding-right: 15px;
  padding-left: 15px;
  margin: 0 auto 20px auto;
  text-align: center;
  background-color: white;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

/* Loading Container */
.loading-container {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-percent {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  z-index: 999;
}

.loading-line-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  box-sizing: content-box;
  transition: box-shadow .5s;
  padding: 2px;
  position: relative;
  width: 40%;
  height: 20px;
  border: 2px solid #F7B39C;
  border-radius: 20px;
}

.loading-line {
  width: 100%;
  height: inherit;
  border-radius: inherit;
  background-image: linear-gradient(135deg, #B3BBE4, #CEEEF4);
}

@keyframes startLoading {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

.startLoading {
  animation-name: startLoading;
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
  animation-duration: 4s;
  animation-timing-function: cubic-bezier(0, 0, 0, 0);
}

/* Navbar */
.navbar {
  background: linear-gradient(to right, #F29696, #FAD6A5);
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  color: #F5F1DD;
  font-size: 1.25rem;
  text-decoration: none;
  text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
  margin-right: auto;
}

.navbar-nav {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin-left: 1rem;
}

.nav-link {
  color: white;
  text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
  text-decoration: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.nav-link i {
  margin-right: 0.5rem;
}

.nav-link:hover {
  text-decoration: underline;
}

/* Header */
header {
  margin: 2rem;
}

.header {
  text-align: center;
}

.header .container {
  max-width: 1200px;
  margin: 0 auto;
}

.header h1 {
  margin: 0;
  margin-top: 1rem;
  color: black;
  font-weight: bold;
  font-size: 2rem;
}

.icon {
  display: flex;
  margin: 1.25rem auto;
  justify-content: center;
  border: 1rem solid #f3f3f3;
  border-radius: 100%;
  border-top: 1rem solid #F29696;
  border-right: 1rem solid #FAD6A5;
  border-bottom: 1rem solid #F7E2CB;
  border-left: 1rem solid #F7B39C;
  max-width: 150px;
  height: auto;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

.image {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  margin: 0.625rem auto 1.25rem;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.video-background {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
}

.title {
  font-size: 2rem;
  color: rgb(32, 28, 28);
  margin: 2rem;
  text-align: center;
  text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.button {
  background: linear-gradient(to right, #F7B39C, #FAD6A5);
  border-radius: 1.5rem;
  cursor: pointer;
  text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
  display: block;
  margin: 0.625rem auto;
  margin-bottom: 2rem;
  padding: 1rem 2rem;
  font-size: 1.25rem;
  width: auto;
  height: auto;
}

.button:hover {
  background: #F29696;
}

/* Filter Bar */
section {
  margin: 2rem;
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #FAD6A5;
  color: white;
  margin: 0 auto;
  flex-wrap: wrap;
  border-radius: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.filter-bar h2 {
  margin: 0;
  padding: 0;
  text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
  font-size: 1.5rem;
}

.right-elements {
  display: flex;
  align-items: center;
  margin-right: 1rem;
  flex-wrap: wrap;
}

.right-elements>div {
  background-color: #F1E2D3;
  position: relative;
  color: #050404;
  padding: 7px;
  font-size: 16px;
  border: 1px solid black;
  border-radius: 2px;
  cursor: pointer;
  margin-left: 1rem;
}

.right-elements button {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #333;
}

.right-elements button i {
  margin-left: 5px;
}

.dropdown-date,
.dropdown-borough,
.dropdown-year {
  display: none;
  position: absolute;
  top: 35px;
  left: 0;
  background-color: #92b58d;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  width: 10rem;
  max-height: 15rem;
  overflow-y: auto;
}

.dropdown-date input[type="checkbox"],
.dropdown-borough input[type="checkbox"],
.dropdown-year input[type="checkbox"] {
  margin-right: 0.625rem;
}

.dropdown-date label,
.dropdown-borough label,
.dropdown-year label {
  display: block;
  cursor: pointer;
}

.dropdown-date label:hover,
.dropdown-borough label:hover,
.dropdown-year label:hover {
  background-color: #4682A9;
}

.right-elements>div:focus-within .dropdown-date,
.right-elements>div:focus-within .dropdown-borough,
.right-elements>div:focus-within .dropdown-year {
  display: block;
}

button.dropdate,
button.dropborough,
button.dropyear {
  outline: none;
}

/* Responsive Design */
@media (max-width: 600px) {
  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .right-elements {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0.625rem;
    /* 10px to rem */
    width: 100%;
  }

  .right-elements>div {
    margin-left: 0;
    margin-top: 0.625rem;
    /* 10px to rem */
    width: 100%;
  }

  .right-elements button {
    width: 100%;
    justify-content: space-between;
  }
}

/* Additional Breakpoints */
@media (max-width: 400px) {
  .filter-bar h2 {
    font-size: 1.25rem;
  }

  .right-elements button {
    font-size: 0.875rem;
  }

  .filter-bar {
    padding: 0.5rem;
  }

  .filter {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
  }
}


.filter {
  background: #CEEEF4;
  border: none;
  border-radius: 8px;
  padding: 7px 30px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  margin: 4px 2px;
  cursor: pointer;
  -webkit-transition-duration: 0.4s;
  transition-duration: 0.4s;
}

.filter:hover {
  background: #B3BBE4;
}

.col-total-borough,
.col-total-sale-price,
.col-total-lot,
.col-total-units {
  text-align: center;
  font-weight: bold;
  font-size: larger;
  background-color: #CEEEF4;
  width: 100%;
  max-width: 15rem;
  /* Limiting width for larger screens */
  padding: 1rem 1.5rem;
  border-radius: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  margin: 0.5rem auto;
  /* Adding margin for spacing */
}

.col-total-borough:hover,
.col-total-sale-price:hover,
.col-total-lot:hover,
.col-total-units:hover {
  background-color: #B3BBE4;
}

/* Summary Section */
.summary-container {
  display: flex;
  justify-content: space-between;
  text-align: center;
  margin-bottom: 2rem;
}

.summary-container div:hover {
  background-color: #B3BBE4;
}

.summary-container h1 {
  margin: 0;
  color: black;
  font-weight: bold;
  font-size: 2rem;
}

.summary-container p {
  color: rgb(0, 0, 0);
  text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
}

/* Charts */
.chart {
  width: 100%;
  max-width: 100vw;
  height: auto;
}

.chart canvas {
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  /* Maksimal lebar 100% dari kontainer */
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.p {
  display: block;
  background: linear-gradient(to right, #F7B39C, #FAD6A5);
  font-weight: bold;
  font-size: larger;
  color: rgb(255, 255, 255);
  margin-left: -15px;
  margin-right: -15px;
  padding: 2rem 0;
  border-radius: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  text-align: center;
  text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
}

/* Table */
#tableData_wrapper {
  margin: 3rem;
}

table.dataTable {
  background: white;
  margin: 0 auto;
  width: 100%;
}

/* Footer */
.footer {
  color: #000000;
  padding: 2rem 1rem;
  text-align: center;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer .row {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.footer .profile {
  text-align: center;
  margin: 1rem 0;
  display: inline-block;
}

.footer .profile img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.footer .nama p {
  margin: 0.5rem 0;
  background: linear-gradient(to right, #F7B39C, #FAD6A5);
  text-align: center;
  text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
}

.bottom-bar {
  Background: linear-gradient(to right, #F29696, #FAD6A5);
  color: #fff;
  text-align: center;
  text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
  padding: 1rem 0;
  width: 100%;
  bottom: 0;
  /* Menempelkan bottom bar ke bagian bawah */
  left: 0;
  /* Menempelkan bottom bar ke sisi kiri layar */
}

.email-link {
  color: #fff;
  text-decoration: none;
  margin-right: 1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-item {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .header h1 {
    font-size: 2rem;
  }

  .dropdown-date,
  .dropdown-borough,
  .dropdown-year {
    position: static;
    min-width: 100%;
    box-shadow: none;
    margin-top: 0.5rem;
  }

  .dropdate:hover+.dropdown-date,
  .dropborough:hover+.dropdown-borough,
  .dropyear:hover+.dropdown-year,
  .dropdown-date:hover,
  .dropdown-borough:hover,
  .dropdown-year:hover {
    display: block;
    position: static;
  }

  .summary-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .summary-container div {
    margin: 1rem;
  }

  .footer .row {
    flex-direction: column;
    align-items: center;
  }

  section {
    margin: 0px;
  }
}
