/****************************************************************************/

/*     m a i n . c s s                                                      */

/****************************************************************************/
body, html {
    font-family: Lato,'Lato', sans-serif;
    min-width: 800px !important;
    min-height: 400px !important;
}

/*------------------------------------------------------------------------*/
/*------------------------------------------------------------------------*/

/* ═══════════════════════════════════════════════════════════════
   Node Edit Dialog  —  modern dark editor chrome
   ═══════════════════════════════════════════════════════════════ */

.dialog-content {
    /* Viewport-proportional default — overridden by JS on open */
    width: 72vw;
    height: 76vh;
    min-width: 580px;
    min-height: 440px;
    max-width: 1280px;
    max-height: 92vh;
    resize: both;
    overflow: auto;

    /* Dark editor chrome */
    background-color: #1e1e2e;
    border-radius: 10px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.07);

    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.dialog-container .button {
    opacity: 0.6;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    transition: opacity 0.12s, background 0.12s;
    padding: 2px;
}
.dialog-container .button:hover {
    opacity: 1.0;
    background: rgba(255,255,255,0.10);
}

/* ── Title bar ─────────────────────────────────────────────── */
.dialog-title {
    background: #17171f;
    color: #c8d3f5;
    font-family: 'Inter', 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-align: center;
    text-transform: uppercase;
    padding: 9px 0 9px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 0;
    cursor: move;
    user-select: none;
    -webkit-user-select: none;
}

/* ── Form fields panel ─────────────────────────────────────── */
.dialog-group {
    background-color: #252535;
    float: left;
    margin-top: 0;
    margin-left: -8px;
    margin-bottom: 0;
}

.dialog-content-group {
    text-align: left;
    margin-top: 8px;
    height: 100%;
    margin-left: 12px;
    margin-right: 8px;
}

/* Labels */
.w3-dialog label {
    font-family: 'Inter', 'Lato', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #6e7a99;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    display: block;
    margin-bottom: 3px;
}

/* Name / Tags inputs */
.dialog-group input.w3-input {
    background: #2d2d42 !important;
    border: 1px solid #3a3a55 !important;
    border-radius: 6px !important;
    color: #cdd6f4 !important;
    font-family: 'Inter', 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 5px 10px !important;
    height: 30px !important;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}
.dialog-group input.w3-input:focus {
    border-color: #575bde !important;
    box-shadow: 0 0 0 2px rgba(87,91,222,0.22) !important;
    background: #323248 !important;
}

/* ── Button sidebar ────────────────────────────────────────── */
.dialog-button-group {
    width: 44px;
    height: 100%;
    float: right;
    margin-right: -10px;
    border-left: 1px solid rgba(255,255,255,0.06);
    background: #17171f;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 6px;
    gap: 2px;
}

.dialog-button-exit {
    content: url("../assets/close2.png");
    margin-top: 0;
}

.dialog-button-icon {
    content: url("../assets/lamp1.png");
    margin-top: 28px;
}

.dialog-button-image {
    content: url("../assets/image-256.png");
    margin-top: 16px;
}

.dialog-button-save {
    content: url("../assets/save2.png");
    margin-top: 16px;
}

.dialog-button-delete {
    content: url("../assets/close-256.png");
    width: 16px !important;
    height: 16px !important;
    margin-top: 0;
    position: relative;
    left: 11px;
    top: -11px;
}

/* ── Icon picker popup ─────────────────────────────────────── */
.dialog-icon-group {
    z-index: 2000;
    height: 140px;
    width: 210px;
    left: 300px;
    top: 300px;
    background-color: #252535;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    border: 1px solid #3a3a55;
    border-radius: 8px;
}

.dialog-icon-collection {
    width: 90%;
    height: 30px;
    position: relative;
    top: -90px;
}

/* ── Summernote toolbar — dark theme ───────────────────────── */
.w3-dialog .note-editor {
    border: none !important;
    border-radius: 0 !important;
}

.w3-dialog .note-toolbar {
    background: #1e1e2e !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    padding: 5px 8px !important;
}

.w3-dialog .note-btn {
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 5px !important;
    color: #a9b1d6 !important;
    padding: 3px 7px !important;
    font-size: 0.8rem !important;
    transition: background 0.12s, color 0.12s !important;
    box-shadow: none !important;
}
.w3-dialog .note-btn:hover,
.w3-dialog .note-btn:focus,
.w3-dialog .note-btn:active {
    background: rgba(255,255,255,0.11) !important;
    color: #cdd6f4 !important;
    box-shadow: none !important;
}
.w3-dialog .note-btn i { color: inherit !important; }

.w3-dialog .note-toolbar .note-btn-group {
    border: none !important;
    margin-right: 4px;
}

