/* CSS Fixes for Line Breaking in Math/Text */
.mmt-question, .mmt-option-label { word-break: break-word; white-space: normal; }
.mmt-question p, .mmt-option-label p { display: inline; margin: 0; padding: 0; }
.MathJax { outline: 0; display: inline-block !important; } 

/* Mehena.in White & Gold Theme Setup */
.mmt-wrapper { max-width: 850px; margin: 0 auto; font-family: 'Segoe UI', Tahoma, Geneva, sans-serif; color: #1a1a1a; background-color: transparent; }
.mmt-card { background: #ffffff; border-radius: 12px; padding: 35px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); margin-bottom: 30px; border: 1px solid #e2e8f0; position: relative; overflow: hidden; }
.mmt-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #1a1a1a, #D4AF37, #1a1a1a); }

.mmt-heading { text-align: center; color: #1a1a1a; margin-bottom: 25px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.mmt-form-group { margin-bottom: 20px; }
.mmt-form-group label { display: block; font-weight: 700; margin-bottom: 8px; color: #1a1a1a; }

.mmt-input { width: 100%; padding: 12px; background-color: #f8fafc; color: #1a1a1a; border: 1px solid #cbd5e0; border-radius: 6px; font-size: 16px; transition: 0.3s; height: auto !important; min-height: 48px !important; }
.mmt-input option { white-space: normal; word-wrap: break-word; }
.mmt-input:focus { border-color: #D4AF37; outline: none; box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15); background-color: #fff;}

.mmt-qty-wrapper { display: flex; align-items: center; width: 160px; background: #f8fafc; border: 1px solid #cbd5e0; border-radius: 6px; overflow: hidden; }
.mmt-qty-btn { background: #1a1a1a; color: #D4AF37; border: none; padding: 12px 18px; font-size: 20px; cursor: pointer; font-weight: bold; transition: 0.3s; }
.mmt-qty-btn:hover { background: #D4AF37; color: #1a1a1a; }
.mmt-qty-input { flex: 1; width: 100%; text-align: center; background: transparent; border: none; color: #1a1a1a; font-size: 18px; -moz-appearance: textfield; font-weight: 700; }
.mmt-qty-input::-webkit-outer-spin-button, .mmt-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mmt-qty-input:focus { outline: none; }

.mmt-chapters-box { border: 1px solid #cbd5e0; padding: 15px; border-radius: 6px; max-height: 180px; overflow-y: auto; background: #f8fafc; color: #1a1a1a;}
.mmt-chapter-item { display: block; margin-bottom: 8px; cursor: pointer; font-size: 15px; font-weight: 500;}

/* Buttons */
.mmt-btn { padding: 12px 24px; font-size: 16px; font-weight: bold; border-radius: 6px; cursor: pointer; transition: all 0.3s; border: none; text-transform: uppercase; letter-spacing: 0.5px; }
.mmt-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.mmt-btn-primary { background: #1a1a1a; color: #D4AF37; border: 1px solid #1a1a1a; }
.mmt-btn-primary:hover:not(:disabled) { background: #D4AF37; color: #1a1a1a; border-color: #D4AF37; box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); }
.mmt-btn-outline { background: transparent; border: 2px solid #1a1a1a; color: #1a1a1a; }
.mmt-btn-outline:hover { background: #1a1a1a; color: #D4AF37; }
.mmt-btn-warning { background: #cbd5e0; color: #1a1a1a; }
.mmt-btn-warning:hover { background: #a0aec0; }
.mmt-btn-success { background: #27ae60; color: #fff; }
.mmt-btn-success:hover { background: #2ecc71; box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3); }

.mmt-test-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #e2e8f0; padding-bottom: 15px; margin-bottom: 25px; }
.mmt-q-tracker { font-size: 18px; font-weight: 800; color: #1a1a1a; }
.mmt-timer-box { font-size: 18px; font-weight: bold; background: #1a1a1a; color: #D4AF37; padding: 5px 15px; border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.mmt-question { font-size: 19px; font-weight: 700; margin-bottom: 25px; line-height: 1.6; color: #1a1a1a; }

.mmt-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.mmt-option-label { display: block; padding: 16px; border: 2px solid #e2e8f0; border-radius: 8px; cursor: pointer; transition: 0.2s; background: #f8fafc; font-size: 16px; color: #333; }
.mmt-option-label:hover { border-color: #D4AF37; background: #fff; box-shadow: 0 2px 8px rgba(212, 175, 55, 0.1); }
.mmt-option-label input { display: none; }
.mmt-option-label.selected { border-color: #D4AF37; background: #fdfbf2; font-weight: 700; color: #1a1a1a; }

.mmt-navigation { display: flex; justify-content: space-between; gap: 10px; }

.mmt-result-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 15px; margin-bottom: 30px; }
.mmt-stat-box { padding: 20px 10px; border-radius: 10px; text-align: center; color: #fff; background: #1a1a1a; border: 1px solid #D4AF37; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.mmt-stat-box h3 { margin: 0 0 10px 0; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: #e2e8f0; }
.mmt-stat-box p { margin: 0; font-size: 28px; font-weight: 800; color: #D4AF37;}
.stat-score p, .stat-percent p { color: #F1C40F; }
.stat-correct p { color: #2ecc71; }
.stat-wrong p { color: #e74c3c; }
.stat-skipped p { color: #bdc3c7; }

.mmt-report-item { border: 1px solid #e2e8f0; padding: 20px; border-radius: 8px; margin-bottom: 20px; background: #f8fafc; }
.mmt-report-item.correct { border-left: 5px solid #2ecc71; }
.mmt-report-item.wrong { border-left: 5px solid #e74c3c; }
.mmt-report-item.skipped { border-left: 5px solid #a0aec0; }

.mmt-badge { display: inline-block; padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: bold; margin-top: 15px; margin-right: 10px; color: #fff; }
.mmt-badge-correct { background: #2ecc71; }
.mmt-badge-wrong { background: #e74c3c; }
.mmt-badge-skipped { background: #718096; }

.mmt-explanation { background: #fff; padding: 15px; margin-top: 15px; border-radius: 6px; font-size: 15px; border-left: 4px solid #D4AF37; color: #1a1a1a; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }