* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f4f6f8;
}

.layout {
    display: flex;
}

/* SIDEBAR */
.sidebar {
    width: 240px;
    height: 100vh;
    position: fixed;
    background: linear-gradient(180deg, #4f46e5, #4338ca);
    color: white;
}

.logo {
    padding: 20px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.sidebar ul {
    list-style: none;
    padding: 15px;
}

.sidebar ul li {
    padding: 14px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.sidebar ul li:hover {
    background: rgba(255,255,255,0.2);
}

.sidebar ul li.active {
    background: rgba(255,255,255,0.35);
    font-weight: 600;
}

/* CONTENT */
.content {
    margin-left: 240px;
    padding: 30px;
    width: calc(100% - 240px);
}
.card {
  background: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.card input {
  padding: 10px;
  width: 250px;
}

.card button {
  padding: 10px 16px;
  margin-left: 8px;
  background: #4f46e5;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#categoryList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-item {
  padding: 14px;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.list-item:hover {
  background: #eef2ff;
}
.primary-btn {
  margin: 15px 0;
  padding: 10px 16px;
  background: #4f46e5;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.course-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-box {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.add-box {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.add-box input {
  flex: 1;
  padding: 12px;
  font-size: 16px;
}

.add-box button {
  background: #5b4ddb;
  color: white;
  border: none;
  padding: 0 22px;
  border-radius: 20px;
  font-weight: 600;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-row {
  background: white;
  padding: 16px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cat-name {
  font-size: 17px;
  font-weight: 500;
}

.delete-btn {
  background: #6a5acd;
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
}
.course-card {
  background: #fff;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.course-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

.mrp {
  text-decoration: line-through;
  color: #999;
  margin-left: 6px;
}

.discount {
  color: green;
  font-weight: bold;
  margin-left: 6px;
}

/* modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-box {
  background: #fff;
  padding: 20px;
  width: 320px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tabs {
  display: flex;
  background: #eef2ff;
  padding: 6px;
  border-radius: 30px;
  margin: 12px 0;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 22px;
  cursor: pointer;
  color: #6b7280;
  font-weight: 600;
}

.tab.active {
  background: white;
  color: black;
}

.test-card {
  background: #fff;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.test-card h3 {
  margin: 0;
}

.meta {
  font-size: 13px;
  color: #6b7280;
}

.tag {
  font-size: 12px;
  color: #4f46e5;
}

.free {
  color: green;
  font-weight: bold;
}

.paid {
  color: red;
  font-weight: bold;
}
.modal-box {
  background: #ffffff;
  padding: 24px;
  width: 420px;              /* 🔥 bada */
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* inputs better look */
.modal-box input,
.modal-box select {
  padding: 12px 14px;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

/* buttons */
.modal-box button {
  padding: 12px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* save button */
.modal-box button.save-btn {
  background: #4f46e5;
  color: white;
}

/* cancel button */
.modal-box button.cancel-btn {
  background: #e5e7eb;
  color: #111;
}
/* ===== MODAL (ADD COURSE) ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-box {
  width: 420px;              /* 🔥 yahin se dialog bada */
  max-height: 85vh;
  overflow-y: auto;
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-box input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 15px;
}

.modal-box button {
  padding: 12px;
  border-radius: 22px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.modal-box button:first-of-type {
  background: #4f46e5;
  color: white;
}

.modal-box button:last-of-type {
  background: #e5e7eb;
}
/* ===== LOADING OVERLAY ===== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.loading-box {
  background: white;
  padding: 20px 26px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.spinner {
  width: 26px;
  height: 26px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #4f46e5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.quiz-form {
  background: white;
  padding: 20px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
}

.quiz-form input,
.quiz-form textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.quiz-form textarea {
  min-height: 90px;
  resize: vertical;
}

.save-btn {
  background: #4f46e5;
  color: white;
  padding: 14px;
  border-radius: 26px;
  border: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.back-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}
.quiz-sections {
  display: flex;        /* left-right columns */
  gap: 24px;
  align-items: flex-start;
}

/* dono columns responsive equal width */
.quiz-section {
  flex: 1;
  min-width: 0;
}

/* mobile pe phir se vertical */
@media (max-width: 768px) {
  .quiz-sections {
    flex-direction: column;
  }
}
.quiz-sections {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.quiz-section {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .quiz-sections {
    flex-direction: column;
  }
}
.set-card {
  background: #fff;
  padding: 16px;
  margin-bottom: 15px;
  border-radius: 10px;
}

.actions button {
  margin-right: 10px;
  cursor: pointer;
}

.free { color: green; font-weight: bold; }
.paid { color: red; font-weight: bold; }
.question-card {
  background: #fff;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.question-text {
  font-size: 16px;
  margin-bottom: 10px;
}

.options {
  list-style: none;
  padding-left: 0;
}

.options li {
  padding: 6px 10px;
  border-radius: 5px;
  margin-bottom: 6px;
  background: #f5f5f5;
}

.options li.correct {
  background: #d4edda;
  color: #155724;
  font-weight: bold;
}

.answer-line {
  margin-top: 8px;
  font-size: 14px;
  color: #2e7d32;
}

.solution-box {
  background: #f0f8ff;
  padding: 10px;
  border-left: 4px solid #2196f3;
  margin-top: 10px;
  border-radius: 4px;
}

.del-btn {
  margin-top: 12px;
  background: #ff4d4f;
  color: #fff;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
}
.lang.en { margin-bottom: 6px; }
.lang.hi { color: #444; }

.options li.correct {
  background: #e6ffe6;
  border-left: 4px solid green;
}

textarea {
  width: 100%;
  min-height: 70px;
  margin-bottom: 6px;
}

.subject {
  font-weight: bold;
  color: #1565c0;
  margin-bottom: 6px;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-box.big {
  background: #fff;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 10px;
}

.modal-box textarea,
.modal-box input,
.modal-box select {
  width: 100%;
  margin-bottom: 8px;
}

.modal-actions {
  display: flex;
  gap: 10px;
}
.quiz-form.inline {
  display: flex;
  align-items: center;
  gap: 10px;
}
.quiz-form.inline-full {
  display: flex;
  align-items: stretch;   /* 🔥 same height */
  gap: 12px;
}

.quiz-form.inline-full input[type="file"] {
  flex: 1;               /* left side width */
}

.save-btn.full {
  padding: 0 24px;
  font-size: 14px;
  white-space: nowrap;
  height: auto;
}
.import-row {
  display: flex;
  align-items: center;
  justify-content: space-between; /* 🔥 left & right split */
  background: #76d9ec;
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.import-row .left {
  flex: 1;
}

.import-row input[type="file"] {
  margin-top: 6px;
}

.import-row .right {
  display: flex;
  align-items: center;
}

/* Right side fixed button */
.upload-right {
  padding: 12px 26px;
  font-size: 15px;
  border-radius: 999px;        /* pill style */
  white-space: nowrap;
}
.find-question {
  display: flex;
  gap: 10px;
  margin: 15px 0 25px;
}

.find-question input {
  width: 220px;
  padding: 8px;
}

.find-question button {
  padding: 8px 14px;
  cursor: pointer;
}
.users-table {
  width: 100%;
  border-collapse: collapse;
}

.users-table th,
.users-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.users-table th {
  background: #f4f4f4;
  font-weight: 600;
}

.users-table tr:hover {
  background: #fafafa;
}
.user-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  margin-bottom: 15px;
  padding: 15px;
}

.user-card-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* TOP */
.user-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.user-basic h3 {
  margin: 0;
  font-size: 16px;
}

.user-basic span {
  font-size: 13px;
  color: #666;
}

/* INFO GRID */
.user-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 13px;
  color: #333;
}

.user-info b {
  color: #000;
}

.active {
  color: green;
  font-weight: 600;
}

.blocked {
  color: red;
  font-weight: 600;
}

/* ACTIONS */
.user-actions {
  display: flex;
  gap: 8px;
}

.user-actions button {
  flex: 1;
  padding: 6px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #e5e7eb;
}

.user-actions button:hover {
  background: #d1d5db;
}

.user-actions .del-btn {
  background: #fee2e2;
  color: #b91c1c;
}

.user-actions .del-btn:hover {
  background: #fecaca;
}
.order-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.order-top {
  display: flex;
  gap: 12px;
  align-items: center;
}

.order-top img {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}

.order-top h3 {
  margin: 0;
  font-size: 15px;
}

.order-top span {
  font-size: 13px;
  color: #666;
}

.order-info {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 13px;
}
.order-card {
  background: #fff;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

.order-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-top img {
  width: 75px;
  height: 45px;
  object-fit: cover;
  border-radius: 6px;
}

.order-top h3 {
  margin: 0;
  font-size: 16px;
}

.order-top .sub {
  font-size: 12px;
  color: #666;
}

.status {
  margin-left: auto;
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 20px;
  color: #fff;
}

.status.success { background: #28a745; }
.status.failed  { background: #dc3545; }

.order-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  font-size: 13px;
}
.user-orders {
  margin-top: 10px;
  background: #f9fafc;
  padding: 10px;
  border-radius: 8px;
}

.user-orders h4 {
  margin: 0 0 6px;
  font-size: 14px;
}

.order-mini-card {
  padding: 8px;
  margin-bottom: 6px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  font-size: 13px;
}

.order-title {
  font-weight: 600;
}

.order-meta {
  font-size: 12px;
  color: #666;
}

.order-status {
  font-size: 11px;
  font-weight: bold;
}

.order-status.success { color: #28a745; }
.order-status.failed { color: #dc3545; }

.no-order {
  font-size: 12px;
  color: #999;
}
.users-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.users-title h1 {
  margin: 0;
}

.users-title p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #666;
}

.users-search input {
  width: 280px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  outline: none;
}

.users-search input:focus {
  border-color: #6c63ff;
}
.quiz-actions {
  display: flex;
  gap: 10px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.add-btn, .save-btn, .upload-btn {
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #3f51b5;
  color: #fff;
  font-size: 14px;
}

.upload-btn {
  background: #009688;
}
#global-loading {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-box {
  background: #fff;
  padding: 20px 26px;
  border-radius: 8px;
  text-align: center;
  min-width: 180px;
}

.loading-box .msg {
  margin-top: 10px;
  font-size: 14px;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 4px solid #ddd;
  border-top-color: #3f51b5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.test-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}

.test-card-left {
  flex: 1;
}

.test-card-right {
  width: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.test-del-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  font-size: 18px;
  cursor: pointer;
  background: #ffebee;
  color: #c62828;
}

.test-del-btn:hover {
  background: #ffcdd2;
}
.options {
  list-style: none;
  padding: 0;
  margin-top: 8px;
}

.options li {
  padding: 6px;
  border: 1px solid #ddd;
  margin-bottom: 4px;
  border-radius: 4px;
}

.options li.correct {
  background: #e8f5e9;
  font-weight: bold;
  border-color: #43a047;
}

.solution-box {
  background: #f7f7f7;
  padding: 8px;
  margin-top: 8px;
  border-radius: 6px;
  font-size: 13px;
}
textarea {
  width: 100%;
  min-height: 110px;
  padding: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.modal-close {
  font-size: 20px;
  cursor: pointer;
  color: #dc2626;
}

.modal-close:hover {
  transform: scale(1.1);
}
#globalLoading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#globalLoading .box {
  background: #fff;
  padding: 20px 28px;
  border-radius: 10px;
  text-align: center;
  min-width: 220px;
}

#globalLoading .spinner {
  width: 38px;
  height: 38px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid #3f51b5;
  border-radius: 50%;
  margin: 0 auto 10px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
#globalLoading {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

#globalLoading .box {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 4px solid #ddd;
  border-top: 4px solid #3f51b5;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  /* IMPORTANT FIXES */
  overflow: visible !important;
  width: 100%;
}


.action-buttons {
  display: flex;
  gap: 12px;
  margin: 12px 0;
}

.btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  border: none;
}

.btn.primary {
  background: #4f46e5;
  color: #fff;
}

.btn.secondary {
  background: #e5e7eb;
  color: #111;
}
/* ===== Question Set Card UI ===== */

#setList {
  list-style: none;          /* 🔥 bullet hata */
  padding: 0;
  margin: 0;
}

.set-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.set-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.set-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.set-title {
  font-size: 16px;
  font-weight: 600;
  color: #111;
  margin-bottom: 10px;
}

.set-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

.set-btn {
  width: 100%;
  background: #4f46e5;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
}

.set-btn:hover {
  background: #4338ca;
}
/* ===== ADD QUESTIONS PAGE STYLES ===== */

.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.page-header h1 {
  font-size: 26px;
  font-weight: 700;
  color: #3f2bd8;
}

.subtitle {
  color: #666;
  margin-top: 2px;
}

/* Info box */
.info-box {
  background: #f6f7ff;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Buttons */
.add-btn {
  background: #4f46e5;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.add-btn.green {
  background: #16a34a;
}

.add-btn.small {
  padding: 6px 12px;
  font-size: 14px;
}

.add-btn:hover {
  opacity: 0.9;
}

/* Card */
.card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  margin-bottom: 16px;
}

/* Test card */
.test-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge {
  background: #eef2ff;
  color: #3730a3;
  padding: 4px 10px;
  font-size: 14px;
  border-radius: 999px;
  font-weight: 600;
}

/* Section title */
.section-title {
  margin: 18px 0 10px;
  font-size: 18px;
  font-weight: 700;
}

/* Set row */
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.set-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.q-count {
  font-size: 13px;
  color: #555;
}
.test-card.active {
  border: 2px solid #4f46e5;
  background: #eef2ff;
}

.active-test-name {
  color: #4f46e5;
  font-weight: 700;
}
.set-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.set-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.set-name {
  font-weight: 600;
}

.q-count {
  font-size: 13px;
  color: #555;
}

.set-actions {
  display: flex;
  gap: 8px;
}

.add-btn.danger {
  background: #ef4444;
  color: #fff;
}
/* ===== Add Questions 2-column Layout ===== */

.aq-layout {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

/* Left side (Tests) */
.aq-left {
  width: 50%;
}

/* Right side (Question Sets) */
.aq-right {
  width: 50%;
  background: #f9fafb;
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* Question set header */
.qs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

/* Mobile responsive */
@media (max-width: 900px) {
  .aq-layout {
    flex-direction: column;
  }

  .aq-left,
  .aq-right {
    width: 100%;
  }
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-box {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  width: 400px;
}

.modal-box.large {
  width: 450px;
}

.modal-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.question-row {
  padding: 12px;
}

.question-text {
  margin-bottom: 8px;
}

.question-actions {
  display: flex;
  gap: 10px;
}
.set-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.add-btn.green {
  background: #22c55e;
  color: #fff;
}
.loader-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-box {
  background: #fff;
  padding: 24px 30px;
  border-radius: 10px;
  text-align: center;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.loader-box p {
  margin-top: 12px;
  font-weight: 600;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ddd;
  border-top: 4px solid #2ecc71;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  width: 450px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 10px;
  padding: 20px;
}

.detail-input {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
}

.btn-add {
  background: #4f46e5;
  color: white;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
}

.btn-save {
  background: green;
  color: white;
  border: none;
  padding: 8px 14px;
  margin-right: 10px;
}

.btn-cancel {
  background: red;
  color: white;
  border: none;
  padding: 8px 14px;
}
.active-test {
  border: 2px solid #4f46e5 !important;
  background: #eef2ff;
  transition: all 0.3s ease;
}
.set-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.mock-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:#fff;
  padding:15px;
  margin:12px 0;
  border-radius:10px;
  box-shadow:0 3px 10px rgba(0,0,0,0.08);
}

.mock-card h3{
  margin:0 0 5px 0;
}

.mock-card button{
  background:#ff5f5f;
  border:none;
  padding:8px 12px;
  border-radius:6px;
  color:#fff;
  cursor:pointer;
}

/* ================= FORCE FULLSCREEN OVERLAY ================= */

.modal-overlay {
  position: fixed;
  inset: 0;               /* top:0 left:0 right:0 bottom:0 */
  width: 100vw;
  height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  background: rgba(0,0,0,0.6);

  z-index: 999999;

  margin: 0;
  padding: 0;
}

/* ================= MODAL BOX ================= */

.modal {
  position: relative;     /* IMPORTANT */

  width: 450px;
  max-width: 90%;

  background: #fff;
  padding: 30px;
  border-radius: 20px;

  display: flex;
  flex-direction: column;
  gap: 15px;

  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
/* ===== MODAL OVERLAY ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.5);

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 9999;
}

/* ===== MODAL BOX ===== */
.modal-content {
  background: #ffffff;
  width: 500px;
  max-width: 90%;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);

  display: flex;
  flex-direction: column;
  gap: 12px;

  animation: popIn 0.25s ease;
}

/* ===== POP ANIMATION ===== */
@keyframes popIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== INPUTS ===== */
.modal-content input,
.modal-content textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  width: 100%;
}

/* ===== BUTTONS ===== */
.modal-content button {
  padding: 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.modal-content button:first-of-type {
  background: #2563eb;
  color: white;
}

.modal-content button:last-of-type {
  background: #e5e7eb;
}

/* ================= MOCK GRID ================= */
.mock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

/* ================= MOCK CARD ================= */
.mock-card-modern {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: 0.25s ease;
  border: 1px solid #f1f5f9;
}

.mock-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.mock-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.mock-date {
  font-size: 13px;
  color: #6b7280;
  margin: 6px 0 10px 0;
}

.mock-meta {
  font-size: 14px;
  color: #374151;
  margin-bottom: 14px;
}

.mock-status {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.status-active {
  background: #dcfce7;
  color: #166534;
}

.status-inactive {
  background: #fee2e2;
  color: #7f1d1d;
}

.mock-actions {
  display: flex;
  gap: 10px;
}

.btn-blue {
  background: #2563eb;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

.btn-red {
  background: #ef4444;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

.btn-blue:hover { background: #1d4ed8; }
.btn-red:hover { background: #dc2626; }

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

/* ===== MODAL BOX ===== */
.modal-box-modern {
  background: white;
  width: 700px;
  max-width: 95%;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: slideUp 0.25s ease;
}

.modal-box-modern h2 {
  margin-bottom: 16px;
}

.modal-box-modern textarea {
  width: 100%;
  height: 280px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-family: monospace;
  resize: none;
  margin-bottom: 16px;
}

.modal-actions-modern {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-save {
  background: #16a34a;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-cancel {
  background: #e5e7eb;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

@keyframes fadeIn {
  from {opacity:0;}
  to {opacity:1;}
}

@keyframes slideUp {
  from {transform:translateY(20px);opacity:0;}
  to {transform:translateY(0);opacity:1;}
}

.withdraw-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 15px;
  margin: 15px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 45px;
  height: 45px;
  background: #4f46e5;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.withdraw-info {
  margin-top: 10px;
  line-height: 1.6;
}

.actions {
  margin-top: 12px;
}

button.approve {
  background: #22c55e;
  color: white;
  border: none;
  padding: 6px 12px;
  margin-right: 8px;
  border-radius: 6px;
  cursor: pointer;
}

button.reject {
  background: #ef4444;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.status.pending {
  color: orange;
  font-weight: bold;
}

.status.approved {
  color: green;
  font-weight: bold;
}

.status.rejected {
  color: red;
  font-weight: bold;
}

.done {
  font-weight: bold;
  color: green;
}

.coin-summary {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
  gap: 10px;
}

.coin-summary .box {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
}

.box.total {
  background: #e0f2fe;
}

.box.withdraw {
  background: #fee2e2;
}

.box.remain {
  background: #dcfce7;
}

.withdraw-history {
  max-height: 150px;
  overflow-y: auto;
  background: #f9fafb;
  padding: 10px;
  border-radius: 8px;
}

.mini-withdraw {
  padding: 6px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.withdraw-card {
  background: #fff;
  padding: 15px;
  margin: 12px 0;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.user-info {
  display: flex;
  gap: 10px;
  align-items: center;
}

.avatar {
  width: 40px;
  height: 40px;
  background: #4f46e5;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.withdraw-info {
  margin-top: 10px;
  font-size: 14px;
}

.date-box {
  margin-top: 8px;
  font-size: 12px;
  color: #6B7280;
}

.actions {
  margin-top: 10px;
}

.actions button {
  padding: 6px 12px;
  margin-right: 8px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.approve {
  background: #22c55e;
  color: white;
}

.reject {
  background: #ef4444;
  color: white;
}

.status.pending { color: orange; }
.status.approved { color: green; }
.status.rejected { color: red; }

.done {
  font-weight: bold;
}

.reject {
  background: #ef4444;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  margin-left: 8px;
}
/* BACKGROUND */
.mock-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* BOX */
.mock-modal-box {
  background: white;
  padding: 25px;
  border-radius: 12px;
  width: 350px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* INFO ROW */
.info-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* BUTTONS */
.modal-actions {
  display: flex;
  justify-content: space-between;
}
.mock-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.mock-popup-box {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.page-card {
  width: 500px;          /* 🔥 fixed width */
  margin-left: 20px;     /* left shift */
}
.page-card {
  width: 500px;          /* 🔥 fixed width */
  margin-left: 20px;     /* left shift */
}
.layout {
  display: flex;
}

.content {
  flex: 1;
  padding: 20px;
}

.page-card {
  margin-left: 10px;
}
/* 🔥 2 column layout */
.mock-layout {
  display: flex;
  height: 100%;
}

/* LEFT SIDE */
.mock-left {
  width: 400px;
  padding: 10px;
}

/* RIGHT SIDE EMPTY */
.mock-right {
  flex: 1;
  border-left: 2px solid #eee;
}

.mock-card {
  padding: 12px;
  margin-bottom: 10px;
  background: #eef2ff;
  border-radius: 8px;
}

.mock-title {
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 8px;
}

.mock-actions {
  display: flex;
  gap: 10px;
}

.mock-right {
  flex: 1;
  padding: 15px;
}

.set-card {
  padding: 10px;
  margin-bottom: 8px;
  background: #dbeafe;
  border-radius: 6px;
  cursor: pointer;
}

.question-card {
  background: #fff;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
}
.lang-switch {
  margin-bottom: 10px;
}

.lang-switch button {
  margin-right: 10px;
  padding: 5px 10px;
  cursor: pointer;
}
.set-card {
  padding: 10px;
  margin-bottom: 8px;
  background: #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.set-card:hover {
  background: #c7d2fe;
}

/* 🔥 ACTIVE COLOR */
.active-set {
  background: #6366f1 !important;
  color: white;
  font-weight: bold;
}
.mock-popup-box textarea {
  width: 100%;
  height: 60px;
}

/* 🔥 FULL SCREEN BACKGROUND */
.mock-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* 🔥 BIG POPUP BOX */
.mock-popup-box {
  width: 700px;          /* 🔥 bada width */
  max-height: 90vh;      /* 🔥 screen ke andar fit */
  overflow-y: auto;      /* 🔥 scroll enable */
  background: white;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 🔥 textarea bada */
.mock-popup-box textarea {
  width: 100%;
  min-height: 80px;
}

/* 🔥 input spacing */
.mock-popup-box input {
  padding: 8px;
}
.question-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.question-actions button {
  padding: 5px 10px;
  cursor: pointer;
}