﻿/* IzNotification */
.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 300px;
    z-index: 1000;
}

.notification {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin-top: 15px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    color: white;
    font-size: 14px;
    animation: fadeIn 0.3s ease-in-out;
}

    .notification.success {
        background: #4CAF50;
    }

    .notification.info {
        background: #2196F3;
    }

    .notification.warning {
        background: #FF9800;
    }

    .notification.error {
        background: #F44336;
    }

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fim IzNotification */


/* Logins / Register / RecoverPassword / ChangePassword */

.center-card {
    width: 100%;
    text-align: -webkit-center;
}

.centered-card {
    max-width: 500px;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.centered-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #333;
}

.form-row {
    width: 100%;
    text-align: left;
    margin-bottom: 1rem;
}

.form-label {
    font-weight: bold;
    font-size: 14px;
    color: #555;
    display: block;
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.form-links {
    text-align: right;
    font-size: 14px;
}

    .form-links a {
        color: #007bff;
        text-decoration: none;
        transition: color 0.3s;
    }

        .form-links a:hover {
            color: #0056b3;
        }

.submit-button {
    justify-self:center;
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
    width: 50%;
    margin-top: 20px;
}

    .submit-button:hover {
        background-color: #218838;
    }

/* Fim Logins / Register / RecoverPassword / ChangePassword */

/*UserPermsPage UserProfilesConfigsPage*/

.card {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
}

.form-row {
    margin-bottom: 20px;
}

.form-label {
    font-weight: bold;
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 12px 15px; 
    font-size: 1.1rem; 
    border-radius: 8px; 
    border: 2px solid #ccc; 
    background-color: #f8f9fa; 
    font-family: 'Arial', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    
    .form-control:focus {
        border-color: #6c757d; 
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); 
        outline: none; 
    }

    
    .form-control option {
        padding: 12px 15px; 
        font-size: 1.1rem; 
        font-family: 'Arial', sans-serif;
        background-color: #f8f9fa; 
        color: #495057; 
        transition: background-color 0.2s ease; 
    }

       
        .form-control option:hover {
            background-color: #e2e6ea; 
        }

        
        .form-control option:disabled {
            color: #6c757d; 
            background-color: #e9ecef; 
        }

            
            .form-control option:disabled[selected] {
                color: #6c757d; 
                font-weight: bold; 
            }

.custom-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 30px; /* Space for the arrow */
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"%3E%3Cpath fill="none" stroke="black" stroke-width="2" d="M2 6l6 6 6-6" /%3E%3C/svg%3E') no-repeat right 10px center;
    background-size: 12px 12px; /* Adjust the arrow size */
}

.row {
    display: flex;
    align-items: center;
}

.btn {
    width: 45px;
    height: 45px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin-left: 10px;
}

    .btn i {
        font-size: 18px;
        margin-right: 8px;
    }

.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
}

    .btn-primary:hover {
        background-color: #0056b3;
    }

.btn-warning {
    background-color: #ffc107;
    color: white;
    border: none;
}

    .btn-warning:hover {
        background-color: #e0a800;
    }

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
}

    .btn-danger:hover {
        background-color: #c82333;
    }

.popup {
    position: fixed;
    top: 22%;
    left: 85%;
    transform: translateX(-50%);
    background-color: white;
    border: 1px solid #ced4da;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 350px;
    z-index: 1000;
}

    .popup input {
        width: 100%;
        padding: 10px;
        font-size: 1rem;
        margin-bottom: 10px;
        border-radius: 5px;
        border: 1px solid #ced4da;
    }

    .popup ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

        .popup ul li {
            padding: 10px;
            border-bottom: 1px solid #f1f1f1;
        }

            .popup ul li button {
                background-color: #007bff;
                color: white;
                padding: 5px 10px;
                border: none;
                border-radius: 5px;
                cursor: pointer;
            }

                .popup ul li button:hover {
                    background-color: #0056b3;
                }

.modal.show .modal-dialog { /* Popup de confirmação de eliminação*/
    top: 35%;
}

.flexModPerms {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    flex-direction: row;
}

.module-permissions,
.permissions {
    height:430px;
    background-color: white;
    border: 1px solid #ced4da;
    padding: 20px;
    margin-top: 20px;
    border-radius: 5px;
}

    .module-permissions h4,
    .permissions h4 {
        font-size: 1.2rem;
        font-weight: bold;
        margin-bottom: 10px;
        color: #343a40;
    }

    .module-permissions::-webkit-scrollbar {
        width: 6px; 
    }

    .module-permissions::-webkit-scrollbar-track {
        background: transparent; 
    }

    .module-permissions::-webkit-scrollbar-thumb {
        background: #888; 
        border-radius: 10px;
    }

        .module-permissions::-webkit-scrollbar-thumb:hover {
            background: #555; 
        }

    .module-permissions::-webkit-scrollbar-corner {
        background: transparent; 
    }

