/*form style */

form {
    background: #FBFBFB;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex: 1; /* Membuat setiap form memiliki lebar yang sama */
    margin: 5px;
    font-family: 'Arial', sans-serif;
    font-weight: 550;

}

/* Konten Utama */
.content {

    margin-left: 250px;
    margin-top: 50px;
    padding: 5px;
}

.reviewpage {
  margin-left: 250px;
  width: 90%;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
/* Tombol Hapus */
.btn-hapus {
  background-color: #e74c3c;
  color: white;
}

.btn-hapus:hover {
  background-color: #c0392b;
}

/* grid*/


.content {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: auto; 
   grid-column-gap: 2px;
  grid-row-gap: 2px;     }

    .div1 { grid-area: 1 / 1 / 2 / 6;
      display: flex; /* Gunakan Flexbox */
      height: 80px;
      gap: 2px; /* Jarak antar form */ 
    margin-bottom: 80px;}

    .div2 { grid-area: 2 / 1 / 5 / 4;
      display: flex;
      width: 57rem;
    height: 30rem;}

    .div3 {  grid-area: 2 / 4 / 5 / 6; 
      width: 300px;
      display: flex;
  }
    .div4 {  grid-area: 5 / 1 / 6 / 4;
      display: flex; }
    .div5 {  grid-area: 5 / 4 / 6 / 6;
      display: flex; } 

      
    /* Sidebar */
.sidebar {
  font-family: 'Arial', sans-serif;
  width: 220px;
    height: 100vh;
    background: #FBFBFB;
    color: black;
    position: fixed;
    left: 0;
    top: 0;
font-weight: 550;
    display: flex;
    flex-direction: column;
    padding: 20px;
    font-size: 18px;
}

/* Style untuk Dropdown */
.dropdown-btn {
  cursor: pointer;
  font-size: 16px;
  background: none;
  border: none;
  color: white;
  width: 100%;
  text-align: left;
  padding: 10px;
  display: block;
}

.dropdown-btn.active {
  background: #001F3F;
  color: white;
  border-radius: 5px;
}

.submenu {
  display: none;
  list-style: none;
  padding-left: 20px;
}

.submenu li a {
  font-size: 14px;
  padding: 8px;
}
.informasidetail{
  text-align: left;
}
.menu-chooser{

  align-content: space-between;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 20px;
    color: black;
}

.logo {
    width: 70px;
    height: 80px;
    margin: 50px;
}

.menu {
    list-style: none;
    padding: 0;
}

.menu li {
  text-align: left;
    margin: 15px 0;
}

.menu li a {
    text-decoration: none;
    color: black;
    display: block;
    padding: 10px;
    transition: 0.3s;
}

.menu li a:hover {
    background: #001F3F;
    border-radius: 5px;
    color: white;
    transform: scale(1.1);
}


/* NAVBAR */
.navbar {
  position: fixed; /* Tetap di atas */
  top: 0;
  left: 250px; /* Geser agar tidak tertutup sidebar */
  width: calc(100% - 250px); /* Sesuaikan dengan lebar sidebar */
  background: #FBFBFB;
  color: black;
  padding: 10px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 999; /* Sedikit di bawah sidebar */

}
.logout-btn {
  transition: 0.2s ease-in-out;
  background: #e74c3c;
  color: white;
  border: none;
  padding: 8px 15px;
  margin-right: 50px;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s;
}

.logout-btn:hover {
  background: #c0392b;
  transform: scale(1.1);
}
.user-photo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 5px;
background-color: white;
}
/* chart style */



.simple-bar-chart{
  
  margin-left: 10rem;
    --line-count: 1;
    --line-color: currentcolor;
    --line-opacity: 0.25;
    --item-gap: 2%;
    --item-default-color: #060606;
    width: 40rem;
    height: 20rem;
    display: grid;
    grid-auto-flow: column;
    gap: var(--item-gap);
    column-gap: 8rem;
    padding-inline: var(--item-gap);
    --padding-block: 1.5rem; /*space for labels*/
    padding-block: var(--padding-block);
    position: relative;
    isolation: isolate;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }

  .value {
    padding: 5px;
    font-size: 14px;
    text-align: center;
}

