*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: "Segoe UI", sans-serif;
}

body{
  min-height:100vh;
  background: radial-gradient(circle at top, #0f172a, #020617);
  display:flex;
  justify-content:center;
  align-items:center;
  color:#fff;
}

.container{
  width:95%;
  max-width:1200px;
}

/* HEADER */
.header{
  text-align:center;
  margin-bottom:30px;
}

.header h1{
  font-size:34px;
  font-weight:700;
}

.header span{
  color:#38bdf8;
}

.header p{
  opacity:.7;
  margin-top:6px;
}

/* GRID */
.card-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:25px;
}

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

/* CARD */
.card{
  background: linear-gradient(180deg,#020617,#020617cc);
  border-radius:18px;
  padding:20px;
  box-shadow:0 25px 60px rgba(0,0,0,.7);
  border:1px solid rgba(255,255,255,.06);
}

.card h3{
  margin-bottom:15px;
  font-size:18px;
}

/* INPUT */
input, textarea{
  width:100%;
  background:#020617;
  border:1px solid #1e293b;
  color:#fff;
  padding:10px;
  border-radius:10px;
  margin-bottom:10px;
}

textarea{
  height:90px;
  resize:none;
}

/* BUTTON */
.btn{
  width:100%;
  padding:12px;
  border:none;
  border-radius:12px;
  font-weight:600;
  margin-top:8px;
  cursor:pointer;
}

.blue{ background:#38bdf8; color:#020617;}
.green{ background:#22c55e; color:#020617;}
.red{ background:#ef4444; }

/* CHAT */
#chatBox{
  height:260px;
  background:#020617;
  border-radius:12px;
  padding:12px;
  overflow-y:auto;
  font-size:14px;
}

/* FOOTER */
.footer{
  text-align:center;
  opacity:.6;
  margin-top:25px;
  font-size:13px;
}

/* IELTS SCORE CARD */
.score-card {
  margin-top: 20px;
  background: rgba(2, 6, 23, 0.85);
  border-radius: 16px;
  padding: 18px;
}

.score-card h3 {
  margin-top: 0;
  color: #38bdf8;
  font-weight: 600;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.score-row span {
  width: 80px;
  color: #e5e7eb;
}

.bar {
  flex: 1;
  height: 8px;
  background: rgba(148,163,184,0.2);
  border-radius: 10px;
  overflow: hidden;
}

.fill {
  height: 100%;
  background: linear-gradient(90deg,#22c55e,#38bdf8);
  border-radius: 10px;
}

.score-row strong {
  width: 35px;
  text-align: right;
  color: #facc15;
}

.overall-score {
  margin-top: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: #22c55e;
}

.overall-score span {
  font-size: 1.3rem;
  margin-left: 6px;
}

.feedback {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #e5e7eb;
  background: rgba(15,23,42,0.6);
  padding: 10px;
  border-radius: 10px;
}

/* Bangla Toggle Checkbox */
#banglaToggle {
  transform: scale(1.2);
  cursor: pointer;
}
.header-toggle label {
  user-select: none;
}

/* Practice Mode Dropdown */
.practice-mode select {
  cursor: pointer;
  font-weight:600;
}

/* Progress Card */
.progress-card {
  background: rgba(2,6,23,0.85);
  border-radius:16px;
  padding:18px;
  margin-bottom:20px;
}

.progress-card h3 {
  margin-top:0;
  color:#38bdf8;
  font-weight:600;
  margin-bottom:12px;
}

.progress-row {
  display:flex;
  justify-content:space-between;
  margin-bottom:8px;
  font-size:0.9rem;
  color:#e5e7eb;
}

/* Voice Recorder */
.voice-recorder button {
  width:48%;
  margin-right:4%;
}
.voice-recorder button:last-child {
  margin-right:0;
}
#recordStatus {
  font-weight:600;
}
