﻿html, body {
    min-height: 100vh;
}

#main-nav .navbar-nav li a {
    background-color: transparent;
    color: #fff;
    transition-duration: 0.2s;
}

    #main-nav .navbar-nav li a.active {
        background-color: #fff;
        color: #000 !important;
        padding: 0.3rem 1.3rem !important;
        border-radius: 200px;
    }

header {
    position: relative;
    pointer-events: all !important;
}

    header nav#main-nav {
        height: auto !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

#table-filters .select2 .select2-selection {
    height: 2.35rem !important;
}

#modal-criar-filme .select2 .select2-selection,
#modal-editar-filme .select2 .select2-selection {
    height: 2.6rem;
}

#modal-criar-filme .select2-container--default .select2-selection--multiple .select2-selection__choice__remove,
#modal-editar-filme .select2-container--default .select2-selection--multiple .select2-selection__choice__remove,
#table-filters .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    border-right: none !important;
}

#modal-criar-filme .select2 .select2-selection__rendered,
#modal-editar-filme .select2 .select2-selection__rendered {
/*#table-filters .select2 .select2-selection__rendered {*/
}

    #modal-editar-filme .select2 .select2-selection__choice,
    #modal-criar-filme .select2 .select2-selection__choice {
    /*#table-filters .select2 .select2-selection__choice {*/
        margin-top: 7px !important;
        margin-left: 7px !important;
        border: none !important;
        background-color: #d2d2d2 !important;
        /*border-color: #c4c4c4 !important;*/
        box-shadow: -1px 1px 4px rgba(0, 0, 0, 0.5);
    }

    #table-filters .select2 .select2-selection__choice {
        /*margin-top: 7px !important;*/
        /*margin-left: 7px !important;*/
        border: none !important;
        background-color: #d2d2d2 !important;
        box-shadow: -1px 1px 4px rgba(0, 0, 0, 0.5);
    }

#modal-criar-filme .select2 .select2-search textarea,
#modal-editar-filme .select2 .select2-search textarea {
/*#table-filters .select2 .select2-search textarea {*/
    margin-top: 0.5rem;
}

#modal-criar-filme .select2.select2-container,
#modal-editar-filme .select2.select2-container {
/*#table-filters .select2.select2-container {*/
    font-size: 1rem !important;
}

div .select2-container--default .select2-selection--single .select2-selection__arrow,
div .select2-container--default .select2-selection--single .select2-selection__clear {
    height: 100% !important;
}

div .select2-container--default .select2-selection--single .select2-selection__placeholder,
div .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px !important;
}
div .select2-container--default .select2-search--inline .select2-search__field {
    height: 100% !important;
}

div .select2-container--default .select2-selection--multiple {
    padding-bottom: 10px !important;
}

.modal .select2-container--default .select2-selection--multiple {
    padding-bottom: 20px !important;
}

.modal .select2-container .select2-selection--single {
    height: 100% !important;
}

.modal .select2-container--default .select2-selection--single .select2-selection__clear {
    height: 38px !important;
}


#table-filters #search-div input {
    padding-left: 25px !important;
}

#table-filters #search-div::before {
    content: "\f002";
    font-family: 'fontawesome' !important;
    position: absolute;
    left: 8px;
    font-size: 0.85rem !important;
    opacity: 0.75;
}

input:disabled {
    background-color: #aaa !important;
    border-color: #aaa !important;
}

.reservation-cancelled-bg {
    background-color: #f8d7da !important;
}

.reservation-cancelled-txt {
    color: #f8d7da !important;
}

.reservation-undefined-bg {
    background-color: #eee !important;
}

.reservation-undefined-txt {
    color: #eee !important;
}

.reservation-pendingapproval-bg {
    background-color: #fff3cd !important;
}

.reservation-pendingapproval-txt {
    color: #fff3cd !important;
}

.reservation-reserved-bg {
    background-color: #c1e0ef !important;
}

.reservation-reserved-txt {
    color: #c1e0ef !important;
}

.reservation-paymentfinalized-bg {
    background-color: #d4edda !important;
}

.reservation-paymentfinalized-txt {
    color: #d4edda !important;
}

.reservation-reimbursed-txt {
    color: #ffdbae !important;
}

.reservation-reimbursed-bg {
    background-color: #ffdbae !important;
}

.dropdown-menu .dropdown-item {
    align-items: center;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.edit-modal-poster-div {
    height: 120px;
    width: 100%;
    background-position: 0 50% !important;
    background-size: cover !important;
}

.sel2-dropDownParent {
    position: relative;
}

.modal.blocked input,
.modal.blocked select,
.modal.blocked .select2.select2-container {
    pointer-events: none !important;
    opacity: 0.5;
}

.modal.blocked button[type="submit"]{
    display: none !important;
}

.modal.bo-modal-mobile .modal-dialog {
    min-width: 43rem;
}

.h-inherit {
    height: inherit !important;
}

.min-h-inherit {
    min-height: inherit !important;
}

textarea {
    white-space: pre-wrap;
    font-family: monospace;
    white-space: pre;
}

#dynamicExpandedModal textarea {
    white-space: pre-wrap; /* Preserve whitespace but wrap text */
    word-wrap: break-word; /* Break long words if necessary */
    overflow-wrap: break-word; /* Modern equivalent for breaking long words */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    resize: vertical; /* Allow vertical resize but not horizontal */
}

