/* Layout Styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: Consolas, "Segoe UI", Tahoma, sans-serif;
}

.app-layout {
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100vh;
    width: 100vw;
}

.main-grid {
    display: flex;
    height: 100%;
    overflow: hidden;
}

.left-panel {
    width: 300px;
    min-width: 100px;
    height: 100%;
    overflow: hidden;
}

.dark-theme .left-panel {
    background-color: #1e1e1e;
}

#monaco-editor {
    height: 100%;
}

.splitter {
    width: 6px;
    background-color: transparent;
    cursor: col-resize;
    height: 100%;
    z-index: 1;
}

.dark-theme .splitter {
    background-color: #333;
}

.right-panel {
    position: relative;
    flex-grow: 1;
    height: 100%;
    min-width: 50%;
    overflow: hidden;
    background-color: #1e1e1e;
}

::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

.scroll-hide {
    overflow: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scroll-hide::-webkit-scrollbar {
    display: none;
}

.e-diagram {
    background-color: #F8F9FA;
}

/* Navbar Styles */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 46px;
    padding: 0 16px;
    background-color: rgb(236, 236, 236);
    border-bottom: 1px solid #e0e0e0;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.nav-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-right: 24px;
    color: #333333;
    width: 220px;
}

.navbar button {
    margin-right: 12px;
    background-color: transparent;
    min-width: 72px;
    font-size: 0.875rem;
    background-color: transparent !important;
    border: 0;
    box-shadow: none !important;
}

.nav-logo {
    width: 2.2rem;
    margin-right: .1rem;
}

/*  targetting the editor input type dropdown  */
.navbar-right > span {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.dark-theme .navbar .nav-title,
.dark-theme .navbar button {
    color: #f0f0f0;
}

.dark-theme button:hover {
    background-color: #3a3a3a;
}

.dark-theme .navbar {
    background-color: #2c2c2c;
    ;
    border-bottom: #444444;
}

.dark-theme .nav-logo {
    filter: brightness(0) invert(1);
}

/* Toolbar Styles */
#toolbar-container {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
}

#toolbar {
    border: 0;
}

body:not(.dark-theme) .e-toolbar .e-toolbar-item .e-tbar-btn {
    background: #343A401A !important;
    border-radius: 3px;
}

#toolbar-container.e-toolbar .e-toolbar-items {
    background: transparent !important;
    margin: 0;
    padding: 0;
}

#toolbar {
    border: 0;
}

#toolbar-search {
    width: 8rem;
    padding-left: 4px !important;
}

.e-input-group {
    display: flex;
    align-items: center;
}

.e-input-group-icon.counter-icon {
    padding: 0 8px;
    color: #888;
    display: flex;
    align-items: center;
}

#search-counter {
    font-size: .75rem;
    ;
}

.counter-icon.hidden {
    display: none;
}

.e-toolbar, .e-toolbar .e-toolbar-items {
    background: transparent !important;
}


/* Node Details Popup Styles */
:root {
    --popup-content-bg: #f0f0f0;
    --popup-key-color: #5C940D;
    --popup-value-color: #1864AB;
    --popup-font: 'Consolas', monospace;
}

body.dark-theme {
    --popup-content-bg: #01000c57;
    --popup-key-color: #A5D8FF;
    --popup-value-color: #40C057;
}

.dialog-section label {
    font-weight: 500;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.dialog-box {
    background-color: var(--popup-content-bg);
    border-radius: 5px;
    font-size: 14px;
    padding: 8px;
    overflow-x: auto;
    font-family: var(--popup-font);
    position: relative;
}

.dialog-copy-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #6C757D;
}

.dialog-box .key {
    color: var(--popup-key-color);
    font-weight: 550;
    margin-left: 14px;
    margin-right: 2px;
}

.dialog-box .colon {
    margin: 0 2px;
}

.dialog-box .value {
    color: var(--popup-value-color);
    margin-left: 2px;
}

.dialog-box .json-path {
    color: var(--popup-value-color);
    white-space: nowrap;
    overflow-x: auto;
    display: block;
}

#node-details-dialog .e-dialog-header,
#node-details-dialog .e-dialog-footer {
    background: var(--popup-content-bg);
}

/* Hamburger Menu Styles */
#hamburger-menu {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100;
    background: #343A401A;
    border: none;
    cursor: pointer;
}

