﻿/* 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 */

