* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
}

body {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  /* color: #424242; */
  position: relative;
}

a {
  text-decoration: none;
  display: block; /* atau inline-block */
  line-height: 44px;
  color: #000;
}

/* navbar */

.nav-bar {
  width: 100%;
  min-height: 5px;
  background-color: #222222;
  border-bottom:2px solid black;
  border: solid rgba(#000, .2);
  position: absolute;
  z-index: 1000;
  top: 0;
  overflow: hidden;
}

.hamburger-menu {
  float: left;
  text-decoration: none;
  font-size: 20px;
  display: block;
  /* padding: 10px; */
  margin-left: 15px;
}

.hamburger-button {
  text-decoration: none;
  display: inline-block;
  color: #8c8c8c;
}

.header-logo {
  float: left;
  margin-left: 18px;
  margin-top: 8px;
}

.header-logo img{
  display: block;
  width: 30px;
}

.header-name {
  float: left;
  margin-left: 0px;
  margin-top: 12px;
  font-size: 10px;
  color: #8c8c8c;
}

.header-waktu {
  float: right;
  margin-right: 8px;
  margin-top: 14px;
  font-size: 10px;
  color: #8c8c8c;
}

/* sidebar navigation */
.sidebar-nav {
  z-index: 999;
  background-color: #222222;
  width: 50px;
  height: 100vh;
  position: absolute;
  padding-top: 45px;
  display: block;
  margin-left: auto;
  margin-right: auto;

  -webkit-transform: translate(-50px, 0);
  transform: translate(-50px, 0);

  transition: transform 0.3s ease;
}

.sidebar-nav-open {
  display: block;
  opacity: 1;
  -webkit-transform: translate(0, 0);
  transform: translate(0, 0);
}

.sidebar-nav-item {
  padding: 10px;
  text-align: center;
  line-height: 25px;
  width: 100%;
  filter: invert(60%) sepia(7%) saturate(11%) hue-rotate(340deg) brightness(92%) contrast(84%);
  margin-bottom: 1px;
  margin-left: auto;
  margin-right: auto;
}

.sidebar-nav-item-active {
  background-color: white;
  filter: none;
  color: black;
}

.sidebar-nav-item:hover {
  background-color: white;
  filter: none;
  color: black;
}

.sidebar-nav-item img {
  display: block;
  width: 25px;
}


.sidebar-nav-item p {
  margin-top: 5px;
  margin-left: -5px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5em;
}


/* left-bar checkbox disaster layer */
 .drawer-leftbar {
  padding: 10px;
  z-index: 998;
  background-color: white;
  width: 240px;
  height: 100vh;
  position: absolute;
  padding-top: 60px;
  -webkit-transform: translate(-240px, 0);
  transform: translate(-240px, 0);
  transition: transform 0.3s ease;
  -moz-transform: translate(-240px, 0);
  -ms-transform: translate(-240px, 0);
  -o-transform: translate(-240px, 0);
}

.drawer-leftbar {
  overflow-y: auto;
}

.leftbar-open {
  display: block;
  opacity: 1;
  -webkit-transform: translate(50px, 0);
  transform: translate(50px, 0);
}

.nav-header {
  text-align: center;
  display: list-item;
  width: 100%;
  font-size: 16px;
  font-weight: bold;
  padding-bottom: 10px;
  color: black;
  list-style: none;
  margin-bottom: 20px;
  border-bottom: 2px solid black;
}

.nav-item {
  line-height: 14px;
  display: list-item;
  width: 100%;
  text-align: left;
  font-size: 12px;
  list-style: none;
  margin-bottom: 15px;
}

.nav-item img {
  display: block;
  width: 20px;
  float: left;
  margin-right: 10px;
  margin-top: -1px;
}

#map {
  height: 100%;
  height: 100vh;
  width: 100%;
}