#hamburger-menu .e-icons.e-menu {
    font-size: 16px;
}

.dark-theme .right-panel #hamburger-menu {
    background-color: #3A3A3A;
}

/* Bottom Status Bar Styles */
.bottom-bar {
    height: 24px;
    background-color: rgb(236, 236, 236);
    border-top: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
}

.bottom-bar-content {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: #333;
    gap: 20px;
}

.dark-theme .bottom-bar-content {
    color: #eee;
}

.bottom-bar .node-count {
    margin-left: auto;
}

.bottom-bar .status-message {
    display: flex;
    gap: 12px;
}

.bottom-bar .status-message > div {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.bottom-bar .status-message .e-icons {
    font-size: .9rem;
    line-height: 1;
    vertical-align: middle;
}

.bottom-bar .invalid-json {
    color: red;
}

.dark-theme .bottom-bar {
    background-color: #212121;
    border-top: 1px solid rgb(77, 77, 77);
}

/* Footer styles scoped to the sample root */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(90.4deg, #154db9 0.03%, #081b3f 11.56%, #081b3f 85.56%, #154db9 99.97%);
    border: 1px solid #D8DEE9;
    z-index: 100;
    height: 72px;
    font-family: sans-serif;
    ;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.diagram-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

    .footer-content .title span {
        font-weight: 400;
        font-size: 16px;
        color: #e1e3e7;
    }

        .footer-content .title span .main-title {
            font-weight: 700;
            font-size: 16px;
            color: #ffffff;
        }

    .footer-content .buttons {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .footer-content .e-trial-btn::before {
        content: 'Start Free Trial';
        font-family: sans-serif;
        ;
    }

    .footer-content .e-trial-btn {
        display: flex;
        align-items: center;
        gap: 10px;
        background: #FFF30F;
        color: #0F172A;
        border: transparent;
        border-radius: 8px;
        padding: 10px 16px;
        font-size: 14px;
        font-weight: 700;
        height: 40px;
        box-shadow: none;
    }

    .footer-content .e-demo-btn {
        display: flex;
        align-items: center;
        background-color: transparent;
        border: transparent;
        color: white;
        border-radius: 6px;
        gap: 10px;
        padding: 10px 16px;
        font-size: 14px;
        font-weight: 500;
        letter-spacing: .7px;
        height: 40px;
        box-shadow: none;
        text-transform: none;
    }

        .footer-content .e-demo-btn:hover {
            background-color: #173D87;
        }

    .footer-content .e-trial-btn::after {
        content: "\e7f9";
        font-family: 'e-icons';
    }

    .footer-content .e-primary:hover {
        background: #F1E50B;
        color: #0F172A;
    }

    .footer-content .e-primary:focus {
        background: #F1E50B;
        color: #0F172A;
    }

.promotion-text {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    margin-right: 1rem;
    font-family: sans-serif;
}
/* Responsive handling for footer */
@media screen and (max-width: 1140px), screen and (max-device-width: 1140px) {
    .footer-content .title {
        display: flex;
        flex-direction: column;
    }

        .footer-content .title span,
        .footer-content .title span .main-title {
            font-size: 14px;
        }
}
/* Hide extra footer text on smaller screens */
@media screen and (max-width: 900px), screen and (max-device-width: 900px) {
    .e-ribbon .help-pane-content,
    .footer-content .title span:last-child {
        display: none;
    }
}

@media screen and (max-width: 730px) {
    .footer-content .buttons .e-demo-btn {
        display: none;
    }

    .footer-content .buttons .e-trial-btn::before {
        content: 'Free Trial';
    }

    .footer-content .buttons .e-trial-btn::after {
        content: none;
    }
}
/* Hide Request Demo button on small screens + increase footer size */
@media screen and (max-device-width: 730px) {
    .footer {
        height: 90px; /* Increased footer height */
    }

    .footer-content .buttons .e-demo-btn {
        display: none;
    }

    .footer-content .buttons .e-trial-btn::before {
        content: 'Free Trial';
        font-size: 20px;
    }

    .footer-content .buttons .e-trial-btn::after {
        content: none;
    }

    .footer-content .title span,
    .footer-content .title span .main-title {
        font-size: 26px; /* Bigger font for mobile */
    }
}
/* Hide the promotion text */
@media screen and (max-width: 620px), screen and (max-device-width: 620px) {
    .promotion-text {
        display: none;
    }
}