* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Times New Roman", Times, serif;
}

body {
    background-color: #ffffff;
    color: #1e293b;
    display: flex;
    flex-direction: column;
    /* हेडर को ऊपर रखने के लिए कॉलम किया */
    height: 100vh;
    overflow: hidden;
}
body .left-panel {
    display: flex !important;        
    position: fixed !important;     
    width: 320px !important;         
    min-width: 320px !important;
    z-index: 99999 !important;       
    bottom: 0 !important;
    top: 80px !important;  
    height: calc(100vh - 80px) !important;  
    
    overflow-y: auto !important; 
    -webkit-overflow-scrolling: touch; 
    transform: translateX(-100%) !important; 
    opacity: 0 !important;
    box-shadow: none;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out !important; 
}

header {
    background: white;
    height: 60px;
    padding: 0 20px;
    padding-left: 10px;
    border-bottom: 1px solid #d1d5db;
    width: 100%;
    display: flex;
    align-items: start;
    justify-content: space-between;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.logo-area {
    display: flex;
    align-items: end;
    gap: 8px;
    font-style: italic;
    font-weight: bold;
    font-size: 25px;
    color: #2c3e50;
    min-width: fit-content;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #555;
    font-size: 20px;
}

/* आपके पुराने कोड में केवल एक लाइन (position: relative) जोड़ी है */
.search-container {
    flex-grow: 0.4;
    display: flex;
    background: #f0f2f5;
    border-radius: 20px;
    padding: 5px 15px;
    position: relative;
    /* इसके अंदर के रिजल्ट बॉक्स को अलाइन करने के लिए ज़रूरी है */
}

.search-box {
    position: relative;
    /* इसके अंदर के रिजल्ट बॉक्स को नीचे फिक्स करने के लिए */
    width: 100%;
    /* पूरी चौड़ाई लेगा */
    display: block;
    /* flex हटा दिया ताकि रिजल्ट बॉक्स बगल में जगह न घेरे */
}

#searchInput {
    width: 100% !important;
    display: block;
}

.search-container input {
    border: none;
    background: transparent;
    outline: none;
    padding: 5px;
    width: 100%;
}

.search-container i {
    color: #888;
    align-self: center;
}

#resultsBox {
    position: absolute;
    top: 100%;
    /* इनपुट बॉक्स के ठीक नीचे से शुरू होगा */
    left: 0;
    width: 100%;
    /* इनपुट बॉक्स जितनी ही पूरी चौड़ाई लेगा */
    height: 300px;
    /* फिक्स्ड हाइट */

    /* दोनों स्क्रॉल बार हमेशा चालू रहेंगे */
    overflow-y: scroll !important;
    overflow-x: scroll !important;

    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
    z-index: 999;
    /* ताकि यह बाकी सभी एलिमेंट्स के ऊपर तैरता हुआ दिखे */
}

/* रिजल्ट के अंदर के आइटम्स की स्टाइलिंग */
.result-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f2f5;
    white-space: nowrap !important;
    width: max-content !important;
    min-width: 100%;
    display: block;
}


.result-item:hover {
    background: #f9fafb;
}

/* छुपाने के लिए क्लास */
.hidden {
    display: none !important;
}


header img {
    width: 30px;
    height: 30px;
    transform: skewX(-12deg);
}

.header-actions {
    display: flex !important;
    /* row-reverse se aakhiri element (Dashboard) pehle dikhega */
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: flex-end !important;
    /* Right side mein chipka rahega */
    gap: 15px !important;
    width: auto !important;
}


.icon-btn {
    font-size: 1.2rem;
    color: #555;
    cursor: pointer;
    position: relative;
}

.auth-btns {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 18px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-signin {
    background: transparent;
    border: 1px solid #3776ab;
    color: #3776ab;
}

.btn-login {
    background: #3776ab;
    color: white;
}

.btn-dashboard {
    background: #3776ab;
    color: white;
    text-decoration: none;
}

/* 🔔 Bell Fix: Fixed se hata kar Relative kiya */
#bellBtn {
    position: relative;
    font-size: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin: 0 !important;
}

#bellBadge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 50%;
    border: 2px solid white;
}

.auth-btns {
    display: flex;
    gap: 8px;
    margin: 0 !important;
}

