* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(to right, #F6F5F2, #F0EBE3, #F3D0D7, #FFEFEF);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

@font-face {
  font-family: 'From Cartoon Blocks'; /* Nama yang diberikan kepada font */
  src: url('./font/From\ Cartoon\ Blocks.ttf') format('truetype'); /* Ganti 'path/to/font.ttf' dengan path menuju file font Anda */
  /* Jika Anda memiliki file .otf, gantilah 'truetype' dengan 'opentype' */
}

.container {
  display: flex;
  flex-direction: row;
  height: 400px;
  width: 800px;
  box-shadow: 2px 2px 12px 0px rgba(148,135,135,0.75);
  -webkit-box-shadow: 2px 2px 12px 0px rgba(148,135,135,0.75);
  -moz-box-shadow: 2px 2px 12px 0px rgba(148,135,135,0.75);
}

.sidebar {
  display: flex;
  flex-direction: column;
  width: 200px;
  background-color: #fff;
  border: none;
  font-family: 'Montserrat',Arial;
}

.sidebar > h3 {
  text-align: center;
  font-size: 18px;
}

.sidebar nav {
  display: flex;
  flex-direction: column; /* Mengubah ini dari column menjadi row */
  line-height: 30px;
}

.sidebar nav div {
  width: auto;
  padding: 10px;
  cursor: pointer;
  font-size: 15px;
}

.sidebar nav div:hover {
  background-color: beige;
  opacity: 20;
}

.active {
  border-right: 5px solid rgb(49, 52, 53);
}

/* .active-bar {
  margin-left: 20px;
} */

.content {
  width: 100%;
  background-color: #FFF;
  border: none;
  position: relative;
}

.footer {
  display: flex;
  width: 100%;
  background-color: aqua;
}

.ham-menu {
  display: flex; /* Sembunyikan secara default */
}

/* Content */
.dashContent {
  display: none;
  height: 400px;
  overflow-y: auto; /* prevent element overflowing */
}

.dashContent .title {
  margin-left: 30px;
  font-family: 'From Cartoon Blocks', sans-serif;
}



/* PAGE 1 */
#page-1 {
  position: relative;
}
.wrapper {
  max-width: 600px;
  padding: 0 20px;
  margin: auto;
}
.wrapper .parent-tab,
.wrapper .child-tab {
  margin-bottom: 8px;
  border-radius: 3px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.18);
}
.wrapper .parent-tab label,
.wrapper .child-tab label {
  background: #007bff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-radius: 3px;
  position: relative;
  z-index: 99;
  transition: all 0.3s ease;
}
.wrapper .parent-tab label:hover {
  background: #006fe6;
}
.parent-tab input:checked ~ label,
.child-tab input:checked ~ label {
  border-radius: 3px 3px 0 0;
  background: #006fe6;
}
.wrapper label span {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  text-shadow: 0 -1px 1px #0056b3;
}
.wrapper .child-tab label span {
  font-size: 17px;
}
.parent-tab label .icon {
  position: relative;
  height: 30px;
  width: 30px;
  font-size: 15px;
  color: #007bff;
  display: block;
  background: #fff;
  border-radius: 50%;
  text-shadow: 0 -1px 1px #0056b3;
}
.wrapper .child-tab label .icon {
  height: 27px;
  width: 27px;
}
.parent-tab label .icon i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.parent-tab input:checked ~ label .icon i:before,
.child-tab input:checked ~ label .icon i:before {
  content: "\f068";
}
.wrapper .parent-tab .content,
.wrapper .child-tab .sub-content {
  max-height: 0px;
  overflow: hidden;
  background: #fff;
  border-radius: 0 0 3px 3px;
  transition: all 0.4s ease;
}
.parent-tab input:checked ~ .content,
.child-tab input:checked ~ .sub-content {
  max-height: 100vh;
}
.tab-3 input:checked ~ .content {
  padding: 15px 20px;
}
.parent-tab .content p,
.child-tab .sub-content p {
  padding: 15px 20px;
  font-size: 16px;
}
.child-tab .sub-content p {
  font-size: 15px;
}
input[type="radio"],
input[type="checkbox"] {
  display: none;
}
/* PAGE 1 END */


