/*********************************** BASE-STYLE *****************************************/
/*********************************** BASE-STYLE *****************************************/
.class_AbsFlexCenter {
    box-sizing: border-box;
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    float: left;
    cursor: pointer;
    overflow: hidden;
    
    background: transparent; 
    box-shadow: none;
    border: none;
    border-radius: 0;

    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    
    color: LightSteelBlue;
    font-size: 150px;         
}
.class_RelInline {
    box-sizing: border-box;
    position: relative;
    display: inline;
    float: left;
    cursor: pointer;
    overflow: hidden;
    background: transparent; 
    box-shadow: none;
    border: none;
    border-radius: 0;
    user-select: none;  
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 50%;                           
}
.class_RelImage {
    box-sizing: border-box;
    position: relative;
    display: inline;
    float: left;
    cursor: pointer;
    overflow: hidden;
    background: transparent; 
    background-size: contain;
    box-shadow: none;
    border: none;
    border-radius: 0;
    user-select: none;  
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}
.class_TheAbs {
    box-sizing: border-box;
    position: absolute;
    display: block;
    float: left;
    cursor: pointer;
    overflow: hidden;
    background: transparent; 
    box-shadow: none;
    border: none;
    border-radius: 0;
    user-select: none;  
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    height: 100%;  
    width: 100%;  
}
.class_TheRel {
    box-sizing: border-box;
    position: relative;
    display: inline;
    float: left;
    cursor: pointer;
    overflow: hidden;
    background: transparent; 
    box-shadow: none;
    border: none;
    border-radius: 0;
    user-select: none;  
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    height: 100%;  
    width: 100%;  
}
.class_RelFlex {
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    float: left;
    cursor: pointer;
    overflow: hidden;
    background: transparent; 
    box-shadow: none;
    border: none;
    border-radius: 0;
    user-select: none;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;                          
}
.class_RelButton {
    box-sizing: border-box;
    position: relative;
    display: inline;
    float: left;
    cursor: pointer;
    overflow: hidden;
    background: transparent; 
    box-shadow: none;
    border: none;
    border-radius: 0;
    user-select: none;  
    top: 0;
    left: 0;
    margin: 0;
    padding: 5px;
    height: 40px;
    width: 40px;
}

.class_FixedTopLeft {
    box-sizing: border-box;
    position: absolute;
    display: block;
    float: left;
    cursor: pointer;
    overflow: hidden;
    background: transparent; 
    box-shadow: none;
    border: none;
    border-radius: 0;
    user-select: none;  
    top: 15px;
    left: 15px;
    margin: 0;
    padding: 5px;
    height: 40px;
    width: 40px;
}
.class_FixedTopRight {
    box-sizing: border-box;
    position: absolute;
    display: block;
    float: left;
    cursor: pointer;
    overflow: hidden;
    background: transparent; 
    box-shadow: none;
    border: none;
    border-radius: 0;
    user-select: none;  
    top: 15px;
    right: 15px;
    margin: 0;
    padding: 5px;
    height: 40px;
    width: 40px;
}
/*********************************** BASE-STYLE *****************************************/
/*********************************** BASE-STYLE *****************************************/

/************************************
 * IELTS WRITING MODULE - FINAL SKELETON CSS
 * box-sizing: border-box on all elements
 ************************************/


/* Make the Swal container respect the parent */
.csm-swal-container {
    position: absolute !important;   /* instead of fixed */
    inset: 0 !important;
}



/* ========== BASE CONTAINER ========== */
.class_TheAbs.ContWriteModule {
    padding: 15px;
    background: #444;
}

.class_TheRel.WrapWriteModule {
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background-color: #DCD9D4;
    background-image: linear-gradient(to bottom, rgba(255,255,255,0.50) 0%, rgba(0,0,0,0.50) 100%), 
                      radial-gradient(at 50% 0%, rgba(255,255,255,0.10) 0%, rgba(0,0,0,0.50) 50%);
    background-blend-mode: soft-light, screen;
}

/* ========== HEADER & TABS ========== */
.class_TheRel.WriteSecHeader {
    width: 100%;
    height: 70px;
}

.class_RelFlex.WriteWrapTabs {
    width: 100%;
    height: 100%;
    gap: 10px;
    align-items: center;
}

.class_RelFlex.class_WriteTabBtn {
    width: 120px;
    height: 42px;
    background: #E3F2FD;
    color: #1565C0;
    border: none;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    transition: all 0.2s ease;
}

.class_RelFlex.class_WriteTabBtn:hover {
    background: #BBDEFB;
    color: #0D47A1;
    transform: translateY(-1px);
}

.class_RelFlex.class_WriteTabBtn.active {
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 11, 0.35);
    border: 1px solid #E3F2FD;
    color: #FFFFFF; /* White text */
    background: linear-gradient(90deg,
        #1976D2 0%,
        #1565C0 35%,
        #0D47A1 100%);
}

/* ========== BODY LAYOUT ========== */
.class_RelFlex.WriteSecBody {
    width: 100%;
    height: calc(100% - 70px);
    padding: 15px;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    color: #1e2937;
}

