body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
                 "Helvetica Neue", Arial, sans-serif;
}
body.no-transition * {
    transition: none !important;
}

.font8px  { font-size: 8px !important; }
.font10px { font-size: 10px !important; }
.font12px { font-size: 12px !important; }
.font14px { font-size: 14px !important; }
.font16px { font-size: 16px !important; }
.font18px { font-size: 18px !important; }
.font20px { font-size: 20px !important; }
.font22px { font-size: 22px !important; }
.font24px { font-size: 24px !important; }
.font26px { font-size: 26px !important; }
.font28px { font-size: 28px !important; }
.font30px { font-size: 30px !important; }
.font32px { font-size: 32px !important; }
.font34px { font-size: 34px !important; }
.font36px { font-size: 36px !important; }
.font38px { font-size: 38px !important; }
.font40px { font-size: 40px !important; }
.font42px { font-size: 42px !important; }
.font44px { font-size: 44px !important; }
.font46px { font-size: 46px !important; }
.font48px { font-size: 48px !important; }
.font50px { font-size: 50px !important; }

.text-black   { color: #000000 !important; }
.text-white   { color: #ffffff !important; }
.text-red     { color: #ff0000 !important; }
.text-green   { color: #008000 !important; }
.text-blue    { color: #0000ff !important; }
.text-yellow  { color: #ffff00 !important; }
.text-orange  { color: #ffa500 !important; }
.text-purple  { color: #800080 !important; }
.text-pink    { color: #ffc0cb !important; }
.text-brown   { color: #a52a2a !important; }
.text-gray    { color: #808080 !important; }

.text-gray-100 { color: #f8f9fa !important; }
.text-gray-200 { color: #e9ecef !important; }
.text-gray-300 { color: #dee2e6 !important; }
.text-gray-400 { color: #ced4da !important; }
.text-gray-500 { color: #adb5bd !important; }
.text-gray-600 { color: #6c757d !important; }
.text-gray-700 { color: #495057 !important; }
.text-gray-800 { color: #343a40 !important; }
.text-gray-900 { color: #212529 !important; }

.bg-black   { background-color: #000000 !important; }
.bg-white   { background-color: #ffffff !important; }
.bg-red     { background-color: #ff0000 !important; }
.bg-green   { background-color: #008000 !important; }
.bg-blue    { background-color: #0000ff !important; }
.bg-yellow  { background-color: #ffff00 !important; }
.bg-orange  { background-color: #ffa500 !important; }
.bg-purple  { background-color: #800080 !important; }
.bg-pink    { background-color: #ffc0cb !important; }
.bg-brown   { background-color: #a52a2a !important; }
.bg-gray    { background-color: #808080 !important; }
.bg-light-gray    { background:#f8f9fa !important; }

.border-red     { border-color: #ff0000 !important; }
.border-green   { border-color: #008000 !important; }
.border-blue    { border-color: #0000ff !important; }
.border-yellow  { border-color: #ffff00 !important; }
.border-orange  { border-color: #ffa500 !important; }
.border-purple  { border-color: #800080 !important; }
.border-gray    { border-color: #808080 !important; }


.drag-over {
    border-top: 3px solid #0d6efd;
}

.draggable-row {
    cursor: move;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.dragging {
    opacity: 0.4;
}

.drag-placeholder {
    height: 50px;
    background: #f8f9fa;
    border: 2px dashed #0d6efd;
    border-radius: 4px;
}

.cursor-pointer {
    cursor: pointer;
}

.dataTables_wrapper {
    font-size: 12px;
}

.dt-container .form-control,
.dt-container .form-select {
    font-size: 12px !important;
    height: 28px !important;
}

.dt-container .page-link {
    font-size: 12px !important;
    padding: 2px 8px !important;
}
.dt-container .dataTables_filter {
    float: right !important;
}
.dt-container .dt-search, .dt-container .dt-info, div.dt-container div.dt-length label{
    font-size: 12px !important;
}

.dt-container .dt-button-collection .dropdown-item{
    font-size: 10px !important;
}
.dt-container .dtsb-searchBuilder {
    background: #f8f9fa !important;
    padding: 10px;
    border-radius: 6px;
    font-size: 10px !important;
}

/* Compact Select2 for filter panel */
.select2-container .select2-selection--single {
    font-size: 12px !important;
    height: 30px !important;
}

.select2-container .select2-selection__rendered {
    line-height: 26px !important;
}

.select2-container .select2-results__option {
    font-size: 12px !important;
}
.select2-results__options {
    max-height: 150px !important;
}
/* Scrollbar width */
.select2-results__options::-webkit-scrollbar {
    width: 2px;   /* Vertical scrollbar */
}

/* Track */
.select2-results__options::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Thumb */
.select2-results__options::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

/* Hover */
.select2-results__options::-webkit-scrollbar-thumb:hover {
    background: #555;
}
.select2-results__options {
    scrollbar-width: thin;   /* auto | thin */
    scrollbar-color: #888 #f1f1f1;
}

.modal.fade .modal-dialog {
    transform: scale(0.5);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

.modal-backdrop.show {
    backdrop-filter: blur(3px);
}


/* Override DataTables Select highlight */
table.dataTable tbody tr.selected,
table.dataTable tbody tr.selected td {
    background-color: #e8e8e8 !important;
    box-shadow: none !important;
    color: #000 !important;

}


.small-tooltip .tooltip-inner {
    font-size: 10px;
    padding: 3px 6px;
}


/* Chrome, Edge, Safari */
.scroll-area::-webkit-scrollbar{
    width:2px;
}

.scroll-area::-webkit-scrollbar-track{
    background:#f1f1f1;
    border-radius:10px;
}

.scroll-area::-webkit-scrollbar-thumb{
    background:#c1c1c1;
    border-radius:10px;
}

.scroll-area::-webkit-scrollbar-thumb:hover{
    background:#999;
}

/* Firefox */
.scroll-area{
    scrollbar-width:thin;
    scrollbar-color:#c1c1c1 #f1f1f1;
}


/* Header */
.top-navbar {
    position: fixed;
    top:0;
    height: 60px;
    width: 100%;
    z-index: 1000;
}

.logo-image{
    width: 105px !important;
}


/* Sidebar */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 200px;
    height: calc(100vh - 60px);
    background: #fff;
    overflow-y: auto;
    border-right: 1px solid #e6e6e6;
     transition: width 0.25s ease;
    z-index:1050;
}

.sidebar a {
    padding: 10px 18px;
    display: block;
    color: #adb5bd;
    text-decoration: none;
    font-size: 13px;

}



.sidebar a:hover {
    background: #e6e6e6;
    color: #000;
}

/* Chrome, Edge, Safari */
.sidebar::-webkit-scrollbar {
    width: 2px;   /* 🔥 Very thin */
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #6c757d;
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background-color: #adb5bd;
}

/* COLLAPSED MODE */

body.sidebar-collapsed .sidebar{
    width:60px;
}

body.sidebar-collapsed .content{
    margin-left:60px;
}

/* Normal sidebar */
.sidebar a span{
    display:inline;
}

/* When collapsed */
.sidebar-collapsed .sidebar a span{
    display:none;
}

.sidebar-collapsed .sidebar a{
    text-align:center;
}

.sidebar-collapsed .sidebar a i{
    margin-right:0;
}

.sidebar .dropdown-menu{
    position: static;
    border:none;
    box-shadow:none;
    padding-left:15px;
}

.sidebar .dropdown-item{
    font-size:12px;
}

.sidebar .dropdown-block{

}

#studioMenu a{
    /*padding-left:35px;*/
    display:block;
}

.rotate-arrow{
    transition:0.3s;
}

.collapsed .rotate-arrow{
    transform:rotate(0deg);
}

:not(.collapsed) .rotate-arrow{
    transform:rotate(90deg);
}


.sidebar-overlay{
    position:fixed;
    top:60px;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.3);
    display:none;
    z-index:1040;
}

.sidebar-overlay.active{
    display:block;
}

#sidebarToggle{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
}

.sidebar-toggle-icon{
    position:fixed;
    top:58px;
    left: 189px;
    font-size:8px;
    cursor:pointer;
    background:#fff;
    border-radius:50%;
    width:20px;
    height:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:1100;
    transition:0.3s;
    background: linear-gradient(135deg, #1a73e8, #c3c3c3);
    color: #fff;
}

/* When sidebar collapses */
body.sidebar-collapsed .sidebar-toggle-icon{
    left:50px;
}


/* Content */
.content {
    margin-top: 60px;
    margin-left: 200px;
    padding: 0px;
    min-height: calc(100vh - 120px);
    margin-bottom: 100px;
    transition: margin-left 0.25s ease;
}



/* Footer */
.footer{
    background:#f8f9fa;
    margin-left:200px;
    height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all .3s ease;
}

body.sidebar-collapsed .footer{
    margin-left:60px;
}

/* Mobile */
@media (max-width: 768px) {

.sidebar{
    left:-250px;
}

    .sidebar.active{
        left:0;
    }

    body.sidebar-collapsed .sidebar{
        width:250px;
    }

    .content{
        margin-left:0 !important;
    }


    #sidebarToggle{
          display:none;
    }

}

.table-dynamic {
    table-layout: auto;
    width: 100%;
}
.table-dynamic th{
    background-color: #e8e8e8 !important;
}
.table-dynamic th,
.table-dynamic td {
    white-space: nowrap;
    font-size: 12px;
}

.custom-scroll::-webkit-scrollbar {
    height: 2px;   /* Increase from 2px to 10px */
}

.custom-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.custom-scroll {
    scrollbar-width: auto; /* thin | auto */
    scrollbar-color: #888 #f1f1f1;
}

.table-responsive {
    overflow-y: hidden;
    scroll-behavior: smooth;
}

.table-responsive::-webkit-scrollbar {
    height: 12px;
}

.copy-icon {
    cursor: pointer;
}

.copy-icon:hover {
    color: #ccc;
}


#studio-engine-list-view-configure .query-generation {
    height: 340px;
    overflow-y: scroll;
}
#studio-engine-form-view-configure .reference-tables{
    max-height: 220px;
    overflow-y: auto;
}
/* Chrome, Edge, Safari */
#studio-engine-form-view-configure .reference-tables::-webkit-scrollbar {
    width: 6px;
}

#studio-engine-form-view-configure .reference-tables::-webkit-scrollbar-track {
    background: transparent;
}

#studio-engine-form-view-configure .reference-tables::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

#studio-engine-form-view-configure .reference-tables::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Firefox */
#studio-engine-form-view-configure .reference-tables {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 transparent;
}
.query-execution{
    width: 100% !important;
    overflow-x: scroll !important;
    scroll-behavior: smooth;
}
/*#resultTable {
    width: max-content;
}*/



/* Center Wrapper */
.auth-wrapper {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Card */
.auth-card {
    background: #fff;
    width: 380px;
    padding: 40px 35px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}

/* Logo */
.auth-logo {
    font-size: 16px;
    margin-bottom: 20px;
    color: #fff;
    background: linear-gradient(135deg, #adb5bd, #6c757d);
    padding: 10px 0;
    border-radius: 5px;
}

/* Input Group */
.auth-wrapper .input-group {
    position: relative;
    margin-bottom: 25px;
}

/* Input */
.auth-wrapper .input-group input {
    width: 100%;
    padding: 14px 10px;
    font-size: 14px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    outline: none;
    background: none;
    transition: 0.3s;
}

/* Focus Effect */
.auth-wrapper .input-group input:focus {
    border: 2px solid #1a73e8;
}

/* Label */
.auth-wrapper .input-group label {
    position: absolute;
    top: 14px;
    left: 10px;
    font-size: 14px;
    color: #5f6368;
    background: #fff;
    padding: 0 4px;
    transition: 0.2s ease all;
    pointer-events: none;
}

/* Floating Animation */
.auth-wrapper .input-group input:focus + label,
.auth-wrapper .input-group input:valid + label {
    top: -8px;
    left: 8px;
    font-size: 11px;
    color: #1a73e8;
}

/* Button */
.auth-btn {
    width: 100%;
    padding: 12px;
    border: none;
    background: #1a73e8;
    color: #fff;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.auth-btn:hover {
    background: #1558c0;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        width: 90%;
        padding: 30px 20px;
    }
}


.dynamic-text-editor {
    min-height: 200px;   /* Default height */
}

.quill-wrapper .dynamic-text-editor .ql-container {
    min-height: 200px;
}


.block { border:1px solid #ccc; padding:15px; margin-top:10px; background:#fafafa;}
/* .nested { margin-left:25px; }*/
.group { border:1px dashed #aaa; padding:10px; margin-top:10px;}
pre { background:#ccc; color:#000; padding:15px; }



#studio-engine-page .studio-card, #workflow-page .studio-card, #logs-page .studio-card, #connectors-page .studio-card{
border:1px solid #eee;
transition: all .2s ease;
cursor:pointer;
}

#studio-engine-page .studio-card:hover, #workflow-page .studio-card:hover, #logs-page .studio-card:hover, #connectors-page .studio-card:hover{
border-color:#0d6efd;
box-shadow:0 4px 12px rgba(0,0,0,0.08);
transform: translateY(-2px);
}

#studio-engine-page .studio-icon{
width:24px;
height:24px;
border-radius:6px;
display:flex;
align-items:center;
justify-content:center;
color:white;
font-size:10px;
}

#workflow-page .studio-icon, #logs-page .studio-icon, #connectors-page .studio-icon{
width:40px;
height:24px;
border-radius:6px;
display:flex;
align-items:center;
justify-content:center;
color:white;
font-size:10px;
}

.table-dynamic thead th{
font-size:12px;
background:#f7f7f7;
border-bottom:1px solid #e5e5e5;
}

.table-dynamic tbody td{
font-size:12px;
vertical-align:middle;
}

.card{
border-radius:6px;
}

.shadow-sm{
box-shadow:0 1px 4px rgba(0,0,0,0.06);
}

#dynamic-list-view .btn{
padding:4px 10px;
}

.stat-card{
border-left:3px solid #0d6efd;
}

.stat-icon{
width:24px;
height:24px;
border-radius:6px;
display:flex;
align-items:center;
justify-content:center;
color:white;
font-size:10px;
}

.dashboard-action{
display:flex;
align-items:center;
gap:10px;
border:1px solid #eee;
padding:10px;
border-radius:6px;
font-size:12px;
text-decoration:none;
color:#333;
transition:0.2s;
}

.dashboard-action:hover{
border-color:#0d6efd;
background:#f8f9ff;
}


#workflow-builder #output_json,
#workflow-builder #output_code{
    max-height:250px;
    overflow:auto;
}

#dynamicTable thead th,
#schemaTable thead th{
    text-align:left !important;
}

#dynamicTable td.dt-type-numeric,
#dynamicTable th.dt-type-numeric,
#schemaTable td.dt-type-numeric,
#schemaTable th.dt-type-numeric{
    text-align:left !important;
}

#dynamicTable,
#schemaTable{
    border-collapse: collapse !important;
}

#dynamicTable th,
#dynamicTable td,
#schemaTable th,
#schemaTable td{
    border:1px solid #dee2e6 !important;
}

#dynamicTable thead th,
#schemaTable thead th{
    border-bottom:2px solid #dee2e6 !important;
}

#connectors-integrations-page .connector-card{
background:#fff;
border-radius:14px;
border:1px solid #e9ecef;
transition:all .25s ease;
height:100%;
}

#connectors-integrations-page .connector-card:hover{
transform:translateY(-6px);
box-shadow:0 12px 30px rgba(0,0,0,0.08);
border-color:#dee2e6;
}

#connectors-integrations-page .connector-card-body{
padding:22px;
text-align:left;
}

#connectors-integrations-page .connector-logo{
width:48px;
height:48px;
margin-bottom:15px;
}

#connectors-integrations-page .connector-logo img{
width:100%;
height:100%;
object-fit:contain;
}

#connectors-integrations-page .connector-title{
font-size:16px;
font-weight:600;
color:#111;
margin-bottom:6px;
}

#connectors-integrations-page .connector-desc{
font-size:13px;
color:#6c757d;
line-height:1.5;
margin:0;
}


/* =========================================
   OFFCANVAS ROOT (BOOTSTRAP FIX)
========================================= */

.offcanvas#workflowDiagramCanvas {
    --bs-offcanvas-width: min(90vw, 600px);
    z-index: 1055;
    display: flex;
    flex-direction: column;
}

/* Backdrop */
.offcanvas-backdrop {
    z-index: 1050;
}

/* =========================================
   OFFCANVAS BODY (SCROLL ENGINE)
========================================= */

#workflowDiagramCanvas .offcanvas-body {
    flex: 1;
    overflow: auto;
    background: #f8fafc;
}

/* =========================================
   DIAGRAM WRAPPER (LAYOUT ENGINE)
========================================= */

#workflowDiagramWrapper {
    position: relative;
    width: 100%;
    min-height: 400px;
    height: auto;
    background-color: #1e1e1e; /* your dark theme */

    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);

    background-size: 25px 25px; /* grid size */
}

/* =========================================
   MAIN DIAGRAM CONTAINER
========================================= */

#workflowDiagram {
    position: relative;   /* 🔥 CRITICAL FIX */
    width: 100%;
    height: auto;
    min-height: 400px;
    z-index: 2;
}

/* =========================================
   CANVAS (LINES BELOW NODES)
========================================= */

#diagramCanvas {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

/* =========================================
   BASE NODE STYLE
========================================= */

.node {
    position: absolute;
    width: 180px;
    min-height: 36px;
    font-size: 10px !important;
    padding: 8px 10px;
    border-radius: 8px;

    font-size: 12px;
    font-weight: 500;
    text-align: center;

    background: #ffffff;
    border: 1px solid #d0d5dd;

    box-shadow: 0 2px 6px rgba(0,0,0,0.08);

    z-index: 3;

    transition: all 0.2s ease;
    transform: translateX(-50%);
}

/* =========================================
   NODE TEXT
========================================= */

.node span {
    display: inline-block;
    max-width: 150px;
    word-break: break-word;
    line-height: 1.3;
}

/* =========================================
   HOVER EFFECT
========================================= */

.node:hover {
     transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
    cursor: pointer;
}



/* =========================================
   NODE TYPES
========================================= */

.node.start {
    background: #e6f4ea;
    border-color: #28a745;
    color: #1e7e34;
    border-radius: 20px;
    font-weight: 600;
}

.node.end {
    background: #fdecea;
    border-color: #dc3545;
    color: #b02a37;
    border-radius: 20px;
    font-weight: 600;
}

.node.action {
    background: #eef4ff;
    border-color: #4a90e2;
    color: #1d4ed8;
}

.node.connector {
    background: #f0fdf4;
    border-color: #22c55e;
}

.node.email {
    background: #fff7ed;
    border-color: #f97316;
}

.node.notification {
    background: #f5f3ff;
    border-color: #8b5cf6;
}

.node.debug {
    background: #f1f5f9;
    border-color: #64748b;
}

.node.redirect {
    background: #ecfeff;
    border-color: #06b6d4;
}

/* =========================================
   DECISION NODE (PROPER DIAMOND)
========================================= */

.node.decision {
    width: 100px;
    height: 100px;
    position: absolute;
     background: transparent !important;
    border: none !important;
     background: transparent !important;   /* 🔥 remove square bg */
    box-shadow: none !important;          /* 🔥 remove shadow */
    border-radius: 0 !important;          /* 🔥 remove rounded corners */
    padding: 0;
}

.node.decision::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    transform: rotate(45deg);
    top: 0;
    left: 0;
    z-index: 1;
}

.node.decision span {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* =========================================
   MERGE NODE
========================================= */

.node.merge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6b7280;
    border: none;
    padding: 0;
}

.node.merge span {
    display: none;
}

/* =========================================
   SWITCH NODE
========================================= */

.node.switch {
    background: #fdf2f8;
    border-color: #ec4899;
}

/* =========================================
   ANIMATION
========================================= */

.node {
    animation: fadeInNode 0.25s ease;
}

@keyframes fadeInNode {
    from {
        opacity: 0;
        transform: translateY(5px) translateX(-50%);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }
}


#testResponseCanvas {
    width: 300px !important;
     z-index: 2000 !important; /* above header & sidebar */
}

.offcanvas-backdrop {
    z-index: 1990 !important;
}

.offcanvas {
    z-index: 2000 !important;
}

#testResponseCanvas #testResponse {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
}

#testResponse {
    width: 100%;
    min-height: 600px;
    overflow: auto;
     white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.5;
}


.offcanvas#queryBuilderCanvas {
    --bs-offcanvas-width: min(90vw, 350px);
    z-index: 1055;
    display: flex;
    flex-direction: column;
}

#queryBuilderCanvas .offcanvas-body {
    flex: 1;
    overflow: auto;
    background: #f8fafc;
}


#queryBuilderWrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #1e1e1e; /* your dark theme */

    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);

    background-size: 25px 25px; /* grid size */
}

#queryBuilderCode {
    position: relative;   /* 🔥 CRITICAL FIX */
    width: 100%;
    height: 100%;
    z-index: 2;
}

textarea[name="nm_page_css"], textarea[name="nm_page_javascript"], textarea[name="nm_page_header"], textarea[name="nm_page_footer"] {
    background-color: #515151; /* Dark editor background */
    color: #fff;
    font-family: 'Fira Code', 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    border: 0px solid #333;
    border-radius: 6px;
    padding: 12px;
    outline: none;
    resize: vertical;
    caret-color: #00ffcc;
    overflow: auto;
    height: 300px;
}

textarea[name="nm_page_content"] {
    background-color: #515151; /* Dark editor background */
    color: #fff;
    font-family: 'Fira Code', 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    border: 0px solid #333;
    border-radius: 6px;
    padding: 12px;
    outline: none;
    resize: vertical;
    caret-color: blue;
    overflow: auto;
    height: 600px;
}

/* Focus effect */
textarea[name="nm_page_css"]:focus, textarea[name="nm_page_javascript"]:focus, textarea[name="nm_page_content"]:focus, textarea[name="nm_page_header"]:focus, textarea[name="nm_page_footer"]:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #333; /* optional: keep your custom border */
    background-color: #515151; /* Dark editor background */
    color: #fff;

}

/* Scrollbar */
textarea[name="nm_page_css"]::-webkit-scrollbar,textarea[name="nm_page_javascript"]::-webkit-scrollbar, textarea[name="nm_page_content"]::-webkit-scrollbar, textarea[name="nm_page_header"]::-webkit-scrollbar, textarea[name="nm_page_footer"]::-webkit-scrollbar {
    width: 8px;
}

textarea[name="nm_page_css"]::-webkit-scrollbar-thumb,textarea[name="nm_page_javascript"]::-webkit-scrollbar-thumb, textarea[name="nm_page_content"]::-webkit-scrollbar-thumb, textarea[name="nm_page_header"]::-webkit-scrollbar-thumb, textarea[name="nm_page_footer"]::-webkit-scrollbar-thumb  {
    background: #444;
    border-radius: 4px;
}

textarea[name="nm_page_css"]::-webkit-scrollbar-thumb:hover, textarea[name="nm_page_javascript"]::-webkit-scrollbar-thumb:hover, textarea[name="nm_page_content"]::-webkit-scrollbar-thumb:hover, textarea[name="nm_page_header"]::-webkit-scrollbar-thumb:hover, textarea[name="nm_page_footer"]::-webkit-scrollbar-thumb:hover {
    background: #666;
}