h4 {
    margin-top: 20px; /* Memberi jarak agar total data di bawah grafik */
    text-align: center;
}
.item {
  width: 100px;
  background: var(--clr);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  color: rgb(0, 0, 0);
  font-weight: bold;
  height: calc(var(--val) * 1px);
}
  
  .simple-bar-chart::after{
    content: "";
    position: absolute;
    inset: var(--padding-block) 0;
    z-index: -1;
    --line-width: 1px;
    --line-spacing: calc(100% / var(--line-count));
    background-image: repeating-linear-gradient(to top, transparent 0 calc(var(--line-spacing) - var(--line-width)), var(--line-color) 0 var(--line-spacing));
    box-shadow: 0 var(--line-width) 0 var(--line-color);
    opacity: var(--line-opacity);
  }
  .simple-bar-chart > .item{
    height: calc(1% * var(--val));
    background-color: var(--clr, var(--item-default-color));
    position: relative;
    animation: item-height 1s ease forwards
  }
  @keyframes item-height { from { height: 0 } }
  
  .simple-bar-chart > .item > * { position: absolute; text-align: center }
  .simple-bar-chart > .item > .label { inset: 100% 0 auto 0 }
  .simple-bar-chart > .item > .value { inset: auto 0 100% 0 }
    
  /* demo */
  body { 
    margin: 0; 
    padding: 2rem; 
    color: #1D1E22;
    background-color: #e9f2f5;
    font-family: 'Arial', sans-serif;
    font-weight: 550;
    text-align: center;
  }
  
  @media (prefers-color-scheme: dark) {
    body {
      color: black;
    }
  }
  



    /* grafik lingkaran */
  
  
  .pie-chart {
      position: relative;
      width: 250px;
      height: 250px;
  }
  
  .donut {
      width: 100%;
      height: 100%;
      transform: rotate(-90deg); /* Rotasi agar mulai dari atas */
  }
  
  .donut-ring {
      stroke-width: 4;
  }
  
  .donut-segment {
      stroke-width: 4;
      stroke-linecap: round;
      transition: stroke-dasharray 1.5s ease-in-out;
  }
  
  .center-text {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 16px;
      font-weight: bold;
      color: #333;
  }
  
  .chart-info {
      margin-top: 20px;
      text-align: center;
  }
  
  .info-item {
      display: flex;
      align-items: center;
      margin: 5px 0;
  }
  
  .color-box {
      width: 15px;
      height: 15px;
      display: inline-block;
      margin-right: 10px;
  }
      

      
      html,
      body {
        height: 100%;
      }
      
      body {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
      }

      /* Style dasar tabel */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  padding: 10px;
  text-align: center;
}

th {
  background-color: #f4f4f4;
}

/* Kotak kategori dengan warna sesuai nilai */
.kategori-box {
  padding: 5px;
  font-weight: bold;
  text-align: center;
  color: white;
  display: inline-block;
  width: 100px;
  border-radius: 5px;
}

/* Warna berdasarkan kategori */
.kategori-hijau { background-color: green; }
.kategori-kuning { background-color: yellow; color: black; }
.kategori-merah { background-color: red; }


/* Judul */
h2 {
  color: #333;
  margin-bottom: 20px;
  font-size: 24px;
}

/* Form Tambah Pertanyaan */
.form-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  margin-bottom: 20px;
}

.form-container label {
  font-size: 16px;
  color: #555;
}

