/* ======================
   DESIGN VARIABLES
====================== */
:root {
  --color-primary: #88a96b;
  --color-accent: #ffc83d;
  --color-danger: #c04d3f;
  --color-bg: #f4f6f8;
  --radius: 14px;
  --transition: 0.3s ease;
}

/* ======================
   RESET
====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ======================
   BODY
====================== */
body {
  font-family: Arial, sans-serif;
  background: var(--color-bg);
  width: 100%;
  margin: 0;
  min-height: 100vh;
}

/* ======================
   DESKTOP CONTAINER
====================== */
.container {
  width: 100%;
  max-width: 100%;
  padding: 40px;
}

/* ======================
   CARD
====================== */
.card {
  background: #fff;
  border: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 30px;
}

.align-center{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ======================
   SECTION TITLE
====================== */
.section-title {
  background: #eef2e7;
  padding: 12px;
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 20px;
}

/* ======================
   VISUAL GRID (Desktop)
====================== */
.visual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.visual-box {
  height: 250px;   /* Bigger for desktop */
  background: #ddd;
  border-radius: var(--radius);
}

/* ======================
   BUTTON
====================== */
.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: bold;
  transition: var(--transition);
  margin-bottom: 20px;
  font-size: 16px;
}

.btn--primary {
  background: var(--color-accent);
}

.btn:hover {
  transform: translateY(-3px);
}

/* ======================
   PROGRESS
====================== */
.progress {
  width: 100%;
  height: 12px;
  background: #ddd;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress__bar {
  width: 0%;
  height: 100%;
  background: var(--color-danger);
  transition: width 0.3s ease;
}

/* ======================
   INSTRUCTION
====================== */
.instruction-box {
  background: #f1f1f1;
  padding: 25px;
  border-radius: var(--radius);
  min-height: 180px;
}

/* ======================
   MOBILE RESPONSIVE
====================== */
@media (max-width: 768px) {

  .container {
    padding: 20px;
  }

  .visual-grid {
    grid-template-columns: 1fr;
  }

  .visual-box {
    height: 180px;
  }

  .instruction-box {
    min-height: 140px;
  }
}

.timer {
  padding: 10px;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  border-radius: 10px;
  background: #eef2e7;
  transition: 0.3s ease;
}

.timer--active {
  background: #ffe5e5;
  color: #e53935;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}


.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal--active {
  display: flex;
}

.modal__content {
  background: #fff;
  padding: 30px;
  border-radius: 14px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
  z-index: 10000;
}

.modal__actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doubt-modal .modal__content {
  max-width: 560px;
  text-align: left;
  padding: 22px 20px;
}

.doubt-modal__close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #55637d;
}

.doubt-modal__content h3 {
  margin-bottom: 12px;
}

.doubt-form {
  display: grid;
  gap: 10px;
}

.doubt-form label {
  font-size: 13px;
  color: #5b6880;
  font-weight: 700;
}

.doubt-form input,
.doubt-form textarea {
  width: 100%;
  border: 1px solid #d3dae8;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

.doubt-form textarea {
  resize: vertical;
  min-height: 120px;
}

.doubt-form .btn {
  margin-bottom: 0;
}

.btn--secondary {
  background: #ccc;
}


#completionContainer{
  display: none;
}


.dashboard .card{
  margin: 2px;
  border: none;
  background-color: rgb(255, 255, 255);
}

.dashboard.container{
  background-color: #dee3ff;
}

img.profile__img {
    width: 100px;
}

.dashboard__logout {
  display: inline-block;
  margin-top: 8px;
  color: #2e5cb8;
  text-decoration: none;
  font-weight: 700;
}

.dashboard__logout:hover {
  text-decoration: underline;
}

.dashboard__admin-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #2e5cb8;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.dashboard__admin-btn:hover {
  background: #24488f;
}

.admin-page {
  max-width: 1200px;
  margin: 0 auto;
}

.admin-card {
  border-width: 2px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-panel {
  border: 1px solid #d7dccf;
  border-radius: 10px;
  padding: 14px;
  background: #fafcf8;
}

.admin-panel h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.admin-form {
  display: grid;
  gap: 8px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #cfd5c5;
  border-radius: 8px;
  font-size: 14px;
}

.admin-form button {
  margin-top: 8px;
}

.admin-lists {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-list {
  background: #f5f7f2;
  border: 1px solid #d7dccf;
  border-radius: 10px;
  padding: 14px;
}

.admin-list ul {
  margin-left: 20px;
  margin-top: 8px;
}

@media (max-width: 992px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-lists {
    grid-template-columns: 1fr;
  }
}
.visual-box {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.visual-box__video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: var(--radius);
  background: #000;
  object-fit: contain;
}

#practiceContainer {
  padding-top: 8px;
  padding-bottom: 16px;
}

#practiceContainer .card {
  padding-top: 14px;
  border-color: #d64545;
}

#practiceContainer .visual-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 90px 1fr 90px;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 12px;
}

#practiceContainer .practice-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  align-items: stretch;
}

#practiceContainer .practice-main--with-readable {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

#practiceContainer .visual-box {
  height: min(52vh, 560px);
  aspect-ratio: auto;
}

.readable-panel {
  border: 1px solid #dbe3f6;
  border-radius: 12px;
  background: #f9fbff;
  padding: 12px;
  display: none;
  min-height: min(52vh, 560px);
}

.readable-panel h4 {
  margin: 0 0 10px 0;
  font-size: 16px;
}

.readable-scroll {
  max-height: calc(min(52vh, 560px) - 64px);
  overflow: auto;
  background: #fff;
  border: 1px solid #e2e8f5;
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.55;
}

.visual-controls {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.video-control-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 700;
  background: #eef2e7;
  cursor: pointer;
  transition: var(--transition);
}

.video-control-btn:hover {
  background: #dfe8d2;
}

.video-control-btn.is-active {
  background: var(--color-accent);
}

@media (max-width: 768px) {
  #practiceContainer {
    padding-top: 6px;
    padding-left: 10px;
    padding-right: 10px;
  }

  #practiceContainer .visual-box {
    height: min(42vh, 320px);
  }

  #practiceContainer .visual-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #practiceContainer .practice-main--with-readable {
    grid-template-columns: 1fr;
  }

  .readable-panel {
    min-height: auto;
  }

  .readable-scroll {
    max-height: 220px;
  }

  .visual-controls {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .video-control-btn {
    min-width: 80px;
  }
}


.prep-card {
  min-height: 50vh;
  text-align: center;
  gap: 12px;
}

.prep-title {
  font-size: 34px;
  color: var(--color-primary);
}

.prep-message {
  font-size: 20px;
  max-width: 640px;
  line-height: 1.5;
}

.prep-ready-btn {
  max-width: 260px;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .prep-title {
    font-size: 26px;
  }

  .prep-message {
    font-size: 18px;
  }
}