#notificationBox {
    position: absolute;
    top: 55px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    border: 1px solid #eee;
}

.box-header {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
}

#notificationList {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.notification-item:hover {
    background: #f9fafb;
}

.empty {
    padding: 20px;
    text-align: center;
    color: gray;
}

.check-section {
    overflow: auto;
    padding-bottom: 40px !important;
}

/* ==========================================================================
   मुख्य सुधार: MAIN टैग को मोबाइल-फ्रेंडली बनाना (No 100vh)
   ========================================================================== */
main {
    background: white;
    width: 100%;
    font-size: 14px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
    /* लैपटॉप/डेस्कटॉप के लिए डिफ़ॉल्ट टॉप मार्जिन */
    top: 55px;
    height: auto !important;
    /* ❌ calc(100vh) को पूरी तरह हटा दिया */
}

.pra-container {
    display: flex;
    height: 100%;
    width: 100%; 
}




/* ==========================================================================
   आउटपुट बॉक्स का सटीक मैनेजमेंट
   ========================================================================== */
.output-panel {
    height: 180px;
    min-height: 150px;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.output {
    color: #6c757d;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
    padding: 10px;
    padding-bottom: 30px !important;
    /* 👈 आखिरी लाइनों को दिखने के लिए स्पेस */
    font-style: italic;
    flex: 1;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}


.left-panel.active {
    left: 0;
}

#googleToggle {
    display: none !important;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;

    position: fixed !important;
    bottom: 0px !important;
    right: 0px !important;
    left: auto !important;
    /* पुराना left:-10% हटाने के लिए */
    top: auto !important;
    /* पुराना top:50% हटाने के लिए */

    /* साइज और शेप (गोल बटन के लिए) */
    width: 35px;
    height: 35px;
    border-radius: 2px;
    /* पूरा गोल करने के लिए */
    border: none;

    /* अलाइनमेंट और फॉन्ट */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 999999 !important;
}


/* LEFT SIDE: OTHER SECTIONS (Sidebar) */
.left-panel {
    width: 320px;
    min-width: 320px; 
    background-color: #f8fafc;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    padding: 15px;
    padding-top:0px;
    padding-bottom: 0;
    gap: 10px;
    scrollbar-width: none;
    overflow-y: auto;
    height: 100%; 
    box-sizing: border-box;
}

.sol-fol-container {
    background-color: #ffffff;
    padding: 2px;
    border-radius: 0px;
    width: 100%;
    max-width: 400px;
    border: 1px solid #e9ecef;
}

/* Add this to your CSS */
.sol-fol-file {
    cursor: pointer;
    color: black;
    /* Default color */
    transition: color 0.2s;
}

.sol-fol-file.active-file {
    color: blue;
    font-weight: bold;
}

h2 {
    color: black !important;
    margin-bottom: 20px;
    font-size: 13px !important;
    border-bottom: 2px solid #f1f3f5;
    padding-bottom: 12px;
    font-weight: 600;
}

/* ट्री स्ट्रक्चर की लाइन्स और स्पेसिंग */
.sol-fol-tree,
.sol-fol-tree ul {
    list-style-type: none;
    margin: 0;
    padding: 0 0 0 22px;
    position: relative;
}

.sol-fol-tree li {
    margin: 8px 0;
    padding-left: 15px;
    border-left: 1px solid #ced4da;
    position: relative;
}

/* हॉरिजॉन्टल लाइन्स */
.sol-fol-tree li::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 0;
    width: 12px;
    border-top: 1px solid #ced4da;
}

/* आखिरी आइटम की वर्टिकल लाइन को फिक्स करने के लिए */
.sol-fol-tree li:last-child {
    border-left: none;
}

.sol-fol-tree li:last-child::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 12px;
    border-left: 1px solid #ced4da;
}

/* फ़ोल्डर और फ़ाइल के स्टाइल */
.sol-fol-folder {
    color: #495057;
    font-weight: 600;
    cursor: pointer;
}

.sol-fol-file {
    color: #4bab50;
    font-weight: 500;
}

/* होवर इफ़ेक्ट (माउस ले जाने पर) */
.sol-fol-folder:hover,
.sol-fol-file:hover {
    color: #007bff;
}

