body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f7f9fb;
  color: #16325B;
  margin: 0;
  padding: 20px;
  cursor: url('/audio/cursor.png'), auto;
}
h1, h2 {
  text-align: center;
  color: #16325B;
}
button {
  background-color: #fab400;
  color: #16325B;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: url('/audio/cursor_button.png'), auto;
}
button:hover {
  background-color: #e5a700;
}
.test-body {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: auto;
  border: 2px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  margin-top: 20px;
}
.left-pane, .right-pane {
  width: 50%;
  padding: 24px;
  box-sizing: border-box;
  min-height: 300px;
}
.left-pane {
  border-right: 2px solid #eee;
  background-color: #fdfaf3;
}
.right-pane {
  background-color: #ffffff;
}
.question-image {
  width: 100%;
  height: auto;
  max-height: 60vh;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  object-fit: contain;
  display: block; 
  margin: 0 auto; 
}
#submit-area {
  margin-top: 40px;
  text-align: center;
}
#start-screen {
  text-align: center;
  padding: 80px 20px;
  background-color: #ffffff;
  border: 2px dashed #fab400;
  border-radius: 12px;
  max-width: 600px;
  margin: 40px auto;
}

#progress-container {
  width: 100%;
  height: 16px;
  background-color: #eee;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

#progress-bar {
  height: 100%;
  background-color: #fab400;
  width: 0%;
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  box-sizing: border-box;
  border-radius: 8px 0 0 8px;
  min-width: 60px;
}

#progress-label {
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 2px rgba(0,0,0,0.2);
  white-space: nowrap;
}


#direction-screen {
  display: none;
  background-color: #ffffff;
  padding: 40px;
  text-align: center;
  border: 2px solid #16325B;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  max-width: 800px;
  margin: 40px auto;
}

#direction-title {
  font-size: 24px;
  color: #16325B;
  margin-bottom: 20px;
}

#direction-text {
  font-size: 18px;
  color: #333333;
}

#direction-screen #example-wrapper {
  text-align: left !important;
  padding: 0 !important;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.part-feedback {
  background: #fefefe;
  padding: 16px;
  margin-bottom: 20px;
  border-left: 5px solid #fab400;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.part-feedback h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.part-feedback p {
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.6;
}

/* ============================ */
/* 📘 STYLE RIÊNG CHO SELECT_TEST.HTML */
/* ============================ */

.select-test-form {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  box-sizing: border-box;
}

.select-test-form h1 {
  text-align: center;
  margin-bottom: 24px;
  color: #2c3e50;
}

.select-test-form label {
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
  color: #333;
}

.select-test-form input,
.select-test-form select {
  width: 100%;
  padding: 10px 14px;
  margin-top: 6px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  transition: border 0.2s;
}

.select-test-form input:focus,
.select-test-form select:focus {
  border-color: #fab400;
  outline: none;
}

.select-test-form button {
  width: 100%;
  padding: 12px 16px;
  background: #fab400;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: url('/audio/cursor_button.png'), auto;
  transition: background 0.25s ease-in-out;
}

.select-test-form button:hover {
  background: #da9c00;
}

html {
    translate: no;
  }

  /* Container của tất cả biểu đồ */
#charts-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
}

/* Các biểu đồ tròn (canvas) */
#charts-container canvas {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
  padding: 12px;
  transition: transform 0.2s ease-in-out;
}
#charts-container canvas:hover {
  transform: scale(1.03);
}

/* Biểu đồ tổng quan */
#chartOverall {
  display: block;
  margin: 40px auto 20px;
  max-width: 100%;
  background: #ffffff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 16px;
}

/* Phần tiêu đề */
h2, h3 {
  color: #16325B;
  font-weight: 600;
}

/* Nút PDF */
#download-pdf-btn {
  background-color: #fab400;
  color: #fff;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: background-color 0.2s ease;
}
#download-pdf-btn:hover {
  background-color: #e09e00;
}

#charts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  justify-items: center;
  margin-bottom: 30px;
}

#charts-container canvas {
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  max-width: 100%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s ease-in-out;
}
#charts-container canvas:hover {
  transform: scale(1.03);
}

#listening-summary {
  background-color: #fff8e1;
  border: 2px solid #fab400;
  border-radius: 16px;
  padding: 24px;
  margin: 40px auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-width: 1000px;
  overflow: hidden;
}

#listening-summary h3 {
  color: #16325B;
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.circle-row {
  justify-content: space-between;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0 10px;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  display: flex;
  gap: 24px;
}

.circle-row canvas {
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  width: 160px;
  height: 160px;
}

