/* Only style the button if JS confirmed it says "Pateikti" */
.btn-green-submit {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

.btn-green-submit:hover,
.btn-green-submit:active,
.btn-green-submit:focus {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}
/* --- SIDEBAR CONFIG --- */
.moved-sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    height: 100vh !important;
    width: 300px !important;
    padding: 30px 15px !important;
    background: #f8f9fa !important;
    border-right: 1px solid #dee2e6 !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    display: block !important;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1) !important;
    
    transform: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* List Reset */
.moved-sidebar ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.moved-sidebar li {
    list-style: none !important;
    margin: 5px 0 !important;
    padding: 0 !important;
}

/* --- GROUP HEADERS (NEW) --- */
.sidebar-group-header {
    margin-top: 20px !important;    /* Space above new group */
    margin-bottom: 8px !important;  /* Space below title */
    padding-left: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #888 !important;         /* Muted gray color */
    letter-spacing: 0.5px !important;
}

/* --- LINKS --- */
.moved-sidebar li a {
    white-space: normal !important;      
    word-wrap: break-word !important;    
    overflow: visible !important;
    height: auto !important;
    padding: 12px 15px !important;
    line-height: 1.4 !important;
    display: block !important;
    text-decoration: none !important;
    color: #333 !important;
    border-radius: 6px !important;
    transition: background 0.2s;
}

.moved-sidebar li a:hover {
    background: #e9ecef !important;
}

.moved-sidebar li.index-item-current a {
    background: #0d6efd !important;
    color: white !important;
}

/* --- WIDE CONTENT --- */
#outerframeContainer.shifted-content {
    margin-left: 300px !important;
    width: calc(100% - 300px) !important;
    display: flex !important;
    justify-content: center !important;
    padding-top: 40px !important;
}

#dynamicReloadContainer {
    width: 95% !important;
    max-width: 1600px !important;
    padding: 0 40px !important;
    margin: 0 auto !important;
}

/* Hide duplicate elements */
.index-wrapper, 
.index-menu-full { display: none !important; }

/* --- MOBILE --- */
#custom-mobile-toggle { display: none; }
.mobile-close-btn { display: none; }

@media (max-width: 900px) {
    .moved-sidebar {
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        width: 280px !important;
    }
    .moved-sidebar.mobile-open {
        transform: translateX(0) !important;
    }
    #outerframeContainer.shifted-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding-top: 60px !important;
    }
    #dynamicReloadContainer {
        width: 100% !important;
        padding: 0 15px !important;
    }
    #custom-mobile-toggle {
        display: block;
        position: fixed;
        top: 70px;
        left: 15px;
        z-index: 9000;
        background: white;
        border: 1px solid #ccc;
        padding: 8px 12px;
        border-radius: 4px;
        font-size: 24px;
        cursor: pointer;
        line-height: 1;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .mobile-close-btn {
        display: block;
        padding: 15px;
        margin-bottom: 10px;
        text-align: right;
        font-weight: bold;
        color: #666;
        cursor: pointer;
        border-bottom: 1px solid #eee;
    }
    .sidebar-overlay {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
        opacity: 0;
        transition: opacity 0.3s;
    }
    .sidebar-overlay.show {
        opacity: 1;
    }
}