/* Row container to push delete button to the right end */
.tree-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Delete button styling */
.tree-delete-btn {
    cursor: pointer;
    font-size: 0.85rem;
    padding: 2px 6px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.tree-delete-btn:hover {
    opacity: 1;
}

/* Ensure tree container allows full width layout */
.sol-fol-tree ul {
    width: 100%;
}

/* RIGHT SIDE: EDITOR & OUTPUT */
.right-panel {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* 🔥 Bachi hui poori width automatic le lega */
    height: 100%;
    /* 🔥 Kisi calc() height ki zaroorat nahi, automatic fit hoga */
    box-sizing: border-box;
}

/* Container and Root Header */
.folder {
    height: 50vh;
    scrollbar-width: none;
    overflow: auto;
}

.project-container {
    margin-bottom: 12px;
    padding: 0 8px;
}

.root-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.root-title {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.action-buttons {
    display: flex;
    gap: 6px;
}

.btn-tree {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #b5b5b5;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

/* Inputs Structure */
.input-container {
    margin-top: 5px;
}

.hidden-input-field {
    display: none;
    margin-bottom: 8px;
}

.tree-input {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 13px;
}

/* Tree Structure Items */
.tree-indent {
    display: inline-block;
    width: 18px;
    color: #777;
}

.tree-delete-btn {
    color: #ff4d4d;
    cursor: pointer;
    font-size: 11px;
    margin-left: 10px;
}

.file-del-size {
    font-size: 12px;
}

/* Folder Row Styling */
.tree-folder-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    font-size: 14px;
}

.tree-folder-name {
    cursor: pointer;
    flex: 1;
    user-select: none;
    color: #ffc107;
    font-weight: bold;
}

/* File Row Styling */
.tree-file-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    font-size: 14px;
    margin: 2px 5px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    background-color: transparent;
    color: #333333;
}

.tree-file-row.active {
    background-color: #0056b3;
    color: #ffffff;
}

.tree-file-clickable {
    cursor: pointer;
    flex: 1;
    user-select: none;
    display: flex;
    align-items: center;
}

.tree-file-indent {
    color: #777;
}

.tree-file-indent.active {
    color: #ffffff;
}

.tree-file-icon {
    margin-right: 5px;
}

.tree-file-name {
    color: #333333;
}

.tree-file-name.active {
    font-weight: bold;
    color: #ffffff;
}

/* प्रोजेक्ट गोल */
.goal-box {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 14px;
    border-radius: 8px;
    scrollbar-width: none;
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
    height: 15vh;
    overflow-y: auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* चेकलिस्ट */
.check-section {
    scrollbar-width: none;
    overflow: auto;
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: none;
    max-width: 250px;
    /* Zarurat ke mutabik badlein takki right side fix rahe */
}

.check-item {
    display: flex;
    flex-direction: row-reverse;
    /* Pehle text aur fir right mein checkbox dikhane ke liye */
    justify-content: space-between;
    /* Text ko left end aur checkbox ko right end par dhakelne ke liye */
    align-items: center;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    width: 100%;
}

.check-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0284c7;
    cursor: pointer;
}

.section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 8px;
    /* Text aur dropdown ke beech gap */
}

/* Custom Dropdown Container */
.custom-dropdown {
    position: relative;
    width: 100%;
    user-select: none;
}

/* Jo main box hamesha dikhta hai */
.dropdown-selected {
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}

/* Dropdown Arrow Icon lagane ke liye */
.dropdown-selected::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #64748b;
    transition: transform 0.2s;
}

/* Jab dropdown khulega tab box ka border active dikhe */
.custom-dropdown.open .dropdown-selected {
    border-color: #0284c7;
    background-color: #ffffff;
}

.custom-dropdown.open .dropdown-selected::after {
    transform: rotate(180deg);
    /* Arrow ulta ho jayega */
}

/* Options Box - Jisme fixed height aur overflow chalega */
.dropdown-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    height: 150px;
    /* 👈 Yeh rahi aapki fixed height, iske baad scrollbar chalega */
    overflow-y: auto;
    /* 👈 Sahi overflow aur scrollbar ke liye */
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    z-index: 999;
    display: none;
    /* Pehle se chhupa rahega */
}