/* Editor content area — keep white for comfortable writing */
.w3-dialog .note-editable {
    background: #ffffff !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 0.9375rem !important;
    line-height: 1.75 !important;
    color: #1f2937 !important;
    padding: 16px 20px !important;
}

.w3-dialog .note-statusbar { display: none !important; }

.w3-dialog .note-placeholder {
    font-family: 'Inter', sans-serif !important;
    color: #9ca3af !important;
    padding: 16px 20px !important;
}
/*------------------------------------------------------------------------*/

.basic-nav-item {
    display: none;
}

/* graph toolbar */
.sel-nav-item {
    display: none;
}

.main-nav-item {
    display: none;
}

/* the following style is used in the RichText editor only*/
.dropdown-style {
    min-width: 200px !important;
    width: 200px;
}

svg {
    filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
}

/* -----------------------------------------------------------------------
   Profile Dialog
   All rules use #userDlg prefix for specificity over Bootstrap + w3.css.
   text-align: left is required to counteract the outer div.text-center.
----------------------------------------------------------------------- */
#userDlg .modal-dialog {
    max-width: 520px !important;
}

#userDlg .modal-content {
    height: auto !important;
    border: none !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22) !important;
}

/* ---- Header banner ---- */
#userDlg .profile-modal-header {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    background: linear-gradient(135deg, #575bde 0%, #3b3fa8 100%) !important;
    padding: 22px 20px 20px 24px !important;
    position: relative !important;
    border-bottom: none !important;
    text-align: left !important;
}

#userDlg .profile-avatar {
    width: 58px !important;
    height: 58px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

#userDlg #profileInitials {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
}

#userDlg .profile-identity {
    flex: 1 !important;
    min-width: 0 !important;
    text-align: left !important;
}

#userDlg .profile-fullname {
    font-size: 1.0rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
}

#userDlg .profile-at-username {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-top: 2px !important;
}

#userDlg .profile-close-btn {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.5rem !important;
    opacity: 1 !important;
    text-shadow: none !important;
    padding: 0 4px !important;
    line-height: 1 !important;
    background: none !important;
    border: none !important;
    flex-shrink: 0 !important;
}

#userDlg .profile-close-btn:hover {
    color: #ffffff !important;
}

/* ---- Modal body ---- */
#userDlg .modal-body {
    padding: 22px 24px 6px !important;
    background: #ffffff !important;
    text-align: left !important;
}

/* Section labels */
#userDlg .profile-section-label {
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.7px !important;
    text-transform: uppercase !important;
    color: #9ca3af !important;
    margin: 0 0 12px 0 !important;
    text-align: left !important;
}

/* Form labels */
#userDlg label {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 4px !important;
    display: block !important;
    text-align: left !important;
}

#userDlg .profile-optional {
    font-weight: 400 !important;
    color: #9ca3af !important;
}

/* Inputs */
#userDlg .form-control {
    border-radius: 7px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #f9fafb !important;
    height: 2.4rem !important;
    padding: 0 0.75rem !important;
    font-size: 0.9rem !important;
    color: #1e293b !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
    text-align: left !important;
}

#userDlg .form-control:focus {
    border-color: #575bde !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(87, 91, 222, 0.12) !important;
    outline: none !important;
}

#userDlg .form-control[readonly] {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    cursor: default !important;
}

/* Divider */
#userDlg .profile-hr {
    border: none !important;
    border-top: 1px solid #e5e7eb !important;
    margin: 16px 0 14px !important;
}

/* Validation note */
#userDlg .profile-needs-validation {
    font-weight: 400 !important;
    font-size: 0.75rem !important;
    color: #f87171 !important;
}

/* Security action buttons */
#userDlg .profile-security-actions {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin-bottom: 4px !important;
    text-align: left !important;
}

#userDlg .profile-action-btn {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #575bde !important;
    border: 1.5px solid #c7c9f5 !important;
    border-radius: 20px !important;
    padding: 5px 14px !important;
    background: #f0f1fd !important;
    transition: background 0.15s ease, border-color 0.15s ease !important;
    line-height: 1.4 !important;
}

#userDlg .profile-action-btn:hover {
    background: #e0e2fb !important;
    border-color: #575bde !important;
    color: #3b3fa8 !important;
}

#userDlg svg {
    filter: none !important;
}

/* ---- Footer ---- */
#userDlg .modal-footer {
    padding: 14px 20px 16px !important;
    background: #ffffff !important;
    border-top: 1px solid #f0f0f0 !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    display: flex !important;
}

#userDlg .btn-profile-cancel {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 7px 18px !important;
    background: #ffffff !important;
    transition: border-color 0.15s ease !important;
}