/* PAGE 2 */
.todo-container {
  width: 25rem;
  padding: 20px;
  border-radius: 10px;
  margin: auto;
  background-color: #fcba57;
}
.todo-container form {
  width: auto;
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
  padding: 15px;
  background-color: rgb(185, 180, 180);
  box-shadow: 0px 1px 5px 1px rgba(66,60,60,0.75);
  -webkit-box-shadow: 0px 1px 5px 1px rgba(66,60,60,0.75);
  -moz-box-shadow: 0px 1px 5px 1px rgba(66,60,60,0.75);
}
.todo-container input[type=text] {
  padding: 8px;
  border: none;
  border-radius: 10px;
}
.todo-container #todo-btn {
  padding: 8px;
  border: none;
}
#todo-list {
  display: flex;
  margin-top: 15px;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  width: 100%;
  border: none;
  list-style-type: '🚀';
  background-color: rgb(241, 224, 224);
  box-shadow: 0px 1px 5px 1px rgba(66,60,60,0.75);
  -webkit-box-shadow: 0px 1px 5px 1px rgba(66,60,60,0.75);
  -moz-box-shadow: 0px 1px 5px 1px rgba(66,60,60,0.75);
}
#todo-list.hide-list {
  display: none;
}
#todo-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: 25px;
  color: #222;
  margin-bottom: 8px;
  font-family: Helvetica;
}
#todo-list button {
  background-color: #4b00ff;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}
.todo-container{
  /* ADD STYLE */
}
/* PAGE 2 END */


/* PAGE 3 */
.calc-body {
  width: 450px;
  height: 280px;
  margin: auto;
  border: 2px solid pink;
  background-color: #fff;
  border-radius: 15px;
  padding: 8px;
  box-shadow: 0px 0px 5px 3px rgba(153,141,141,0.75);
  -webkit-box-shadow: 0px 0px 5px 3px rgba(153,141,141,0.75);
  -moz-box-shadow: 0px 0px 5px 3px rgba(153,141,141,0.75);
}
.calc-screen {
  border: 1px solid #ccc;
  text-align: right;
  height: auto;
  border-radius: 10px;
}
#calc-typed {
  text-align: end;
  width: 100%;
  color: black;
  padding: 8px;
  font-size: 22px;
  text-decoration-style: bold;
  border-radius: 10px;
  border: none;
  outline: none;
}

.calc-button-container {
  display: flex;
  padding-top: 5px;
  height: 210px;
}

.number-group {
  flex: 1;
  display: grid;
  justify-items: center;
  align-items: center;
  padding: 0 10px;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
}

.tools-group {
  flex: 1.3;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.misc-group {
  display: flex;
  justify-content: center;
  background-color: rgb(168, 166, 166);
  border-radius: 10px;
  box-shadow: inset 0px 0px 5px 3px rgba(153, 141, 141, 1);
  -webkit-box-shadow: inset 0px 0px 5px 3px rgba(153, 141, 141, 1);
  -moz-box-shadow: inset 0px 0px 5px 3px rgba(153, 141, 141, 1);
}

.operators-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border: 2px solid pink;
  background-color: rgb(245, 142, 159);
  border-radius: 10px;
  box-shadow: inset 0px 0px 5px 3px rgba(153, 141, 141, 1);
  -webkit-box-shadow: inset 0px 0px 5px 3px rgba(153, 141, 141, 1);
  -moz-box-shadow: inset 0px 0px 5px 3px rgba(153, 141, 141, 1);
}

.number, .operator, .decimal,
.delete, .clear, .calculate {
  width: 40px;
  height: 40px;
  margin: 5px;
  font-weight: bold;
  font-size: 15px;
  border-radius: 50%;
  background-color: white;
  border: none;
  box-shadow: 0px 0px 5px 3px rgba(153,141,141,0.75);
  -webkit-box-shadow: 0px 0px 5px 3px rgba(153,141,141,0.75);
  -moz-box-shadow: 0px 0px 5px 3px rgba(153,141,141,0.75);
}
.number, .operator, .decimal {
  transition: transform 0.1s;
}
.number:active, .operator:active, .decimal:active, .delete:active, .clear:active, .calculate:active {
  transform: scale(0.95);
}

.calculate {
  background-color: rgb(61, 208, 245);
}
.delete {
  background-color: yellow;
}
.clear {
  background-color: rgb(247, 198, 66);
}