/* disaster detail */
.disaster-detail {
  z-index: 999;
  background-color: white;
  width: 220px;
  position: absolute;
  right:0;
  bottom: 0;
  border: solid rgba(#000, .2);
  border-color: whitesmoke;
  display: none;
  opacity: 0;
  height: 100vh;
  overflow-y: scroll;

  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.disaster-open {
  display: block;
  opacity: 1;
  -webkit-transform: translate(0, 0);
  transform: translate(0, 0);
}

.slide-up-button {
  display: none;
}

.disaster-detail-content {
  padding: 0 15px 15px 15px;
}

.close-container {
  padding-top: 60px;
  overflow: auto;
}

.close-disaster-detail {
  width: 30px;
  padding: 7px;
  font-size: 12px;
  font-weight: b;
  float: right;
  background-color: #d9534f;
  border-color: #d43f3a;
  border: 1px solid transparent;
  color: white;
  border-radius: 8px;
}

.close-disaster-detail:hover {
  cursor: pointer;
  background-color: red;
}

.disaster-detail-logo {
  text-align: center;
  margin-bottom: 20px;
}

.disaster-detail-logo img{
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 70px;
}

.disaster-header {
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 2px solid black;
  font-size: 17px;
}

.disaster-detail-status-container {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  padding-bottom: 10px;
}

.disaster-detail-status-container p{
  font-size: 15px;
}

.disaster-detail-status {
  margin-top: 8px;
  display: inline-block;
  font-weight: bold;
  padding: 8px;
  border-radius: 10px;
  color: white;
}

.disaster-time {
  font-size: 12px;
  text-align: center;
  padding: 6px;
  border-bottom: 2px  solid black;
  line-height: 1.9em;
}

.disaster-detail-item {
  padding: 6px;
  border-bottom: 2px  solid black;
  font-size: 12px;
  line-height: 1.5em;
  margin-top: 5px;
  padding-bottom: 10px;
}

.disaster-detail-item h3{
  text-align: center;
  margin-bottom: 5px;
}

/* leaflet popup custom */
.popup-marker-container {
  width: 130px;
}

.popup-disaster-name {
  text-align: center;
  font-size: 12px;
  padding-bottom: 5px;
  border-bottom: 2px solid black;
}

.popup-disaster-detail {
  font-size: 11px;
  line-height: 1px;
  text-align: center;
}

.popup-disaster-detail-button {
  border: solid black;
  text-align:  center;
  font-size: 12px;
  border-radius: 10px;
  width: 100%;
  background-color: #5cb85c;
  border: 1px solid transparent;
  color: white;
  padding: 0.7em;
  text-decoration: none;
}

.popup-disaster-detail-button:hover {
  background-color: green;
  cursor: pointer;
}

.popup-disaster-detail-button.active {
  background-color: green;
  cursor: pointer;
}

.bg-green {
  background-color: #5cb85c;
}

.bg-blue {
  background-color: blue;
}

/* toggle button */
/* The switch - the box around the slider */
.switch {
  float: right;
  position: relative;
  display: inline-block;
  width: 30px;
  height: 18px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 15px;
  width: 15px;
  left: -2px;
  top: 1px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(18px);
  -ms-transform: translateX(18px);
  transform: translateX(18px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* List disaster */
.list-disaster {
  padding: 10px;
  z-index: 998;
  background-color: white;
  width: 300px;
  height: 100vh;
  position: absolute;
  padding-top: 60px;
  overflow-y: scroll;

  -webkit-transform: translate(-300px, 0);
  transform: translate(-300px, 0);

  transition: transform 0.3s ease;
}

.list-disaster-open {
  display: block;
  opacity: 1;
  -webkit-transform: translate(50px, 0);
  transform: translate(50px, 0);
}

.disaster-item {
  padding: 10px;
  margin-bottom: 3px;
  display: flex;

  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  transition: 0.3s;
  border-radius: 5px;
}

.disaster-item.active {
  background-color: rgba(0,0,0,.4);
}

.disaster-item:hover {
  cursor: pointer;
  background-color: rgba(0,0,0,.4);
}

.disaster-item-img img{
  display: inline-block;
  width: 40px;
  flex-basis: 15%;
  margin-top: 5px;
}

.disaster-item-detail {
  margin-left: 10px;
  flex-basis: 65%;
  line-height: 17px;
}

.disaster-item .disaster-detail-status {
  flex-basis: 20%;
  display: block;
  width: 45px;
  height: 30px;
  margin-top: -5px;
}

.disaster-item .disaster-detail-status p{
  margin-top: auto;
  margin-bottom: auto;
  font-size: 9px;
  margin: 0;
}

/* CSS UTILITY */
#utility-leftbar {
  position: absolute;
  top: 0;
  left: -500px; /* posisi sembunyi */
  bottom: 0;
  width: 220px;
  background-color: #fff;
  z-index: 998;
  transition: left 0.3s ease-in-out; /* efek transisi ketika muncul dan hilang */
  
  -webkit-transform: translate(50px, 0);
  transform: translate(50px, 0);      
}

#utility-leftbar.utility-active {
  left: 0; /* posisi tampil */
}