@import url("../Default/Template.css");

@media only screen and (min-width:901px) {
    #header .logo {
        vertical-align: middle;
        margin: 16px 5px 5px 16px;
        max-height: 65px;
        max-width: 230px;
        position: absolute;
        z-index: 2000;
    }

    #footer #info {
        margin-left: 263px !important;
    }

    #main .header-text {
        margin: 0 5px 0px 0px;
        padding: 4px 4px 4px 0px;
        font-size: 16px;
        font-weight: normal;
        border-right: 1px solid rgb(0, 212, 255);
        border-top: 1px solid rgb(0, 212, 255);
        border-bottom: 1px solid rgb(0, 212, 255);
    }

    #sidebar fieldset:first-of-type legend {
        margin: 0 5px 0px 5px;
        padding: 4px 4px 4px 10px;
        font-size: 16px;
        font-weight: normal;
        border-left: 1px solid;
        border-top: 1px solid;
        border-bottom: 1px solid;
    }

    #sidebar fieldset legend {
        padding: 4px 0 4px 0px;
        margin-left: 15px;
    }

    #header .search-container {
        top: 10px;
        z-index: 1;
        right: 6px;
        visibility: hidden;
    }

    #header .template-switcher-container {
        position: absolute;
        top: inherit;
        bottom: 0;
        right: 20px;
        z-index: 1000;
    }

    .nav-fostrap .search-container {
        display: inline-block !important;
        top: 62px !important;
        right: unset !important;
        left: 20px;
        visibility: visible !important;
    }

        .nav-fostrap .search-container > span {
            width: 220px !important;
        }

        .nav-fostrap .search-container input {
            border-color: transparent;
            background-color: transparent;
        }

    #header .logo-container {
        position: relative;
        height: 65px;
        overflow: hidden;
    }

    .nav-fostrap {
        display: block;
        position: absolute;
        top: 0px;
        margin: 0;
        border: 0;
        border-radius: 0;
        overflow-y: visible;
        overflow-x: hidden;
        z-index: 1100;
        overflow: visible;
        width: 263px;
        left: 0px;
        min-height: 100%;
    }

        .nav-fostrap::before {
            content: "";
            float: left;
            margin-top: 82px;
            width: 245px;
            margin-left: 10px;
        }

    .nav-bg-fostrap .fixed-top {
        display: none;
    }

    #sidebar {
        margin: 0 0 0 263px;
        width: unset;
        min-width: 275px;
    }

    .navbar-fostrap {
        display: none;
    }

        .navbar-fostrap span:nth-child(2) {
            width: 20px;
        }

        .navbar-fostrap span:nth-child(3) {
            width: 20px;
        }

    .nav-fostrap li {
        display: block;
    }

        .nav-fostrap li a {
            display: block;
            padding: 10px;
        }

        .nav-fostrap li:first-child:hover a {
            border-radius: 0;
        }

        .nav-fostrap li ul.dropdown {
            position: relative;
        }

            .nav-fostrap li ul.dropdown li a {
                border-bottom: none;
            }

            .nav-fostrap li ul.dropdown li a {
                padding: 10px 10px 10px 30px;
            }

        .nav-fostrap li:hover .arrow-down {
            border-top: 5px solid #fff;
        }

    .nav-fostrap .arrow-down {
        border-top: 5px solid #505050;
        position: absolute;
        top: 20px;
        right: 10px;
    }

    .nav-fostrap .cover-bg {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
    }

    li > ul.dropdown {
        width: 241px !important;
        margin-left: 10px;
    }

    li.manual-hover > ul.dropdown {
        display: block;
    }

    .nav-fostrap > ul {
        padding-top: 0px;
        margin: 104px 0 0 0;
    }

    #breadcrumb {
        position: absolute;
        top: 17px;
        left: 268px;
        right: 11px;
    }

    #serviceicons > ul {
        white-space: nowrap;
    }

    #main .detail {
        margin-right: 6px !important;
    }

    .sidebar-switch {
        position: absolute;
        z-index: 10003;
        font-size: 25px;
        font-family: 'WebComponentsIcons';
        cursor: pointer;
        top: 70px;
        left: 238px;
    }
    /*Firefox fix*/
    @-moz-document url-prefix() {
        .sidebar-switch {
            top: 68px;
        }
    }

    .service-icons-collapsed:before {
        font-family: 'WebComponentsIcons';
        content: "\e705";
        cursor: pointer;
        padding-left: 12px;
        padding-right: 12px;
    }

    .service-icons-collapsed-pinned:before {
        content: "\e704";
    }
}