/* .calc-button-row {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  justify-content: space-between;
  gap: 5px;
  position: relative;
  border: 2px solid red;
}
.number-group {
  grid-template-columns: 1fr 1fr 1fr ;
  margin-top: 5px;
  gap: 8px;
  padding: 3px;
  border: 2px solid red;
}
.number, .operator, .decimal,
.delete, .clear, .modulus {
  width: 40px;
  height: 40px;
  margin: 5px;
  font-size: 20px;
  border-radius: 50%;
  background-color: white;
  border: none;
  box-shadow: 0px 0px 5px 3px rgba(153,141,141,0.75);
  -webkit-box-shadow: 0px 0px 5px 3px rgba(153,141,141,0.75);
  -moz-box-shadow: 0px 0px 5px 3px rgba(153,141,141,0.75);
}
.number, .operator, .decimal {
  transition: transform 0.1s;
}
.number:active, .operator:active, .decimal:active {
  transform: scale(0.95);
}
.tools-group {
  grid-template-columns: 1fr 1fr 1fr;
  width: 258px;
  position: absolute;
  top: 28%;
  left: 40%;
  border: 2px solid pink;
  background-color: rgb(245, 142, 159);
  border-radius: 10px;
  box-shadow: inset 0px 0px 5px 3px rgba(153, 141, 141, 1);
  -webkit-box-shadow: inset 0px 0px 5px 3px rgba(153, 141, 141, 1);
  -moz-box-shadow: inset 0px 0px 5px 3px rgba(153, 141, 141, 1);
  border: 2px solid red;
}
.delete,.clear, 
.modulus,.calculate {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 14px;
  text-align: center;
  border: none;
  box-shadow: 0px 0px 5px 3px rgba(153,141,141,0.75);
  -webkit-box-shadow: 0px 0px 5px 3px rgba(153,141,141,0.75);
  -moz-box-shadow: 0px 0px 5px 3px rgba(153,141,141,0.75);
}
.delete {
  background-color: yellow;
  font-weight: bold
}
.clear {
  background-color: rgb(247, 198, 66);
  font-weight: bold
}
.calculate {
  background-color: rgb(61, 208, 245);
  font-weight: bold
}
.ebbra {
  height: 50px;
  width: 153%;
  gap: 12px;
  margin-top: 5px;
  margin-bottom: 4px;
  background-color: rgb(168, 166, 166);
  border-radius: 10px;
  box-shadow: inset 0px 0px 5px 3px rgba(153, 141, 141, 1);
  -webkit-box-shadow: inset 0px 0px 5px 3px rgba(153, 141, 141, 1);
  -moz-box-shadow: inset 0px 0px 5px 3px rgba(153, 141, 141, 1);
  border: 2px solid red;
} */
/* PAGE 3 END */


/* PAGE 4 */
.signature-pad-form {
  width: 30rem;
  max-width: 100%;
  margin: auto;
  text-align: center;
}
.signature-pad {
  cursor: crosshair;
  width: 100%;
  border: 2px solid #4b00ff;
  border-radius: 4px;
}
.btn-group{
  display: flex;
  gap: 4px;
}
.submit-button, .clear-button {
  width: 100%;
  background-color: #4b00ff;
  border: none;
  padding: 0.5rem 1rem;
  color: #fff;
  cursor: pointer;
  margin-top: 1rem;
  font-weight: 600;
}
/* PAGE 4 END */

.ham-contain {
  display: none;
}
/* Dark mode styles */
.darkMode {
  background: linear-gradient(to right, #000000, #29232a); /* Warna latar belakang */
  color: #fff; /* Warna teks */
}
.darkMode .sidebar {
  background-color: #222; /* Warna latar belakang sidebar */
}
.darkMode .sidebar h3 {
  color: #fff; /* Warna teks judul sidebar */
}
.darkMode .sidebar nav {
  border-top: 1px solid #686666; /* Warna garis pembatas di sidebar */
}
.darkMode .sidebar .dashBtn {
  color: #fff; /* Warna teks tombol di sidebar */
}
.darkMode .sidebar .dashBtn:hover {
  background-color: rgba(128, 0, 128, 0.2); /* Warna background ketika hover */
}
.darkMode .content {
  background-color: #302f2f; /* Warna latar belakang konten */
}
.darkMode .dashContent h1 {
  color: #fff; /* Warna teks judul konten */
}
.darkMode .dashContent p {
  color: #332e2e; /* Warna teks isi konten */
}
.darkMode .parent-tab {
  border: 1px solid #666; /* Warna border accordion */
}
.darkMode .parent-tab label {
  background-color: #444; /* Warna latar belakang accordion label */
}
.darkMode .parent-tab label span {
  color: #fff; /* Warna teks accordion label */
}
.darkMode .parent-tab input:checked + label {
  background-color: #222; /* Warna latar belakang accordion label saat aktif */
}
.darkMode .signature-pad {
  background-color: #666;
}

.darkmode-slider-container {
  display: flex;
  align-items: end;
  padding: 15px;
  height: 100%;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}
.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.switch i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 5px; /* Sesuaikan jarak ikon dari kiri */
  color: #fff; /* Sesuaikan warna ikon */
}  
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: url('./icon/sun.png');
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  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 {
  content: url('./icon/moon.png');
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}

