/* VDU CSS */
/* VDU iskleidziamieji meniu */
.navbar .dropdown-menu {
    background-color: #212529;
    border: 1px solid #495057;
    max-height: 75vh;
    overflow-y: auto;
}
.navbar .dropdown-menu .dropdown-item {
    color: #ffffff;
}
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    background-color: #343a40;
    color: #ffffff;
}
.navbar .dropdown-menu .dropdown-header {
    color: #adb5bd;
}
.navbar .dropdown-menu .dropdown-divider {
    border-color: #6c757d;
}
/* VDU senojo puslapio pagrindas */
body {
    background: #ffffff !important;
    background-image: none !important;
}
.card.border-0.bg-transparent {
    box-shadow: none !important;
}

/* VDU slaptažodžio forma ir taisyklės */
.vdu-password-layout {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    max-width: 1100px;
    margin: 30px auto;
}
.vdu-password-layout > .alert-info {
    flex: 1 1 620px;
    min-width: 0;
    max-width: 650px !important;
    margin: 0 !important;
}
.vdu-password-layout > :not(.alert-info) {
    flex: 0 1 350px;
    min-width: 0;
    margin: 0;
}
@media (max-width: 850px) {
    .vdu-password-layout {
        flex-direction: column;
        align-items: stretch;
    }
    .vdu-password-layout > .alert-info,
    .vdu-password-layout > :not(.alert-info) {
        width: 100%;
        max-width: 100% !important;
    }
}

/* VDU formos ir taisykliu plocio pataisymas */
@media (min-width: 851px) {
    .vdu-password-layout {
        max-width: 1000px;
        gap: 30px;
    }
    .vdu-password-layout > .alert-info {
        flex: 0 0 620px;
        width: 620px;
        max-width: 620px !important;
    }
    .vdu-password-layout > :not(.alert-info) {
        flex: 0 0 350px;
        width: 350px;
        max-width: 350px;
    }
}

/* VDU forma be melyno fono */
.vdu-password-layout > .alert-info {
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #212529 !important;
}
.vdu-password-layout .form-control {
    background-color: #ffffff;
}

/* VDU slaptažodžio reikalavimų išvaizda */
.vdu-password-layout .ppolicy {
    background: #ffffff !important;
    border: 1px solid #dddddd !important;
    border-radius: 4px;
    box-shadow: none !important;
    color: #212529;
}
.vdu-password-layout .ppolicy li {
    padding-top: 6px;
    padding-bottom: 6px;
}
.vdu-password-layout .ppolicy .fa-li.fa-check,
.vdu-password-layout .ppolicy .fa-li.fa-check-circle {
    color: #5D7B57 !important;
}
.vdu-password-layout .ppolicy .fa-li.fa-times,
.vdu-password-layout .ppolicy .fa-li.fa-times-circle {
    color: #A94442 !important;
}

/* VDU slaptažodžio keitimo antraštės */
.title.alert-success {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #212529 !important;
    padding: 18px 0 8px;
    margin-bottom: 0;
}
.title.alert-success h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
}
.card .result.alert-warning:has(+ .vdu-password-layout) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    text-align: center;
    font-size: 24px;
    color: #212529 !important;
    padding: 12px;
}

/* ==========================================================
   VDU slaptažodžio keitimas – galutinis formos išdėstymas
   ========================================================== */

/* Atsiejame keitimo puslapį nuo senųjų flex taisyklių. */
.vdu-password-layout.vdu-change-layout {
    display: block !important;
    width: 100% !important;
    max-width: 1000px !important;
    margin: 35px auto !important;
}

/* Pavadinimas ir įspėjimas – per visą plotį. */
.vdu-change-layout > .vdu-change-title,
.vdu-change-layout > .vdu-change-warning {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

.vdu-change-layout > .vdu-change-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 5px !important;
}

.vdu-change-layout > .vdu-change-warning {
    color: #e00000 !important;
    font-size: 18px;
    margin-bottom: 35px !important;
}