#sidebar > .links img {
    height: unset;
    width: 26px;
}

#breadcrumb {
    background-color: transparent;
}

#toolbar-profile-image{
    border-radius: 50%;
}

.supports-gravatar {
    display: block;
}

.primary-content {
    padding:10px;
}

#session-split_wrapper > a,
#toolbar-notifications {
    background-color: unset;
    background-image: unset;
    border: 0;
}

#session-toolbar {
    background-color: unset;
    border: 0;
}


/* when configured to apply primary color to sidebar */
@media only screen and (min-width:901px) {
    .primary-color-sesion-toolbar #toolbar-notifications > .k-i-notification:before {
        color: unset;
    }

    .primary-color-sesion-toolbar #toolbar-security > span:before {
        color: unset;
    }

    .primary-color-sidebar #main .header-text {
        border-right: 0;
        border-top: 0;
    }

    .primary-color-sidebar #sidebar fieldset:first-of-type legend {
        border-left: 0;
        border-top: 0;
    }

    .primary-color-sidebar #sidebar,
    .primary-color-sidebar #main .header-text {
        margin-top: -9px;
    }

    .primary-color-sidebar .nav-fostrap::before {
        margin-top: 86px;
    }

    .primary-color-sidebar .sidebar-switch {
        top: 74px;
    }

    @-moz-document url-prefix() {
        .primary-color-sidebar .sidebar-switch {
            top: 71px;
        }
    }
}