table.table {
    width: 100%;
    border-collapse: collapse;
}

    table.table th,
    table.table td {
        padding: 10px;
        text-align: left;
        border-bottom: 1px solid #ddd;
    }

    table.table th {
        background-color: #f1f1f1;
        color: #495057;
    }

.permissions {
    width: 35%;
    max-height: 360px;
    background-color: #fdfdfd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

    .permissions h4 {
        font-size: 1.25rem;
        font-weight: bold;
        color: #343a40;
        margin-bottom: 15px;
    }

    .permissions div {
        margin-bottom: 10px;
        display: flex;
        align-items: center;
    }

    .permissions input[type="checkbox"] {
        margin-right: 10px;
        width: 20px;
        height: 20px;
    }

    .permissions label {
        font-size: 1rem;
        color: #495057;
    }

    .permissions button {
        width: 96%;
        padding: 10px;
        margin-top: 10px;
        font-size: 1rem;
        font-weight: bold;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }

    .permissions .btn-info {
        background-color: #3e9108;
        color: white;
        border: none;
    }

        .permissions .btn-info:disabled {
            background-color: #a9cfd5;
        }

    .permissions .btn-danger {
        background-color: #c82333;
        color: white;
        border: none;
    }

        .permissions .btn-danger:disabled {
            background-color: #dc3545;
        }

    .permissions button:disabled {
        cursor: not-allowed;
        opacity: 0.6;
    }

    .permissions .btn-info:hover:not(:disabled),
    .permissions .btn-danger:hover:not(:disabled) {
        opacity: 0.9;
    }

    .permissions button:focus {
        outline: none;
    }

    .permissions button:active {
        transform: scale(0.98);
    }

/*Fim UserPermsPage UserProfilesConfigsPage */

/* Module Tree */

tr {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

tr:hover {
    background-color: #f1f1f1;
}

td {
    padding-left: 20px;
    font-family: Arial, sans-serif;
}

span {
    font-size: 18px;
    margin-right: 10px;
    cursor: pointer;
}

td span + span {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.ModuleTree {
    margin-left: 20px;
}

    .ModuleTree li {
        list-style-type: none;
    }

        .ModuleTree li::before {
            content: "\2022";
            font-size: 16px;
            margin-right: 10px;
            color: #007bff;
        }

tr.disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.mud-icon-button-label{
    margin:0;
}

/* Fim Module Tree */

/* Novo ecrã de autenticação */
.auth-shell {
    position: relative;
    display: grid;
    place-items: center;
    min-height: calc(100vh - 64px);
    width: calc(100% + 32px);
    margin: -16px;
    padding: clamp(24px, 5vw, 64px);
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(32, 162, 125, .12), transparent 34%),
        radial-gradient(circle at 92% 86%, rgba(22, 96, 78, .11), transparent 30%),
        #f3f7f6;
    font-family: Inter, Roboto, "Segoe UI", sans-serif;
}

.auth-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(4px);
    opacity: .6;
    pointer-events: none;
}

.auth-glow-one {
    top: -220px;
    right: 4%;
    background: rgba(53, 193, 151, .13);
}

.auth-glow-two {
    bottom: -250px;
    left: 2%;
    background: rgba(15, 79, 66, .1);
}

.auth-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(330px, .92fr) minmax(400px, 1.08fr);
    width: min(980px, 100%);
    min-height: 610px;
    overflow: hidden;
    border: 1px solid rgba(16, 67, 56, .08);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(22, 63, 54, .14);
}

.auth-brand-panel {
    display: flex;
    flex-direction: column;
    padding: 46px;
    color: #fff;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, .08), transparent 42%),
        linear-gradient(145deg, #0a3028 0%, #12604e 58%, #178066 100%);
}

.auth-logo {
    display: inline-flex;
    align-items: baseline;
    width: fit-content;
    color: #fff;
    text-decoration: none;
    letter-spacing: -.03em;
}

.auth-logo:hover {
    color: #fff;
}

.auth-logo-mark {
    margin: 0;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

.auth-logo-name {
    margin: 0 0 0 3px;
    color: #a8ecd7;
    font-size: 16px;
    font-weight: 500;
}

.auth-brand-copy {
    margin: auto 0 34px;
}

.auth-eyebrow,
.auth-kicker {
    display: block;
    margin: 0 0 14px;
    color: #9de2cc;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.auth-brand-copy h1 {
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(38px, 4vw, 52px);
    font-weight: 750;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.auth-brand-copy h1:focus {
    outline: none;
}

.auth-brand-copy p {
    max-width: 340px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 16px;
    line-height: 1.65;
}

.auth-feature-list {
    display: grid;
    gap: 12px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, .84);
    font-size: 14px;
}

.auth-feature-list div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-feature-list span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    color: #b7f6e2;
    font-size: 12px;
}

.auth-brand-panel small {
    color: rgba(255, 255, 255, .5);
    font-size: 12px;
}

.auth-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(42px, 6vw, 72px);
    background: #fff;
}