.class_TheRel.WriteSecLeft,
.class_TheRel.WriteSecRight {
    width: 50%;
    height: 100%;
    border-radius: 16px;
    border: 1px solid white;
    background: white;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.class_TheRel.WriteSecRight {
    width: calc(50% - 10px);
    margin-left: 10px;
}

/* ========== PANEL HEADERS ========== */
.class_TheRel.WriteTopLeft,
.class_TheRel.WriteTopRight {
    height: 52px;
    background: rgba(0,0,0,0.08);
    position: relative;                     
}

.class_RelFlex.WriteTopBadge {
    width: 110px;
    height: 100%;
    background: black;
    border-top-left-radius: 12px;
    color: white;
    font-size: 24px;
    font-weight: 600;
}



.class_RelFlex.WriteHeaderTop {
    background: transparent;
    width: auto;
    height: 100%;
    padding-left: 20px;
    padding-right: 20px;
    font-weight: 700;
    font-size: 16px;
    color: #334155;
    text-align: left;       
}

/* ========== CONTENT AREAS ========== */
.class_TheRel.WriteWrapLeft,
.class_TheRel.WriteWrapRight {
    height: calc(100% - 52px); 
    padding: 8px;
}

/* Task 1 Image Area */
.class_TheRel.write-image-area {
    padding: 20px;
    text-align: center;
}

.class_TheRel.write-image-area img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border: 1px solid #e2e8f0;
    
    box-shadow: none;
    border: none;                                       
}

/* Task 2 Topic Box */
.write-topic-box {
    background: #fefce8;
    border-left: 6px solid #eab308;
    padding: 18px;
    border-radius: 10px;
    margin: 12px;
    line-height: 1.65;
    text-align: left;
}

.class_RelFlex.WrapperWriteArea {
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
    padding: 10px;
    padding-bottom: 0;
}
/* Textarea Styling */
.class_TheRel.write-textarea {
    font-family: var(--fontFamilyArvo);
    width: 100%;
    height: calc(100% - 40px);
    padding: 16px;
    border: 4px solid #e2e8f0;
    border-radius: 12px;
    font-size: 24px;
    resize: none;
    background: #fafafa;
    overflow: auto;
}

.class_TheRel.write-textarea:focus {
    outline: none;
    border: 4px solid #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Word Count */
.write-word-count {
    width: 100%;
    height: 40px;
    text-align: right;
    font-size: 13px;
    color: #64748b;
    padding: 6px 4px 0;
    font-weight: 600;
}

/* ========== RESIZER ========== */
.class_WriteResizeHandle {
    width: 8px;
    height: 100%;
    background: transparent;
    cursor: col-resize;
    display: flex;
    align-items: center;
    justify-content: center;
}

.class_WriteResizeHandle:hover {
    background: rgba(148, 163, 184, 0.2);
}

.class_WriteResizeGrip {
    width: 4px;
    height: 70px;
    background: #475569;
    border-radius: 9999px;
}

.class_AbsFlexCenter.LeftTubeWrite {
    left: calc(100% - 170px);
    width: 170px;
    height: 100%;
}
.class_AbsFlexCenter.RightTubeWrite {
    left: calc(100% - 170px);
    width: 170px;
    height: 100%;
}

.class_RelImage.WriteTask1 {
    margin-bottom: 20px;
    width: 100%;
    height: calc(100% - 50px);  
    min-height: 400px;
    
    background: lemonchiffon;
    background: transparent;
}

/* ========== CONTROL BUTTONS ========== */
.class_RelFlex.write-control-btn {
    width: 85px;
    height: 32px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}
.write-control-btn.Model {
    background: linear-gradient(135deg, #92400e, #d97706, #fbbf24);
}
.write-control-btn.Clear {
    background: linear-gradient(135deg, #475569, #334155);
}
.write-control-btn.Score {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}
.write-control-btn.Submit {
    background: linear-gradient(135deg, #ff1493, #c71585);
}
.write-control-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ========== TIMER ========== */
.class_AbsFlexCenter.write-timer {
    top: 15px;
    left: 15px;
    width: 100px;
    height: auto;
    background: #1e2937;
    color: #f1f5f9;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    user-select: none;
}

.write-timer.warning {
    background: #dc2626;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* ========== MODEL ANSWER ========== */
.write-model-answer {
    background: #f0fdf4;
    border: 2px solid #4ade80;
    border-radius: 10px;
    padding: 16px;
    margin: 12px;
    font-size: 14.5px;
    line-height: 1.65;
    display: none;
}

.write-model-answer.show {
    display: block;
}

/* ========== FONT SIZE TOGGLE ========== */
.write-font-btn {
    width: 32px;
    height: 32px;
    background: #e0f2fe;
    color: #0369a1;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
}

.write-font-btn:hover {
    background: #bae6fd;
}




.category-glass-popup {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-radius: 20px !important;
    overflow: hidden;
}

.category-glass-modal-content {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.45);
}

.category-modal-header h2 {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    color: #1e2937;
}

.category-modal-subtitle {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

.category-modal-body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.category-input-group label {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    display: block;
    font-size: 15px;
}

.category-glass-select {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    transition: all 0.3s ease;
}

.category-glass-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.category-modal-footer {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.category-glass-btn {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.category-glass-btn.category-secondary {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: rgba(241, 245, 249, 0.95);
    color: #475569;
}

.category-glass-btn.category-primary {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-weight: 700;
}

.category-glass-btn:hover {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.15);
}

.category-modal-tip {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: center;
    font-size: 13.5px;
    color: #64748b;
    margin-top: 18px;
    padding: 12px;
    background: rgba(241, 245, 249, 0.7);
    border-radius: 10px;
}



.keyword-cloud-body {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 24px 20px;
    max-height: 65vh;
    overflow-y: auto;
}

.keyword-chip {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #f1f5f9;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(6px);
}

.keyword-chip:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    transform: translateY(-2px);
}




.csm-footer-left {
    display: flex;
    gap: 8px;
}

.csm-btn {
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 550;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
}

.csm-btn-ghost {
    background: #ffffff;
    color: #475569;
    border: 1.5px solid #e2e8f0;
}

.csm-btn-ghost:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.csm-btn-primary {
    background: #2563eb;
    color: white;
    padding: 9px 22px;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.3);
}

.csm-btn-primary:hover {
    background: #1d4ed8;
}


