.form-container input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.submit-btn {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.delete-form{
  background: transparent;
  border: transparent;
  box-shadow: none;
}
.submit-btn:hover {
  background: #0056b3;
}
/* Tombol Detail */

/* Tombol Hapus */
.btn-hapus {
  background-color: #e74c3c;
  color: white;
}

.btn-hapus:hover {
  background-color: #c0392b;
}

/* Container tabel */
.table-container {
  width: 100%;
align-items: center;
align-content: center;
}



/* Tombol Hapus */
.delete-btn {
  background: #ff4d4d;
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.delete-btn:hover {
  background: #cc0000;
}


/* style dashboard */
.total-icon { background-color: #555; }
.green-icon { background-color: #4CAF50; }
.yellow-icon { background-color: #FFC107; }
.red-icon { background-color: #F44336; }


.div1 {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

form {
    justify-content: space-between; /* Membuat teks di kiri dan ikon di kanan */
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    width: 220px;
    text-align: left;
}

.icon-container {
    width: 40px;
    height: 40px;
    border-radius: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-container img {
    width: 24px;
    height: 24px;
}

/* Warna background untuk ikon */
.total-icon { background-color: #555; }
.green-icon { background-color: #4CAF50; }
.yellow-icon { background-color: #FFC107; }
.red-icon { background-color: #F44336; }

/* Warna border dan background untuk form */
.total-box {
  display: flex;
  flex: 1; /* Membuat setiap form memiliki lebar yang sama */

    width: 100px;
}

.green-box {
  display: flex;
  flex: 1; /* Membuat setiap form memiliki lebar yang sama */

}

.yellow-box {
  display: flex;
  flex: 1; /* Membuat setiap form memiliki lebar yang sama */

}

.red-box {
  display: flex;
  flex: 1; /* Membuat setiap form memiliki lebar yang sama */

}

.data-card.rank {
  padding: 10px;
  border-radius: 5px;
  text-align: left;
  max-width: 400px;
}

.data-card.rank ol {
  padding-left: 20px;
}

.data-card.rank li {
  margin: 5px 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  padding: 20px;
  font-weight: 550;

}
.container {
  margin-top: 50px;
  margin-left: 250px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  width: 80%;
}
h2 {
  text-align: center;
  color: #333;
}
h3 {
  color: #000000;
}

th, td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}
th {
  background: transparent;
  color: black;
}
tr:nth-child(even) {
  background: #f9f9f9;
}
.btn-back {
  display: inline-block;
  padding: 5px 10px;
  background: #dc3545;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 20px;
  display: block;
  text-align: center;
}
.btn-back:hover {
  background: #c82333;
}

/* Alert Box */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
}

.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Styling Tabel */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
}

.styled-table thead tr {
  color: white;
  text-align: center;
  font-weight: bold;
}

.styled-table th, 
.styled-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
}

.styled-table tbody tr:hover {
  background-color: #f1f1f1;
}

/* Tombol Aksi */
.action-buttons {
  display: flex;
  gap: 10px;
}

/* Gaya tombol */
.btn {
  display: inline-block;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid transparent; /* Border transparan */
  cursor: pointer;
  transition: 0.3s;
  font-size: 14px;
}

/* Tombol Detail */
.btn-detail {
  background-color: #3498db;
  height: 15px;
  color: white;
}

.btn-detail:hover {
  background-color: #0f3b59;
}

/* Tombol Hapus */
.btn-hapus {
  background-color: #e74c3c;
  color: white;
}

.btn-hapus:hover {
  background-color: #c0392b;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.review-header h2 {
  margin: 0;
}

.btn-print {
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  padding: 8px 15px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 5px;
}

.btn-print:hover {
 background-color: #767676;}

 /* FORM TAMBAH PERTANYAAN */
.formtambahpertanyaan {
  width: 30rem;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px transparent;
  margin-bottom: 20px;
}
.formeditpertanyaan {
  font-family: Arial, sans-serif;
  width: 30rem;
  font-weight: 550;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px transparent;
  margin-bottom: 20px;
}

label {
  font-weight: bold;
  display: block;
  margin-top: 10px;
}

textarea, select, input {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* TOMBOL */
.tambah {
  background: #3498db;
  color: white;
  border: none;
  padding: 10px 15px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 5px;
  display: block;
  width: 100%;
}

.tambah:hover {
  background-color: #0f3b59;
}

/* TABEL DAFTAR PERTANYAAN */
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  overflow: hidden;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background: #2c3e50;
  color: white;
}

tr:hover {
  background: #f1f1f1;
}

/* BUTTON AKSI */
.action-buttons {
  display: flex;
  gap: 5px;
}

.edit-btn {
  background-color: #3498db;
  border: none;
  padding: 8px 12px;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  max-width: 70px;
}
.btn-review {
  background-color: #3498db;
  border: none;
  padding: 8px 12px;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  max-width: 70px;
}
.btn-review:hover {
  background-color: #0f3b59;
}

.edit-btn:hover {
  background-color: #0f3b59;
}

.delete-btn {
  max-width: 70px;
  background: #e74c3c;
  border: none;
  padding: 8px 12px;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.delete-btn:hover {
  background: #c0392b;
}

/* LINK KE KELOLA JAWABAN */
.link-jawaban {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 15px;
  background-color: #3498db;
  color: white;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
}

.link-jawaban:hover {
  background-color: #0f3b59;
}

/* BUTTON AKSI */
.action-buttons {
  display: flex;
  gap: 5px;
}


/* FORM TAMBAH JAWABAN */
.formtambahjawaban {
  width: 30rem;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px transparent;
  margin-bottom: 20px;
}

label {
  font-weight: bold;
  display: block;
  margin-top: 10px;
}

input {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}



/* LINK KEMBALI */
.back-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 15px;
  background: #3498db;
  color: white;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
}

.back-link:hover {
  background-color: #0f3b59;
}
.btn-submit {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 15px;
  background: #3498db;
  color: white;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
}

.btn-submit:hover {
  background-color: #0f3b59;
}


/* LOGIN SESSION */
.login-container {
  align-content: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.loginform{
  align-items: center;
  width: 80%;
  margin-left: 10px;
  margin-right: 10px ;
  box-shadow: none;
  background: transparent;
}
/* Kotak login */
.login-box {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 400px;
  width: 100%;
  animation: fadeIn 0.8s ease-in-out;
}

/* Logo */
.logo {
  width: 80px;
  margin-bottom: 10px;
}

/* Judul */
h2 {
  margin-bottom: 10px;
  font-size: 22px;
  color: #333;
}

/* Grup input */
.input-login {
  margin: 10px 0;
  text-align: left;
}

.input-login input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  transition: 0.3s;
}

.input-login input:focus {
  border-color: #74ebd5;
  outline: none;
}

/* Tombol */
.loginbutton{
  background: #3038af;
  color: white;
  border: none;
  padding: 10px 15px;
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
  transition: 0.3s;
  margin-left: 12px;
  margin-right: 12px;
}

.loginbutton:hover {
  background-color: #0f3b59;
}

/* Pesan error */
.error {
  color: red;
  font-size: 14px;
  margin-bottom: 10px;
}

/* Animasi */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(-20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Responsif */
@media (max-width: 480px) {
  .login-box {
      padding: 15px;
  }
}

.link-display {
  background-color: #f1f1f1;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  word-break: break-all;
  color: #34495e;
}

input[type="text"] {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  font-size: 14px;
}

.btn-container {
  display: flex;
  gap: 10px;
}

button {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.btn-edit {
  background-color: #3498db;
  color: white;
}

.btn-copy {
  background-color: #2ecc71;
  color: white;
}

.btn-edit:hover {
  background-color: #2980b9;
}

.btn-copy:hover {
  background-color: #27ae60;
}

.card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 25px 30px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.card h3 {
  margin-top: 0;
  color: #34495e;
  margin-bottom: 15px;
}

.link-display {
  background-color: #f1f1f1;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 15px;
  word-break: break-word;
  color: #333;
  font-size: 14px;
  border: 1px solid #ddd;
}

input[type="text"] {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 15px;
  font-size: 14px;
  box-sizing: border-box;
}

.btn-container {
  display: flex;
  gap: 10px;
}

button {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.btn-edit {
  background-color: #3498db;
  color: white;
}

.btn-edit:hover {
  background-color: #2980b9;
}

.btn-copy {
  background-color: #2ecc71;
  color: white;
}

.btn-copy:hover {
  background-color: #27ae60;
}