#userDlg .btn-profile-cancel:hover {
    border-color: #9ca3af !important;
    color: #374151 !important;
    background: #f9fafb !important;
}

#userDlg .btn-profile-save {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    background: #575bde !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 7px 22px !important;
    transition: background 0.15s ease, box-shadow 0.15s ease !important;
}

#userDlg .btn-profile-save:hover {
    background: #3b3fa8 !important;
    box-shadow: 0 4px 14px rgba(87, 91, 222, 0.35) !important;
    color: #ffffff !important;
}

/* -----------------------------------------------------------------------
   Cookie Consent Banner
----------------------------------------------------------------------- */
@keyframes privacySlideIn {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

@keyframes privacySlideOut {
    from { transform: translateY(0); }
    to   { transform: translateY(100%); }
}

.privacy-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 28px rgba(0, 0, 0, 0.09);
    padding: 14px 28px;
    transform: translateY(0);
    animation: privacySlideIn 0.4s ease;
    font-family: 'Inter', 'Lato', sans-serif;
}

.privacy-bar.privacy-bar-hiding {
    animation: privacySlideOut 0.32s ease forwards;
}

.privacy-bar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
}

.privacy-bar-icon {
    color: #575bde;
    flex-shrink: 0;
    filter: none !important;
    opacity: 0.85;
}

.privacy-bar-text {
    flex: 1;
    font-size: 0.875rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.55;
}

.privacy-bar-link {
    color: #575bde;
    font-weight: 600;
    text-decoration: none;
}

.privacy-bar-link:hover {
    text-decoration: underline;
    color: #3b3fa8;
}

.privacy-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-btn-accept {
    background: #575bde;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 22px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Inter', 'Lato', sans-serif;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.cookie-btn-accept:hover {
    background: #3b3fa8;
    box-shadow: 0 4px 14px rgba(87, 91, 222, 0.3);
}

.cookie-btn-decline {
    background: transparent;
    color: #9ca3af;
    border: none;
    padding: 8px 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: 'Inter', 'Lato', sans-serif;
    cursor: pointer;
    transition: color 0.15s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.cookie-btn-decline:hover {
    color: #374151;
}

@media (max-width: 600px) {
    .privacy-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .privacy-bar-icon {
        display: none;
    }
}

.image-item {
    margin-left: 35px;
    max-width: 90px !important;
}

.dropdown-image {
    width: 40px;
    height: 40px;
    opacity: 1.0 !important;
}

.vscrollable {
    position: absolute;
    text-justify: distribute;
    top: 20px;
    bottom: 80px;
    /* height: 760px;*/
    left: 50px;
    overflow-y: scroll;
}

    .vscrollable h2 {
        margin-top: 30px;
    }

menu {
    position: absolute;
    display: block;
    left: 0px;
    top: 0px;
    height: 20px;
    width: 20px;
    padding: 0;
    margin: 0;
    border: 1px solid;
    background-color: white;
    font-weight: normal;
    white-space: nowrap;
}

    menu:hover {
        background-color: #eef;
        font-weight: bold;
    }

        menu:hover > menu {
            display: block;
        }

    menu > menu {
        display: none;
        position: relative;
        top: -20px;
        left: 100%;
        width: 55px;
    }

    menu[title]:before {
        content: attr(title);
    }

    menu:not([title]):before {
        content: "\2630";
    }
/*---------------------------------------------*/
.circle {
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    background: #415629;
}

.search-icon {
    margin-right: 10px;
    margin-top: 3px;
}

    .search-icon:hover {
        opacity: 0.5;
    }

    .search-icon:active {
        opacity: 1.0;
    }

.nav-button {
    color: #00cccc;
}

    .nav-button:hover {
        color: yellow;
    }

    .nav-button:disabled {
        color: #bfbfbf;
    }

#resize-expand, #resize-shrink {
    opacity: 0.5;
}

.div-center {
    margin: auto;
    width: 100%;
    text-align: center;
}

.note-toolbar {
    background-color: lightgray;
}

.panel-heading button {
    background-color: white;
}

.modal-dialog {
    max-width: 2000px;
    width: 700px;
}

#nodeEditDlg .modal-content {
    /*  margin: auto;*/
    position: absolute;
    width: 200%;
    padding: 10px;
    left: -220px;
    min-width: 400px;
    min-height: 440px;
}

#nodeEditDlg .modal-dialog {
    max-width: 2000px;
    width: 500px;
    min-width: 400px;
    min-height: 440px;
}



.text-left {
    display: flex;
    font-weight: bold;
}

.container {
    min-width: 50% !important;
    min-height: 100% !important;
    float: left;
}