.auth-mobile-logo {
    display: none;
}

.auth-kicker {
    margin-bottom: 10px;
    color: #17735d;
}

.auth-form-heading h2 {
    margin: 0 0 10px;
    color: #132d27;
    font-size: 34px;
    font-weight: 750;
    letter-spacing: -.035em;
}

.auth-form-heading p {
    margin: 0 0 30px;
    color: #71817d;
    font-size: 15px;
}

.auth-alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
}

.auth-alert-error {
    border-color: #fecaca;
    color: #991b1b;
    background: #fff1f2;
}

.auth-alert-success {
    border-color: #bbf7d0;
    color: #166534;
    background: #f0fdf4;
}

.auth-form {
    display: grid;
    gap: 20px;
}

.auth-field {
    display: grid;
    gap: 8px;
    color: #2e443f;
    font-size: 13px;
    font-weight: 700;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
}

.auth-input-wrap svg {
    position: absolute;
    left: 15px;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #80918d;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    pointer-events: none;
}

.auth-input-wrap input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 46px;
    border: 1px solid #d8e3e0;
    border-radius: 12px;
    outline: none;
    color: #18342d;
    background: #fbfdfc;
    font: inherit;
    font-size: 15px;
    font-weight: 450;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-input-wrap input::placeholder {
    color: #9ba8a5;
}

.auth-input-wrap input:focus {
    border-color: #249075;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(36, 144, 117, .11);
}

.auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #60716d;
    font-size: 13px;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.auth-remember input {
    width: 16px;
    height: 16px;
    accent-color: #17735d;
}

.auth-remember span {
    margin: 0;
    font-size: 13px;
    white-space: nowrap;
}

.auth-form-options a,
.auth-register a,
.auth-legal a {
    color: #17735d;
    font-weight: 700;
    text-decoration: none;
}

.auth-form-options a:hover,
.auth-register a:hover,
.auth-legal a:hover {
    text-decoration: underline;
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #12664f, #1b8a6e);
    box-shadow: 0 12px 24px rgba(23, 115, 93, .2);
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 28px rgba(23, 115, 93, .27);
    filter: brightness(1.04);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-submit svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.auth-register {
    margin: 25px 0 0;
    color: #71817d;
    text-align: center;
    font-size: 13px;
}

.auth-legal {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    color: #a1aca9;
    font-size: 11px;
}

.auth-legal a {
    color: #80908c;
    font-weight: 500;
}

body:has(.auth-shell) .mud-appbar {
    display: none;
}

body:has(.auth-shell) .mud-main-content {
    margin-top: 0 !important;
}

body:has(.auth-shell) .auth-shell {
    min-height: 100vh;
}

@media (max-width: 820px) {
    .auth-shell {
        padding: 24px;
    }

    .auth-card {
        grid-template-columns: 1fr;
        width: min(520px, 100%);
        min-height: auto;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-mobile-logo {
        display: block;
        margin: 0 0 32px;
        color: #123b31;
        font-size: 25px;
        font-weight: 800;
        letter-spacing: -.04em;
    }

    .auth-mobile-logo span {
        margin: 0 0 0 3px;
        color: #22846b;
        font-size: 14px;
        font-weight: 550;
    }
}

@media (max-width: 520px) {
    .auth-shell {
        width: calc(100% + 16px);
        margin: -8px;
        padding: 12px;
        place-items: start center;
    }

    .auth-card {
        border-radius: 20px;
    }

    .auth-form-panel {
        padding: 32px 24px;
    }

    .auth-form-heading h2 {
        font-size: 29px;
    }

    .auth-form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

.admin-top-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    margin-right: 8px;
    padding: 0 13px;
    border: 1px solid #cfe0da;
    border-radius: 10px;
    color: #17664f;
    background: #f4faf8;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.route-access-denied {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 100px);
    padding: 30px;
    text-align: center;
    background: #f4f8f6;
}

.route-access-denied > div {
    width: min(480px, 100%);
    padding: 44px;
    border: 1px solid #dde9e5;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(25,70,58,.1);
}

.route-access-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 16px !important;
    border-radius: 50%;
    color: #9a5b18;
    background: #fff3d8;
    font-size: 24px !important;
    font-weight: 900;
}

.route-access-denied h1 { margin: 0 0 10px; color: #173d33; }
.route-access-denied p { color: #6f817c; }
.route-access-denied a { display: inline-flex; margin-top: 10px; padding: 11px 17px; border-radius: 10px; color: #fff; background: #17664f; font-weight: 700; text-decoration: none; }
