/************************************ SelectIELTS - LIGHT THEME **************************************/
/* Background Overlay */
.class_AbsFlexCenter.ContSelectExam {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, #f8fafc, #e0e7ff 70%);
    animation: modalPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes modalPop {
    0% {
        opacity: 0;
        transform: scale(0.6) translateY(40px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.class_AbsFlexCenter.ContSelectExam {
    animation: backdropFade 0.4s ease forwards;
}
@keyframes backdropFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* Background Overlay */

/* Main Card - Glassmorphic Light */
.class_TheRel.WrapSelectExam {
    width: 820px;
    height: 640px;
    padding: 30px;
    max-width: 95%;
    max-height: 95%;
    border-radius: 28px;
    
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 8px 32px rgba(148, 163, 184, 0.15);  
}

/* Header */
.class_RelFlex.SelectExamHeader {
    width: 100%;
    height: 100px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 12px;
    color: #1e2937;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 34px;
    font-weight: 600;
    letter-spacing: 0.5px;             
}

/* Body */
.class_TheRel.SelectExamBody {
    width: 100%;
    height: calc(100% - 100px);
    overflow: auto;                                     
}
.class_RelFlex.SelectNumberBody {
    flex-wrap: wrap;
    width: 100%;
    height: auto;  
    padding: 0;
    margin: 0;
}
/* Test Buttons - Light Base */
.class_RelFlex.NumberExam {
    width: 162px;
    height: 54px;
    margin: 11px;
    border-radius: 9999px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    cursor: pointer;
}
.class_RelFlex.NumberExam:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 10px rgba(0, 0, 0, 0.15);
}


/************************************ IELTS **************************************/
.class_TheAbs.ContExam {
    padding: 15px;
    background: #444;
}
.class_TheRel.WrapExam {
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background: #f8fafc;
    background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
    background: linear-gradient(to bottom, #e2e8f0, #cbd5f5);
    background: linear-gradient(to bottom, #e8edf4, #d6defa);
    background: linear-gradient(to bottom, #edf2f7, #dde6fb);  
}
.class_TheRel.ExamSecHeader {
    width: 100%;
    height: 50px;                             
}
.class_RelFlex.ExamHeader1, .class_RelFlex.ExamHeader2 {
    width: 100%;

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 24px;
    font-weight: 400;
    text-align: center;
    color: #333;
    line-height: 1.6;
}
.class_RelFlex.ExamHeader1 {
    height: 60%;
    font-size: 16px;
    font-weight: 700;
}
.class_RelFlex.ExamHeader2 {
    height: 40%;
    font-size: 14px;
}
.class_RelFlex.ExamHeaderTube {
    width: 100%;
    height: 60px;
}
.class_TheRel.ExamBody {
    padding: 15px;
    width: 100%;
    height: calc(100% - 110px);
    overflow: auto;
    
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    color: #333;
    line-height: 1.6;
}
.class_TheRel.ExamPassage {
    width: 100%;
    height: auto;
    border-bottom: 2px groove white;
}
/* ==================== EXTERNALIZED PASSAGE CONTENT STYLES ==================== */
.class_TheRel.passage-body {
    width: 100%;
    height: auto;
    
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}
.class_TheRel.passage-content {
    width: 100%;
    height: auto;
    font-family: Arial, sans-serif;
    line-height: 1.75;
    font-size: 18px;
    text-align: left;
    max-width: 100%;
    margin-bottom: 20px;
    padding: 25px;
    border: 1px solid #ccc;
    border: none;
    border-radius: 18px;
    box-shadow: 4px 8px 10px rgba(0,0,0,0.1);
    background: white;
    transition: font-size 0.3s ease;       
    
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Make headings inside passages consistent */
.class_TheRel.passage-content h1 {
    line-height: 1;
    font-size: 1.4rem;
    color: #1e3a8a;
}

.class_TheRel.passage-content h2 {
    line-height: 1;
    font-size: 1.25rem;
    color: #1e40af;
}


/* ==================== CUSTOM STYLE FOR <summary> (Collapsible Passages) ==================== */
details {
    margin-bottom: 25px;
}

details summary {
    font-size: 1.45rem;
    font-weight: 600;
    color: #1e40af;
    background: linear-gradient(to right, #f1f5f9, #e0e7ff);
    background: linear-gradient(to right, #e2e8f0, #d1d9e6);   /* Bit darker gray gradient */
    background: transparent;
    padding: 14px 20px;
    border: 1px solid #cbd5e1;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    list-style: none;                    /* Remove default arrow */
    position: relative;
    margin-bottom: 10px;
}

/* Custom arrow */
details summary::before {
    content: "▶";
    margin-right: 12px;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

details[open] summary::before {
    transform: rotate(90deg);
}

/* Hover effect */
details summary:hover {
    background: linear-gradient(to right, #e0e7ff, #c7d2fe);
    color: #1e3a8a;
    border-color: #94a3b8;
}

/* When opened */
details[open] summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: linear-gradient(to right, #e0e7ff, #c7d2fe);
    background: transparent;
}

/* ==================== TwoPanels ==================== */
/* Fix for right panel (Questions) - Make it scrollable */
#id_ExamBody-1 {
    height: calc(100% - 120px) !important;
    overflow-y: auto !important;
    padding-bottom: 40px;
}

/* Optional: Make left panel (passages) also scroll better */
#id_ExamBody-0 {
    height: calc(100% - 120px) !important;
    overflow-y: auto !important;
}

/* ==================== Highlight ==================== */
.class_TheRel.passage-content mark,
.class_TheRel.passage-content .highlighted {
    background-color: #fffb8f !important;
    padding: 2px 4px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.class_TheRel.passage-content mark:hover,
.class_TheRel.passage-content .highlighted:hover {
    background-color: #ffe066 !important;
}

/* ==================== ANSWERS REVIEW PANEL ==================== */
.class_AbsFlexCenter.BackAnswers {
    padding: 30px;
    width: 100%;
    height: 100%;
    background: linear-gradient(150deg, #0045a5, #186de2 100%);
    transition: font-size 1.6s ease;   
    
    opacity: 0;
    transform: scale(0.8) translateY(30px);
    transition: 
        opacity 0.65s ease,
        transform 0.5s cubic-bezier(.18,1.25,.4,1);
}
.class_AbsFlexCenter.BackAnswers.Insensitive {
    background: linear-gradient(150deg, #b91c1c, #f59e0b);
    background: linear-gradient(150deg, #fbbf24, #f59e0b);
}
.class_AbsFlexCenter.BackAnswers.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}
.class_TheRel.ContAnswers {
    padding: 20px;
    width: 100%;
    height: 100%;

    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;

    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.08),
        0 10px 20px rgba(0, 0, 0, 0.12);

    overflow: auto;
    
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    color: #333;
}
.class_TheRel.ListSecHeader {
    width: 100%;
    height: 130px;                           
    
}
.class_TheRel.ListSecBody {
    width: 100%;
    height: calc(100% - 130px);                         
    
}

.AnswersHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.AnswersHeader h3 {
    margin: 0;
    color: #1e40af;
    font-size: 18px;
    font-weight: 600;
}

.AnswersBody {
    padding: 15px 20px;
    max-height: 60vh;
    overflow-y: auto;
    
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    color: #333;
}

.AnswerRow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.AnswerRow:last-child {
    border-bottom: none;
}

.AnswerRow .question {
    flex: 1;
    color: #1e40af;
    font-weight: 600;
}

.AnswerRow .correct {
    flex: 1;
    color: #374151;
}

.AnswerRow .your {
    flex: 1;
    text-align: right;
}

.ScoreBox {
    margin-top: 18px;
    padding: 18px;
    background: #f0f9ff;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #bae6fd;
}

.ScoreBox h2 {
    margin: 0;
    color: #1e40af;
    font-size: 22px;
}

.ScoreBox .percent {
    margin: 6px 0 0 0;
    font-size: 26px;
    font-weight: 700;
    color: #166534;
}

.CloseX {
    font-size: 26px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.CloseX:hover {
    color: #dc2626;
}

.IELTSLabelAnswer {
    transition: all 0.6s ease;
}

/* ==================== SUBMIT TextArea - Glassmorphism ==================== */
.class_AbsFlexCenter.ContSubmitTextArea {
    padding: 30px;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: 
        opacity 0.65s ease,
        transform 0.5s cubic-bezier(.18, 1.25, .4, 1);
    opacity: 0;
    transform: scale(0.92) translateY(40px);
}

.class_AbsFlexCenter.ContSubmitTextArea.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.class_TheRel.WrapSubmitTextArea {
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.class_BB.SubmitTextArea {
    /************** BorderGradientBarPrettyPurple ************************/
    border-image-source: linear-gradient(150deg, #4600f1, #f731db 100%);
}

.ActiveBook {
    background: blue !important;   /* Blue background */
    color: white !important;
    border-radius: 50% !important;
    padding: 4px 8px !important;
    box-shadow: 0 0 8px rgba(30, 64, 175, 0.5);
}