/* MOBILE RESPONSIVE */
@media only screen and (max-width: 767px) {
  body {
    flex-direction: column;
    margin-top: 0;
    background: #fff;
    transition: background 0.5s ease;
  }
  .darkMode {
    background: #302f2f;
    color: #FFF;
  }
  .darkmode-slider-container {
    display: none;
  }
  .container {
    width: 100%;
    height: 100%;
    gap: 0;
    box-shadow: none;
  }
  .ham-contain {
    display: block;
    width: 100%;
  }
  .ham-wrapper {
    padding: 1rem;
    border-bottom: 2px solid rgba(56, 56, 56, 1);
    background: transparent;
    opacity: 10;
    position: sticky;
    width: 100%;
    display: flex;
  }
  .darkMode .ham-wrapper {
    border-bottom: 1px solid rgb(195, 195, 195);
  }
  .ham-menu {
    height: 40px;
    width: 40px;
    margin-left: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .ham-menu span {
    height: 5px;
    width: 100%;
    background-color: #007bff;
    border-radius: 10px;
    transition: 0.3s ease;
  }
  .ham-menu.active-menu {
    z-index: 600;
  }
  .ham-menu.active-menu span:nth-child(1) {
    transform: rotate(45deg) translate(14px, 15px);
  }
  .ham-menu.active-menu span:nth-child(2) {
    opacity: 0;
    width: 0;
  }
  .ham-menu.active-menu span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  /* HERE */
  .dashContent {
    height: 85vh; /* mobile scroll feature */
    padding: 0 10px 0;
  }
  .dashContent .title {
    margin-left: 0;
    font-family: 'From Cartoon Blocks', sans-serif;
  }
  h1 {
    text-align: center;
    margin-top: 25px;
    font-size: 28px;
  }
  p {
    font-size: 30px;
  }
  .sidebar {
    margin-left: -200px;
    z-index: 500;
    position: fixed;
    top: 0;
    height: 100%;
    left: 0;
    transition: 0.3s ease-in-out;
  }
  .sidebar.active-bar {
    box-shadow: 65px 0px 150px 500px rgba(0,0,0,0.75);
    -webkit-box-shadow: 65px 0px 150px 500px rgba(0,0,0,0.75);
    -moz-box-shadow: 65px 0px 150px 500px rgba(0,0,0,0.75);
    margin-left: 0;
  }
  .sidebar.animate__slideInLeft {
    box-shadow: 65px 0px 150px 500px rgba(0,0,0,0.75);
    -webkit-box-shadow: 65px 0px 150px 500px rgba(0,0,0,0.75);
    -moz-box-shadow: 65px 0px 150px 500px rgba(0,0,0,0.75);
    margin-left: 0;
    --animate-duration: 0.6s;
  }
  .content {
    height: auto;
    border: none;
    margin-bottom: 0;
  }
  .hamburger {
    display: block;
    cursor: pointer;
  }
  .todo-container {
    width: auto;
    padding: 20px;
    border-radius: 10px;
    margin: auto;
    background-color: #fcba57;
  }
  .signature-pad-form {
    width: 100%;
    max-width: 100%;
    margin: auto;
    text-align: center;
  }
  .btn-group{
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .calc-body {
    width: auto;
    height: 500px;

  }
  .calc-screen {
    height: 100px;
  }
  #calc-typed {
    height: 100%;
    font-size: 4rem;
  }

  .calc-button-container {

    height: 370px;
  }

  .number, .decimal {
    width: 45px;
    height: 45px;
  }

  .operator, .delete, .clear, .calculate {
    width: 50px;
    height: 50px;
  }

  .number-group {
    gap: 5px;
    grid-template-columns: repeat(auto-fit, minmax(45px, 1fr));
  }
  .operators-group {
    align-items: center;
    height: 100%;
  }
  /* .number, .operator, .decimal,
  .delete, .clear, .modulus {
    width: 50px;
    height: 50px;
    margin: 5px;
    font-size: 20px;
    border-radius: 50%;
    background-color: white;
    border: none;
    box-shadow: 0px 0px 5px 3px rgba(153,141,141,0.75);
    -webkit-box-shadow: 0px 0px 5px 3px rgba(153,141,141,0.75);
    -moz-box-shadow: 0px 0px 5px 3px rgba(153,141,141,0.75);
  }
  .ebbra {
    height: 60px;
    width: 200px;
    position: absolute;
    left: 42%;
  }
  .tools-group {
    width: 200px;
    position: absolute;
    top: 20%;
    left: 42%;
    height: 290px; 
  }
  .operator {
    margin-top: 30px;
  } */
}