/* when main sidebar is collapsed*/
@media only screen and (min-width:901px) {
    .main-sidebar-collapsed .nav-fostrap {
        width: 102px;
        white-space: nowrap;
        overflow: hidden;
    }

    .main-sidebar-collapsed li > ul.dropdown {
        width: 80px !important;
    }

    .main-sidebar-collapsed .nav-fostrap li a > span {
        visibility: hidden;
    }

    .main-sidebar-collapsed #sidebar {
        margin-left: 100px;
    }

    .main-sidebar-collapsed #header > .logo-container > .logo {
        visibility: hidden;
    }

    .main-sidebar-collapsed nav .fixed-top {
        position: unset;
    }

        .main-sidebar-collapsed nav .fixed-top > .navbar-fostrap {
            display: unset;
        }

            .main-sidebar-collapsed nav .fixed-top > .navbar-fostrap > img {
                position: absolute;
                display: block;
                top: 10px;
                left: 10px;
                z-index: 1100;
            }

    .main-sidebar-collapsed #breadcrumb {
        left: 107px;
    }

    .main-sidebar-collapsed .nav-fostrap > ul > li > a {
        margin-left: 26px;
    }
}
.k-breadcrumb .k-breadcrumb-link {color: #dcddde;} 
.service-icon {color: #dcddde !important;} 

/* ── NexT Dark Enhanced — Extra structural styles ── */
.k-breadcrumb .k-breadcrumb-link { color: #e2e8f0; }
.service-icon { color: #dde4f0 !important; }

/* Smooth transitions on interactive elements */
a, .k-button, .nav-fostrap li > a, .k-grid tr {
    transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

/* Subtle sidebar background separation */
.nav-fostrap {
    background-color: #0f1218;
    border-right: 1px solid #1e2530;
}

/* ================================================
   FTP Connect Button + Modal  (NexT Dark Theme)
   ================================================ */

/* -- Connect Button -- */
.gb-ftp-connect-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background-color: rgba(0, 212, 255, 0.12);
    color: rgb(0, 212, 255);
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.25);
    cursor: pointer;
    text-decoration: none;
    transition: background-color 200ms, border-color 200ms, color 200ms;
    white-space: nowrap;
    font-family: inherit;
}
.gb-ftp-connect-btn:hover {
    background-color: rgba(0, 212, 255, 0.22);
    border-color: rgba(0, 212, 255, 0.5);
    color: rgb(0, 212, 255);
}

/* -- Modal Overlay -- */
.gb-ftp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* -- Modal Box -- */
.gb-ftp-modal {
    background-color: rgb(15, 18, 24);
    border: 1px solid rgb(30, 37, 48);
    border-radius: 8px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    animation: gbFtpSlideIn 0.2s ease;
    overflow: hidden;
}

@keyframes gbFtpSlideIn {
    from { opacity: 0; transform: translateY(-16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)     scale(1);    }
}

/* -- Header -- */
.gb-ftp-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    border-bottom: 1px solid rgb(21, 26, 34);
    font-size: 14px;
    font-weight: 600;
    color: rgb(226, 232, 240);
}
.gb-ftp-modal-header i:first-child { color: rgb(0, 212, 255); }
.gb-ftp-modal-header span { flex: 1; }

.gb-ftp-modal-close {
    background: none;
    border: none;
    color: rgb(74, 85, 104);
    cursor: pointer;
    font-size: 15px;
    padding: 3px 6px;
    border-radius: 6px;
    transition: color 150ms, background 150ms;
    line-height: 1;
}
.gb-ftp-modal-close:hover {
    color: rgb(226, 232, 240);
    background: rgb(21, 26, 34);
}

/* -- Body -- */
.gb-ftp-modal-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gb-ftp-modal-hint {
    font-size: 12px;
    color: rgb(74, 85, 104);
    line-height: 1.6;
    background: rgb(10, 12, 16);
    border: 1px solid rgb(21, 26, 34);
    border-radius: 8px;
    padding: 10px 12px;
    margin: 0;
}
.gb-ftp-modal-hint::before { content: "Lock  "; }

.gb-ftp-modal-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.gb-ftp-modal-field label {
    font-size: 11px;
    font-weight: 600;
    color: rgb(74, 85, 104);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.gb-ftp-modal-input-wrap {
    display: flex;
    align-items: center;
    background: rgb(10, 12, 16);
    border: 1px solid rgb(30, 37, 48);
    border-radius: 8px;
    padding: 0 12px;
    gap: 10px;
    transition: border-color 200ms;
}
.gb-ftp-modal-input-wrap:focus-within { border-color: rgb(0, 212, 255); }
.gb-ftp-modal-input-wrap.error        { border-color: rgb(255, 59, 92); }
.gb-ftp-modal-input-wrap.readonly     { opacity: 0.55; }
.gb-ftp-modal-input-wrap i            { color: rgb(74, 85, 104); font-size: 13px; flex-shrink: 0; }

.gb-ftp-modal-input-wrap input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: rgb(226, 232, 240);
    font-family: inherit;
    font-size: 14px;
    padding: 10px 0;
}
.gb-ftp-modal-input-wrap input::placeholder { color: rgb(74, 85, 104); }

.gb-ftp-toggle-pw {
    background: none;
    border: none;
    color: rgb(74, 85, 104);
    cursor: pointer;
    font-size: 13px;
    padding: 3px;
    transition: color 150ms;
    line-height: 1;
}
.gb-ftp-toggle-pw:hover { color: rgb(226, 232, 240); }

/* -- Remember row -- */
.gb-ftp-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.gb-ftp-remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgb(74, 85, 104);
    cursor: pointer;
    user-select: none;
}
.gb-ftp-remember-label input[type="checkbox"] {
    accent-color: rgb(0, 212, 255);
    width: 14px;
    height: 14px;
    cursor: pointer;
}
.gb-ftp-remember-label:hover { color: rgb(226, 232, 240); }

.gb-ftp-forget-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: rgb(255, 59, 92);
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    padding: 3px 7px;
    border-radius: 6px;
    transition: background 150ms;
    opacity: 0.85;
}
.gb-ftp-forget-btn:hover {
    background: rgba(255, 59, 92, 0.12);
    opacity: 1;
}

/* -- Error -- */
.gb-ftp-modal-error {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: rgb(255, 59, 92);
}

/* -- Footer -- */
.gb-ftp-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid rgb(21, 26, 34);
}

.gb-ftp-cancel-btn {
    background: rgb(21, 26, 34);
    border: 1px solid rgb(30, 37, 48);
    color: rgb(74, 85, 104);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: color 150ms, background 150ms;
}
.gb-ftp-cancel-btn:hover {
    color: rgb(226, 232, 240);
    background: rgb(30, 37, 48);
}

.gb-ftp-confirm-btn {
    padding: 8px 18px !important;
    font-size: 13px !important;
}
