/* ==========================================
   1. ADMIN PANEL STYLES (Existing & Preserved)
   ========================================== */
.aone-box { background: #fff; border: 1px solid #ccd0d4; margin-bottom: 20px; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.aone-box-title { padding: 10px 12px; border-bottom: 1px solid #ccd0d4; font-weight: 600; background: #f7f7f7; }
.aone-inside { padding: 15px; }
.opt-row { display: flex; align-items: flex-start; margin-bottom: 12px; background: #f9f9f9; padding: 10px; border: 1px solid #eee; }
.opt-image-preview { width: 45px; height: 45px; background: #eee; border: 1px solid #ddd; margin-left: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.opt-image-preview img { max-width: 100%; height: auto; }
.quick-edit-row { background: #f0f6fb; border-left: 4px solid #2271b1; }

/* ==========================================
   2. FRONTEND QUIZ PLAYER STYLES (Improved UI)
   ========================================== */
.aone-quiz-container { 
    max-width: 800px; 
    margin: 11px auto; 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important; 
    background: transparent;
    line-height: normal !important;
}

.aone-quiz-container code, 
.aone-quiz-container span.aone-opt-text {
    font-family: inherit !important;
    font-size: inherit !important;
    background: transparent !important;
    color: inherit !important;
}

.aone-question-block { 
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 10px !important; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #edf2f7;
    display: none; 
    animation: aoneFadeIn 0.5s;
}

.aone-question-block.active { display: block; }

@keyframes aoneFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.aone-question-text { 
    font-size: 22px !important; 
    color: #1a202c !important; 
    font-weight: 700 !important; 
    margin-bottom: 25px !important; 
    line-height: 1.5 !important;
}

.aone-options-list { list-style: none !important; padding: 0 !important; margin: 0 !important; }

.aone-option-item { 
    border: 2px solid #edf2f7 !important; 
    border-radius: 12px !important; 
    padding: 16px 20px !important; 
    margin-bottom: 14px !important; 
    cursor: pointer; 
    display: flex; 
    align-items: center;
    transition: all 0.2s ease-in-out; 
    font-size: 17px !important; 
    color: #4a5568 !important;
    position: relative;
    background: #fff !important;
}

.aone-option-item:hover { border-color: #cbd5e0 !important; background: #f8fafc !important; }

.aone-option-label { 
    font-weight: 800 !important; 
    margin-right: 15px !important; 
    color: #718096 !important;
    min-width: 25px;
}

/* --- ADDED: CORRECT & WRONG INDICATORS (Tick/Cross) --- */
.aone-option-item.correct { 
    border-color: #38a169 !important; 
    background: #f0fff4 !important; 
    color: #2f855a !important; 
}
.aone-option-item.correct::after {
    content: "\2713";
    position: absolute;
    right: 20px;
    font-size: 22px;
    font-weight: bold;
    color: #38a169;
}

.aone-option-item.wrong { 
    border-color: #e53e3e !important; 
    background: #fff5f5 !important; 
    color: #c53030 !important; 
}
.aone-option-item.wrong::after {
    content: "\2715";
    position: absolute;
    right: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #e53e3e;
}

.aone-explanation-box { 
    display: none; 
    background: #f0fff9 !important; 
    border-radius: 12px !important; 
    padding: 15px !important; 
    margin: 15px 0 !important;
    line-height: 26px;
    border-left: 6px solid #38a169 !important;
    color: #2d3748 !important;
}

.aone-btn-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 72px; 
    margin-top: 10px;
    clear: both;
}

.aone-next-btn { 
    background: #2c7a7b !important; 
    color: #ffffff !important; 
    border: none !important; 
    padding: 12px 25px !important; 
    font-size: 15px !important; 
    font-weight: 600 !important;
    border-radius: 50px !important; 
    cursor: pointer; 
    transition: background 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: auto;
}
.aone-next-btn:hover { background: #285e61 !important; }

/* ==========================================
   3. FEEDBACK SYSTEM STYLES
   ========================================== */
.aone-feedback-btn {
    background: #e53e3e !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 18px !important;
    font-size: 14px !important;
    border-radius: 50px !important;
    cursor: pointer;
    font-weight: 600;
}

.aone-modal {
    display: none; position: fixed; z-index: 99999; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
}

.aone-modal-content {
    background-color: #fff; margin: 10% auto; padding: 25px;
    border-radius: 15px; width: 90%; max-width: 500px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2); position: relative;
    animation: aoneSlideDown 0.3s ease-out;
}

@keyframes aoneSlideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.aone-modal-close { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; }
.aone-fb-qtext-box { background: #f7fafc; border: 1px solid #edf2f7; padding: 12px; border-radius: 8px; margin-bottom: 15px; }

#aone-fb-textarea { width: 100%; height: 120px; padding: 12px; border: 2px solid #edf2f7; border-radius: 10px; resize: none; }

/* ==========================================
   4. DASHBOARD PAGE STYLES
   ========================================== */
.aone-dashboard h1 { margin-bottom: 20px; font-weight: 700; color: #1a202c; }
.aone-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: #fff; padding: 25px 20px; border-radius: 12px; display: flex; align-items: center; box-shadow: 0 4px 6px rgba(0,0,0,0.04); border: 1px solid #edf2f7; border-top-width: 4px !important; }
.stat-card:hover { transform: translateY(-5px); transition: 0.2s; }
.stat-card span.dashicons { font-size: 45px; width: 45px; height: 45px; margin-right: 20px; }
.stat-info h3 { margin: 0; font-size: 28px; color: #2d3748; }
.stat-info p { margin: 5px 0 0; font-size: 14px; font-weight: 600; color: #718096; text-transform: uppercase; }

.stat-card.blue { border-top-color: #3182ce; } .stat-card.blue span { color: #3182ce; }
.stat-card.green { border-top-color: #38a169; } .stat-card.green span { color: #38a169; }
.stat-card.orange { border-top-color: #ed8936; } .stat-card.orange span { color: #ed8936; }
.stat-card.red { border-top-color: #e53e3e; } .stat-card.red span { color: #e53e3e; }

/* NEW FB INPUTS STYLES */
.aone-fb-inputs { display: flex; flex-direction: column; gap: 12px; margin: 15px 0; }
.aone-fb-inputs input { width: 100%; padding: 12px !important; border: 2px solid #edf2f7 !important; border-radius: 10px !important; background: #fff !important; }

/* FEEDBACK TABLE (Admin Side) */
.widefat td strong { color: #2c3338; }
.widefat td small { line-height: 1.4; }

/* ==========================================
   5. MISC & RESPONSIVE
   ========================================== */
@media (max-width: 600px) {
    .aone-btn-wrapper { flex-direction: column; gap: 10px; }
    .aone-next-btn, .aone-feedback-btn { width: 100%; text-align: center; }
}
.aone-post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.aone-post-nav a {
    text-decoration: none;
    color: #2271b1;
    font-weight: bold;
}
/* --- Aone Quiz Professional UI --- */

/* मुख्य कंटेनर */
.aone-quiz-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* प्रश्न का टेक्स्ट */
.aone-question-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ऑप्शन्स की लिस्ट */
.aone-options-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
}

.aone-option-item {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.aone-option-item:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.aone-option-label {
    font-weight: bold;
    color: #4a5568;
    margin-right: 12px;
}

/* सही और गलत उत्तर के रंग */
.aone-option-item.correct {
    background: #f0fff4 !important;
    border-color: #48bb78 !important;
    color: #22543d;
}

.aone-option-item.wrong {
    background: #fff5f5 !important;
    border-color: #f56565 !important;
    color: #742a2a;
}

/* एक्सप्लेनेशन बॉक्स (SEO FAQ Style) */
.aone-explanation-box {
    background: #ebf8ff;
    border-left: 5px solid #3182ce;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
    color: #2a4365;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Related Questions Section */
.aone-related-box {
    background: #f9fafb;
    border-radius: 10px;
    padding: 20px;
}

.aone-related-box h4 {
    color: #2d3748;
    font-size: 1.1rem;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 10px;
}

.aone-related-box a {
    transition: color 0.2s;
}

.aone-related-box a:hover {
    color: #1a365d !important;
    text-decoration: underline !important;
}

/* बटन स्टाइल्स */
.aone-next-btn, .aone-feedback-btn {
    background: #3182ce;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 10px;
}

.aone-next-btn:hover { background: #2b6cb0; }
/* Animations for JS */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.animated.pulse { animation: pulse 0.4s ease-in-out; }
.animated.shake { animation: shake 0.3s ease-in-out; }

.aone-question-block { transition: transform 0.3s ease; }