/*---------------------------------------------*/
a.list-group-item.active {
    background-color: #577d99 !important;
}

.col-custom-leftpane {
    width: 240px;
    background: #f8f8f8;
    position: fixed;
    height: 100%;
    left: 0;
}

.col-custom-mainPane {
    padding-right: 50px;
    z-index: 0;
    padding-left: 260px;
    padding-top: 60px;
}

.disable-select {
    user-select: none; /* supported by Chrome and Opera */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
}

.btn-custom {
    width: 120px !important;
}

.btn-save {
    width: 120px !important;
    color: white;
    background-color: #74a7cc;
}

.btn-custom-wb {
    width: 150px !important;
}

.btn-custom-all {
    width: 40px !important;
    float: right;
    /*margin-top: 5px;*/
    margin-right: 3px;
    border-style: none;
    border-radius: 50%;
}

.btn-custom-rev {
    width: 43px !important;
    float: right;
    /*margin-top: 5px;*/
    margin-right: 3px;
    border-style: none;
    border-radius: 50%;
}

.btn-custom-ellipsis {
    width: 30px !important;
    height: 30px !important;
    float: right;
    /*margin-top: 4px;
    margin-right: 3px;*/
    border-style: none;
    border-radius: 50%;
}

.image-margin {
    margin-right: 8px;
}

.span-text-custom {
    color: red;
    font-weight: bold;
    font-style: italic;
}



.info-bar {
    background-color: #444444;
    overflow: hidden;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 80px;
    color: lightgray;
    padding: 30px 0 0 30px;
    line-height: 80px;
}

.info-img {
    position: absolute;
    /*margin-left: 10px;*/
    top: 20px;
    max-width: 40px;
    max-height: 40px;
}


.owner-sel {
    max-width: 120px;
    position: absolute;
    top: 114px;
    right: 15px;
}

.dropdown {
    position: relative;
    display: inline-block;
    float: right;
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 280px;
    overflow: auto;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    left: -190px;
    border: 1px solid lightgray;
    background-color: white;
    overflow: hidden;
}

    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

.dropdown a:hover {
    background-color: #ddd;
}

.show {
    display: block;
}

.ug-td-1 {
    width: 40% !important;
}

.ug-td-2 {
    width: 55% !important;
}

.ug-td-3 {
    width: 1% !important;
}

table {
    table-layout: fixed;
    word-wrap: break-word;
    width: auto;
}

/* for high resolution display */

@media only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2) {

    .row-img {
        width: 64px;
        height: 56px;
        margin-bottom: 5px;
        padding-right: 5px;
    }

    .project-img {
        float: right;
        opacity: 0.5;
        width: 48px;
        height: 48px;
        margin-top: 4px;
    }

    .folder-img {
        float: right;
        opacity: 0.5;
        width: 56px;
        height: 56px;
        margin-top: 5px;
    }
}

.row-img {
    width: 32px;
    height: 28px;
    margin-bottom: 5px;
    padding-right: 5px;
}


.project-img {
    float: right;
    opacity: 0.5;
    width: 24px;
    height: 24px;
    margin-top: 4px;
}

    .project-img:hover {
        opacity: 1.0;
    }

.folder-img {
    float: right;
    opacity: 0.5;
    width: 28px;
    height: 28px;
    margin-top: 5px;
}

    .folder-img:hover {
        opacity: 1.0;
    }


.dropdown img {
    opacity: 0.5;
}

    .dropdown img:hover {
        opacity: 1.0;
    }



.button-custom-ellipsis {
    width: 30px;
    height: 30px;
    opacity: 0.75;
}

.overlay {
    /*background-color: rgba(1, 1, 1, 0.2);*/
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    visibility: hidden;
}

.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

/******* spinner styles  **************/

@keyframes spinner-line-fade-more {
    0%, 100% {
        opacity: 0; /* minimum opacity */
    }

    1% {
        opacity: 1;
    }
}

@keyframes spinner-line-fade-quick {
    0%, 39%, 100% {
        opacity: 0.25; /* minimum opacity */
    }

    40% {
        opacity: 1;
    }
}

@keyframes spinner-line-fade-default {
    0%, 100% {
        opacity: 0.22; /* minimum opacity */
    }

    1% {
        opacity: 1;
    }
}

/***** small spinner for script page *****/
.codemirror-textarea {
    overflow: auto;
    border-style: solid;
    border-color: red;
}

@keyframes script-spinner {
    to {
        transform: rotate(360deg);
    }
}

.clickable {
    cursor: unset !important
}

.fade-in {
    opacity: 1;
    animation-name: fadeInOpacity;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 0.2s;
}

@keyframes fadeInOpacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}