.red {
    color: firebrick !important;
}

.green {
    color: forestgreen !important;
}

.datatable-target {
    font-size: .92rem !important;
}

.swal2-textarea {
    height: 120px; /* Adjust as needed */
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    font-size: 1rem;
}

.total-registos {
    /*font-size: 1.1rem;*/
    font-weight: bold;
    background-color: #141212;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
}

.registos-atuais-dt {
    font-weight: bold;
}

#configuracoes-nav-tab ul {
    border-bottom: 3px solid #3f51b5 !important;
}

#configuracoes-nav-tab .nav-link {
    color: #141212;
    background-color: transparent;
    font-weight: normal;
    border: none !important;
    transition-duration: 0.2s;
}

    #configuracoes-nav-tab .nav-link.active {
        color: #fff;
        background-color: #3F51B5;
        font-weight: bold;
    }

.text-black {
    color: #141212 !important;
}

.text-black-border {
    border: 2px solid #141212 !important;
}

    .text-black-border.rounded {
        border-radius: 200px !important;
    }

.select2 .select2-selection {
    height: 2.35rem !important;
}

.select2 .select2-selection {
    height: 2.6rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 35px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow,
.select2-container--default .select2-selection--single .select2-selection__clear {
    height: 35px;
}

.faq-main {
    /*display: flex;
    flex-flow: column;
    height: auto;
    padding: 15px 17px 25px 17px;
    box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.25);
    border: 1px solid #e9e9e9;
    position: relative;
    border-radius: 7px;
    background-color: #fff;*/
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 15px;
}

.faq-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 15px;
    box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.25);
    border: 1px solid #e9e9e9;
    border-radius: 7px;
    background-color: #fff;
}

    .faq-main .header {
        display: flex;
        height: auto;
        justify-content: space-between;
    }

        .faq-main .header .remove {
           /* position: absolute;
            right: 15px;
            top: 10px;*/
            color: #141212;
        }

    .faq-main textarea {
        font-size: .85rem !important;
        white-space: pre-wrap; /* Preserve whitespace but wrap text */
        word-wrap: break-word; /* Break long words if necessary */
        overflow-wrap: break-word; /* Modern equivalent for breaking long words */
        overflow-x: hidden; /* Prevent horizontal scrolling */
        resize: vertical; /* Allow vertical resize but not horizontal */
    }

    .faq-main .faq-question {
        display: flex;
        flex-flow: column;
        width: 100%;
        height: auto;
        margin-bottom: 7px;
    }

        .faq-main .faq-question::before {
            content: "P:";
            text-decoration: underline;
        }

        .faq-main .faq-question textarea {
            font-weight: bold;
        }

    .faq-main .faq-answer {
        display: flex;
        flex-flow: column;
        width: 100%;
        height: auto;
    }

        .faq-main .faq-answer::before {
            content: "R:";
            text-decoration: underline;
        }

        .faq-main .faq-answer textarea {
            height: 150px;
        }

#configuracoes-nav-tab textarea {
    white-space: pre-wrap; /* Preserve whitespace but wrap text */
    word-wrap: break-word; /* Break long words if necessary */
    overflow-wrap: break-word; /* Modern equivalent for breaking long words */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    resize: vertical; /* Allow vertical resize but not horizontal */
}

#email-toast .toast-header {
    filter: brightness(0.95);
}

#email-toast .toast-icon {
    font-size: 2rem !important;
}

#email-toast[data-status='pending'] {
    background-color: #fff !important;
    color: #141212 !important;
}

#email-toast[data-status='success'] {
    background-color: forestgreen !important;
    color: #fff !important;
}

#email-toast[data-status='error'] {
    background-color: firebrick !important;
    color: #fff !important;
}

    #email-toast[data-status='pending'] .toast-body,
    #email-toast[data-status='pending'] .toast-header {
        background-color: #fff !important;
        color: #141212 !important;
    }

    #email-toast[data-status='success'] .toast-body,
    #email-toast[data-status='success'] .toast-header {
        background-color: forestgreen !important;
        color: #fff !important;
    }

    #email-toast[data-status='error'] .toast-body,
    #email-toast[data-status='error'] .toast-header {
        background-color: firebrick !important;
        color: #fff !important;
    }

/* Base styles for the status icon */
.status-icon {
    /*margin-left: 10px;*/
    font-size: 1.2rem;
    vertical-align: middle;
    color: gray; /* Default color for other conditions */
    content: "--";
}

.input-icon {
    display: none;
}

/* Checked state: green check-circle */
.input-icon:checked + .status-icon::before {
    font-family: 'FontAwesome';
    content: "\f058"; /* Unicode for check-circle */
    color: forestgreen;
}

/* Not checked state: red times-circle */
.input-icon:not(:checked) + .status-icon::before {
    font-family: 'FontAwesome';
    content: "\f057"; /* Unicode for times-circle */
    color: firebrick;
}

/* Default state (disabled but not specified as checked or unchecked): -- */
.input-icon:disabled:not(:checked):not(:indeterminate) + .status-icon::before {
    /*font-family: 'FontAwesome';*/
    /*content: "\f1ce";*/ /* Unicode for times-circle */
    content: "--"; /* Unicode for times-circle */
    color: #dedede;
}