.dropdown-options a {
    text-decoration: none;
    color: black;
}

/* Jab open class mile tabhi list dikhe */
.custom-dropdown.open .dropdown-options {
    display: block;
}

/* Har ek single option ki style */
.dropdown-opt {
    padding: 10px 12px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s;
}

/* Hover karne par sundar light gray effect */
.dropdown-opt:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

/* Jo option pehle se selected hai uski style */
.dropdown-opt.active {
    background-color: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
}

/* 🎨 Ganda default scrollbar hata kar ek dam sleek modern scrollbar */
.dropdown-options::-webkit-scrollbar {
    width: 6px;
}

.dropdown-options::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 3px;
}

.dropdown-options::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

.pane {
    padding: 5px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-bottom: 1px solid #eee;

}

main h2 {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #aaa;
    margin: 0 0 15px 0;
}

.editor-container {
    width: 100%;
    border: 1px solid #eee;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    /* फ्लेक्स चाइल्ड को सिकुड़ने की अनुमति देता है */
    overflow: hidden;
    /* बाहरी अनचाहे स्क्रॉल को रोकने के लिए */
}

/* Header Styling */
.editor-header {
    color: #efefef;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.file-name {
    font-size: 14px;
    color: black;
}

/* Editor Styling (Fix: Removed calc(100vh) conflict) */
.editor {
    color: black;
    padding: 15px;
    flex: 1;
    /* बची हुई पूरी जगह लेगा */
    white-space: pre-wrap;
    outline: none;
    overflow-y: auto;
    /* सिर्फ वर्टिकल स्क्रॉल देगा */
    font-family: 'Courier New', Courier, monospace;
    background: white;
}

/* आउटपुट पैनल (कंटेनर) */
.output-panel {
    height: 200px;
    min-height: 150px;
    /* मोबाइल पर सिकुड़ने से बचाने के लिए */
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    /* इसे एडिटर के दबाव में दबने नहीं देगा */
}

/* Output Header */
.output-header {
    height: 36px;
    background-color: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 600;
    position: relative;
}

/* असली आउटपुट टेक्स्ट एरिया (Fix: Added scrolling) */
.output {
    color: #6c757d;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
    padding: 10px;
    font-style: italic;
    flex: 1;
    overflow-y: auto;
    /* टेक्स्ट लंबा होने पर इसके अंदर स्क्रॉल आएगा */
    -webkit-overflow-scrolling: touch;
    /* मोबाइल पर स्मूद टच स्क्रॉल के लिए */
}


.ad-container {
    display: none;

    position: absolute !important;
    right: 0px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: 50px;
    width: 320px;
    display: flex;
    justify-content: flex-end;
    align-items: center;

    /* ⚡ Chhota karne ke liye (36px high header me 50px ad fit karne ka best tareeqa) */
    zoom: 0.68;
    -moz-transform: scale(0.68);
    /* Firefox support ke liye */
    -moz-transform-origin: right center;
}


.output-body {
    flex: 1;
    padding: 16px 20px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    color: #0369a1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    overflow-y: auto;
}

.success-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    margin-top: 5px;
    box-shadow: 0 0 6px #10b981;
}

/* एडवर्टाइजमेंट कंटेनर्स */
.ad-spot-sidebar {
    margin-top: auto;
    padding: 10px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    background-color: #f1f5f9;
    border-radius: 6px;
}

.ad-spot-sidebar-box {
    width: 100%;
    min-height: 150px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #94a3b8;
    border-radius: 4px;
}

