/* --- Aturan Dasar dan Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Opsional: Jika Anda ingin scrollbar terlihat, hapus blok di bawah ini */
::-webkit-scrollbar {
  display: none;
}

body {
  background: #FFFFFF;
  color: #333; /* Menggunakan warna dari HTML sebelumnya agar konsisten */
  font-family: 'Cairo', sans-serif;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

#app {
  display: flex;
  flex: 1;
  flex-direction: column;
  height: 100%; /* Memastikan #app mengisi body */
}

/* --- Layout Utama --- */
main {
  flex: 1; /* Membuat main mengisi sisa ruang */
  padding: 20px;
  margin: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: auto; /* Mencegah double scrollbar dengan body */
}


/* --- Navigasi (dari file HTML) --- */
/* Style ini bisa Anda pindahkan dari blok <style> di HTML ke sini jika mau */
nav {
  background-color: #2C3E50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
nav ul {
  display: flex;
  list-style: none;
}
nav li {
  margin: 0 15px;
  cursor: pointer;
  transition: color 0.3s ease;
}
nav li:hover, nav li.active {
  color: #1ABC9C;
}
nav button {
  background-color: #1ABC9C;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
nav button:hover {
  background-color: #16A085;
}

/* --- Halaman Transkripsi --- */
#transcribe {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#transcribe .placeholder-text {
  margin: auto;
  text-align: center;
  color: #888;
}

/* --- DIUBAH --- */
/* Style untuk kontainer output transkrip (sekarang <div>) */
.transcript-output {
  width: 100%;
  height: 100%;
  flex-grow: 1;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  font-size: 1.2em;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
  overflow-y: auto; /* Agar bisa di-scroll */
}

/* --- BARU --- */
/* Memberi jarak atau jeda antar baris transkrip */
.transcript-phrase {
  margin-bottom: 1em;
}

/* --- BARU --- */
/* Membuat nama speaker terlihat bisa diklik */
.speaker-label {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  transition: color 0.2s ease;
}
.speaker-label:hover {
  color: #3498db; /* Warna biru saat mouse di atasnya */
}

/* --- Halaman Badge/Dashboard --- */
#badge {
  padding: 1em;
}

#badge h1 {
  font-size: 2.5em; /* Ukuran disesuaikan agar tidak terlalu besar */
  margin-bottom: 0.5em;
}

#badge h2 {
  font-size: 1.5em; /* Ukuran disesuaikan */
  margin-bottom: 0.5rem;
}


/* --- Footer --- */
footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

footer img {
  width: 50px;
  vertical-align: middle;
}

footer a {
  display: inline-block;
}
/* --- BARU --- */
/* Aturan spesifik untuk tombol Ganti Topik */
.btn-topic {
  background-color: #3498db !important;
}