/* Forma kairėje, slaptažodžio politika dešinėje. */
.vdu-change-layout > .vdu-change-content {
    display: grid !important;
    grid-template-columns: minmax(0, 600px) minmax(0, 350px) !important;
    gap: 30px !important;
    align-items: start !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

/* Panaikiname ankstesnius flex pločio apribojimus. */
.vdu-change-layout .vdu-change-form,
.vdu-change-layout .vdu-change-policy {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    flex: none !important;
}

/* Įvedimo laukai. */
.vdu-change-layout .vdu-change-form .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.vdu-change-layout .vdu-change-form .form-control {
    width: 100%;
    min-width: 0;
    border-radius: 0;
}

.vdu-change-layout .vdu-change-form .col-form-label {
    font-weight: 500;
}

/* Slaptažodžio reikalavimų blokas. */
.vdu-change-layout .vdu-change-policy .ppolicy {
    width: 100% !important;
    max-width: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

/* Mygtukas. */
.vdu-change-layout .vdu-change-button {
    font-size: 12px;
    padding: 12px 20px;
    white-space: nowrap;
}

/* Mažesni ekranai. */
@media (max-width: 850px) {
    .vdu-password-layout.vdu-change-layout {
        max-width: 600px !important;
        padding: 0 15px;
    }

    .vdu-change-layout > .vdu-change-content {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 25px !important;
    }

    .vdu-change-layout .vdu-change-form .text-end {
        text-align: left !important;
    }
}

/* VDU: slaptažodžio kūrimo laukų plotis kaip keitimo formoje */
@media (min-width: 851px) {
    .vdu-create-layout .vdu-create-form {
        width: 650px !important;
        max-width: 650px !important;
    }

    .vdu-create-layout .vdu-create-form .row {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .vdu-create-layout .vdu-create-form .col-sm-6 {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
    }

    .vdu-create-layout .vdu-create-form .form-control {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* VDU slaptažodžio kūrimo formos plotis */
.vdu-sendtoken-box {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    max-width: 650px !important;
    width: 100% !important;
    margin: 30px auto !important;
    padding: 0 !important;
}

.vdu-sendtoken-form {
    width: 100% !important;
}

.vdu-sendtoken-form .row {
    align-items: center;
}

.vdu-sendtoken-form .form-control {
    width: 100% !important;
    min-width: 0 !important;
}

@media (max-width: 575px) {
    .vdu-sendtoken-box {
        padding: 0 15px !important;
    }
}


/* VDU slaptažodžio kūrimas – senos versijos išdėstymas */
.vdu-create-page {
    width: min(1100px, 100%);
    margin: 55px auto 30px;
    color: #333;
}

.vdu-create-heading {
    font-size: 24px;
    font-weight: 400;
    text-align: center;
    margin: 0 0 42px;
}

.vdu-create-columns {
    display: grid;
    grid-template-columns: minmax(0, 540px) minmax(0, 445px);
    gap: 30px;
    align-items: start;
    justify-content: center;
}

.vdu-create-form {
    min-width: 0;
}

.vdu-create-field {
    display: grid;
    grid-template-columns: 255px 255px;
    gap: 30px;
    align-items: center;
    margin-bottom: 15px;
}

.vdu-create-field label {
    text-align: right;
    font-weight: 600;
    margin: 0;
}

.vdu-create-field .form-control {
    width: 255px;
    max-width: 100%;
    border-radius: 0;
    min-height: 34px;
}

.vdu-create-submit {
    margin-left: 285px;
    margin-top: 20px;
}

.vdu-create-submit .btn {
    font-size: 12px;
    padding: 12px 22px;
}

.vdu-create-instructions {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px 20px;
    background: #fff;
}

.vdu-create-instructions ul {
    margin: 0;
    padding-left: 20px;
}

.vdu-create-instructions li {
    margin-bottom: 18px;
    line-height: 1.6;
}

.vdu-create-instructions li:last-child {
    margin-bottom: 0;
}

.vdu-create-footer {
    margin: 48px auto 0;
    max-width: 1100px;
    line-height: 1.6;
}

.vdu-create-footer p {
    margin-bottom: 10px;
}

@media (max-width: 850px) {
    .vdu-create-page {
        margin: 30px auto;
        padding: 0 15px;
    }

    .vdu-create-columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .vdu-create-field {
        grid-template-columns: minmax(0, 1fr);
        gap: 5px;
    }

    .vdu-create-field label {
        text-align: left;
    }

    .vdu-create-field .form-control {
        width: 100%;
    }

    .vdu-create-submit {
        margin-left: 0;
    }

    .vdu-create-footer {
        margin-top: 30px;
    }
}

/* Slaptažodžio kūrimas: paslepiame standartinę LTB antraštę */
body:has(.vdu-create-page) .title.alert-success {
    display: none !important;
}

/* Paslepiame standartinę žalią LTB antraštę */
body:has(.vdu-create-page) .title.alert-success,
body:has(.vdu-change-layout) .title.alert-success {
    display: none !important;
}

/* VDU RESPONSIVE V1 */

/* Bendras turinio prisitaikymas */
.card.border-0.bg-transparent,
.card.border-0.bg-transparent > .card-body {
    min-width: 0;
}

.vdu-change-layout,
.vdu-create-page {
    box-sizing: border-box;
}

.vdu-change-layout *,
.vdu-create-page * {
    box-sizing: border-box;
}

/* Kūrimo formos lankstūs stulpeliai */
.vdu-create-field {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.vdu-create-field .form-control {
    width: 100%;
    min-width: 0;
}

.vdu-create-submit {
    margin-left: calc(50% + 15px);
}

/* Ilgų tekstų apsauga */
.vdu-create-instructions,
.vdu-create-footer,
.vdu-change-policy,
.vdu-change-warning {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Planšetės ir siauresni ekranai */
@media (max-width: 991.98px) {
    .vdu-change-layout > .vdu-change-content {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 24px !important;
    }

    .vdu-password-layout.vdu-change-layout {
        max-width: 680px !important;
        padding: 0 12px;
    }

    .vdu-create-page {
        max-width: 680px;
        padding: 0 12px;
    }

    .vdu-create-columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .vdu-create-field {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .vdu-create-field label {
        text-align: left;
    }

    .vdu-create-submit {
        margin-left: 0;
    }
}

/* Telefonai */
@media (max-width: 575.98px) {
    body > .container-fluid {
        padding-left: 8px;
        padding-right: 8px;
    }

    .card.border-0.bg-transparent > .card-body {
        padding: 10px 6px;
    }

    .vdu-password-layout.vdu-change-layout {
        margin: 16px auto !important;
        padding: 0 4px;
    }

    .vdu-create-page {
        margin: 16px auto 24px;
        padding: 0 4px;
    }

    .vdu-change-layout > .vdu-change-title,
    .vdu-create-heading {
        font-size: 22px;
        line-height: 1.3;
    }

    .vdu-create-heading {
        margin-bottom: 24px;
    }

    .vdu-change-layout > .vdu-change-warning {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 24px !important;
    }

    /* Slaptažodžio keitimo laukai vertikaliai */
    .vdu-change-form .row {
        display: block;
        margin-left: 0;
        margin-right: 0;
    }

    .vdu-change-form .row > [class*="col-"] {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
    }

    .vdu-change-form .col-form-label {
        display: block;
        text-align: left !important;
        padding-bottom: 6px;
    }

    .vdu-change-form .form-control,
    .vdu-create-field .form-control {
        width: 100%;
        min-height: 44px;
        font-size: 16px;
    }

    .vdu-change-form .vdu-change-button,
    .vdu-create-submit .btn {
        width: 100%;
        min-height: 44px;
        font-size: 14px;
        white-space: normal;
    }

    .vdu-create-submit {
        margin-top: 20px;
    }

    .vdu-create-instructions {
        padding: 14px;
    }

    .vdu-create-instructions li {
        margin-bottom: 12px;
    }

    .vdu-create-footer {
        margin-top: 24px;
    }

    .vdu-change-layout .vdu-change-policy .ppolicy {
        overflow-wrap: anywhere !important;
    }
}

/* VDU NAVBAR CLASSIC V1 */

/* Tik didesniuose ekranuose – mobilią navigaciją paliekame Bootstrap */
@media (min-width: 992px) {

    .navbar.navbar-dark.bg-dark {
        padding-top: 0;
        padding-bottom: 0;
    }

    .navbar .navbar-collapse {
        min-width: 0;
    }

    .navbar .navbar-nav > .nav-item {
        border-left: 1px solid #383838;
    }

    .navbar .navbar-nav > .nav-item > .nav-link {
        display: flex;
        align-items: center;
        min-height: 62px;
        padding: 0 15px;
        background-color: #242424;
        color: #ffffff;
        white-space: nowrap;
        font-size: 14px;
    }

    .navbar .navbar-nav > .nav-item > .nav-link:hover,
    .navbar .navbar-nav > .nav-item > .nav-link:focus {
        background-color: #303030;
        color: #ffffff;
    }

    .navbar .navbar-nav > .nav-item > .nav-link.active {
        color: #ff2020;
    }

    .navbar .navbar-brand {
        margin-right: 12px;
    }

    .navbar .navbar-brand img {
        max-height: 51px;
    }
}

/* Mobiliame meniu – aiškūs punktai ir paspaudimo zonos */
@media (max-width: 991.98px) {
    .navbar .navbar-nav > .nav-item > .nav-link {
        padding: 12px 14px;
        color: #ffffff;
    }

    .navbar .navbar-nav > .nav-item > .nav-link.active {
        color: #ff4040;
    }
}

/* VDU: slaptažodžio atkūrimo formos laukai */
.vdu-change-layout .vdu-reset-form .input-group {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}
.vdu-change-layout .vdu-reset-form .input-group > .form-control {
    width: 1%;
    flex: 1 1 auto;
    min-width: 0;
}
.vdu-change-layout .vdu-reset-form .input-group > .input-group-text {
    flex: 0 0 auto;
}


/* VDU: slaptažodžio atkūrimo mygtukas */
.vdu-change-layout .vdu-reset-form .vdu-change-button {
    font-size: 14px;
    padding: 12px 20px;
    min-height: 44px;
}