.ad-spot-top {
    background-color: #f1f5f9;
    text-align: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.ad-spot-top-box {
    max-width: 728px;
    height: auto;
    min-height: 50px;
    background: #e2e8f0;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #94a3b8;
    border-radius: 4px;
}

.ad-label {
    font-size: 9px;
    color: #94a3b8;
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.folder {
    font-family: monospace;
    font-size: 13px;
    line-height: 1.6;
}

.goal-box {
    font-size: 14px;
    line-height: 1.5;
    padding-left: 15px;
    height: 26vh;
}

.hint-box {
    font-size: 13px;
    background: #fff9c4;
    padding: 10px;
    border-radius: 5px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}

input[type="checkbox"] {
    accent-color: #000;
}

/* Header Row Layout */
.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    height: 50px;
    position: relative;
    width: 100%;
}

/* Tabs Scroller Styling */
.tabs {
    display: flex;
    align-items: center;
    background-color: #f8fafc;
    flex-grow: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    /* Firefox */
}

/* Chrome, Safari aur Opera se scrollbar hatane ke liye */
.tabs::-webkit-scrollbar {
    display: none;
}

/* सिंगल टैब की स्टाइलिंग */
.tab {
    padding: 0 16px;
    height: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-right: 1px solid #e2e8f0;
    position: relative;
    user-select: none;
    flex-shrink: 0;
    /* Tabs ko sikudne se rokega */
}

/* Active Tab */
.tab.active {
    color: #0f172a;
    background-color: #ffffff;
}

/* Blue Bottom Line */
.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0284c7;
}

/* Cross (Delete) Button Styling */
.close-btn {
    background: none;
    border: none;
    padding: 2px 6px;
    font-size: 14px;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    margin-left: 4px;
}

/* Cross Button Hover */
.close-btn:hover {
    background-color: #f1f5f9;
    color: #ef4444;
}

.tab.active .close-btn {
    color: #64748b;
}

.tab.active .close-btn:hover {
    background-color: #f1f5f9;
    color: #ef4444;
}

/* Right Side Actions Panel (Buttons) */
.actions {
    display: flex;
    gap: 10px;
    padding: 0 20px;
    background-color: #f8fafc;
    /* Same header color taaki tabs iske neeche fade ho ske */
    height: 100%;
    align-items: center;
    position: relative;
    z-index: 10;
    /* Tabs ke upar layer rakhne ke liye */
    flex-shrink: 0;
    /* Buttons ko squeeze hone se rokega */
    /* Fade shadow overlay effect jab tabs left ki taraf slide ho */
    box-shadow: -15px 0 15px -5px #f8fafc;
}

/* Base Buttons Design */
.btn {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sol-btn {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155 !important;
    cursor: pointer;
}

.sol-btn.clicked-green {
    color: green !important;
    font-weight: bold;
}

/* Copy Button Spec */
.copy-btn {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
}

.copy-btn:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

/* Run Button Spec */
.run-btn {
    background-color: #0284c7;
    border: 1px solid #0284c7;
    color: #ffffff;
}

.run-btn:hover {
    background-color: #0369a1;
}

/* Helper Class */
.hidden {
    display: none;
}



.so-fo-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1e1e1e;

    padding: 15px;
    width: 300px;
    user-select: none;
}


.so-fo-tree,
.so-fo-tree ul {
    list-style: none;
    margin: 0;
    padding: 0;
}


.so-fo-tree ul {
    padding-left: 16px;
    position: relative;
}


.so-fo-tree ul::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 6px;
    border-left: 1px solid #4d4d4d;

    height: calc(100% - 10px);
}


.so-fo-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    cursor: pointer;
    position: relative;
    color: #cccccc;
    font-size: 14px;
    gap: 8px;
}


.so-fo-tree ul li::before {
    content: "";
    position: absolute;
    top: 16px;
    left: -10px;
    border-top: 1px solid #4d4d4d;

    width: 10px;
}


.so-fo-folder {
    color: #e0b034;

    font-weight: 600;
}

.so-fo-folder i {
    color: #e0b034;
}

.so-fo-file.so-fo-active {
    background-color: #0056b3;
    color: #ffffff;
    border-radius: 4px 0 0 4px;
}

.so-fo-file.so-fo-active::before {
    content: "";
    position: absolute;
    top: 0;
    left: -10px;
    border-left: 1.5px solid #52a3ff;
    height: 100%;
    z-index: 1;
}

.so-fo-file.so-fo-active::after {
    content: "";
    position: absolute;
    top: 16px;
    left: -10px;
    border-top: 1.5px solid #52a3ff;
    width: 10px;
    z-index: 1;
}

.so-fo-file i {
    color: #52a3ff;
}

.so-fo-item:not(.so-fo-active):hover {
    background-color: #2a2a2a;
}

.subc {
    padding-left: 15px !important;
}