:root {
    --orange-100: #fff3e0;
    --orange-200: #ffe0b2;
    --orange-300: #ffcc80;
    --orange-400: #ffb74d;
    --orange-500: #ffa726;
    --orange-600: #ff9800;
    --orange-700: #fb8c00;
    --orange-800: #f57c00;
    --orange-900: #ef6c00;
}

.navbar {
    background-color: #ffe0b2;
    padding: 5px 10px;
}

.navbar-nav .nav-link {
    color: #ffe0b2;
}

.navbar-nav .nav-link:hover {
    color: #ffe0b2;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(251, 140, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.custom-select {
    font-size: 1rem;
    height: calc(2.25rem + 2px);
    padding: 0.375rem 1.75rem 0.375rem 0.75rem;
    line-height: 1.5;
    color: #495057;
    vertical-align: middle;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.custom-select::placeholder {
    color: #757575; /* Gray 600 */
}

.custom-select:focus {
    border-color: #ffa726; /* Orange 500 */
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(255, 167, 38, 0.25); /* Orange 500 */
}

.select2-container--default .select2-selection--single {
    height: 38px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background-color: #ffe0b2; /* Orange 200 */
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #495057;
    line-height: 36px;
    padding-left: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none;
    height: 36px;
    right: 10px;
}

.select2-container--default.select2-container--open.select2-container--below .select2-dropdown--below {
    top: 100%;
    margin-top: 1px;
    min-width: auto;
    width: auto;
}

.select2-container .select2-selection--single {
    height: 40px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #ced4da;
    background-color: #f8f9fa;
}

.select2-selection__choice {
    background-color: #ffcdd2; /* Pink lighten-3 */
    color: #d32f2f; /* Red darken-2 */
    font-size: 1.2rem;
    border-color: #d32f2f; /* Red darken-2 */
}

.select2-selection__clear {
    position: absolute;
    right: 8px;
    top: 50%;
    color: #d32f2f; /* Red darken-2 */
    font-size: 1.2rem;
}

.btn-edit {
    background-color: #ffa726; /* Cor principal */
    border-color: #ffa726; /* Cor da borda */
    color: white;
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: 5px;
    transition: background-color 0.3s, border-color 0.3s;
    min-width: 80px;
    text-align: center;
}

.btn-edit:hover {
    background-color: #ff9800; /* Cor ao passar o mouse */
    border-color: #ff9800; /* Cor da borda ao passar o mouse */
}

.btn-edit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.5); /* Sombra ao focar */
}

.btn-cancel {
    min-width: 120px;
    border-radius: 20px;
    color: #ffffff;
    background-color: #d84315; /* Deep Orange 600 */
    border-color: #d84315; /* Deep Orange 600 */
    font-size: 1.2rem;
}

.btn-cancel:hover {
    background-color: #bf360c; /* Deep Orange 800 */
    border-color: #bf360c; /* Deep Orange 800 */
}

.btn-save {
    min-width: 120px;
    border-radius: 20px;
    color: #ffffff;
    background-color: #ffb300; /* Amber 700 */
    border-color: #ffb300; /* Amber 700 */
    font-size: 1.2rem;
}

.btn-save:hover {
    background-color: #ff8f00; /* Amber 800 */
    border-color: #ff8f00; /* Amber 800 */
}

.login-btn {
    padding: 5px 10px;
}

.dropdown-item:hover .role-list {
    display: block;
}

.role-list {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px;
    list-style-type: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.role-list li {
    margin: 0;
    padding: 0;
}

.card {
    border: none;
    border-radius: 15px;
    background-color: #ffe0b2; /* Orange 200 */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.card-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.card-body {
    font-size: 1rem;
    color: #ab3d3d;
}

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

.form-control {
    border-radius: 10px;
    background-color: #fff3e0; /* Orange 100 */
    color: #333;
    font-size: 1rem;
}

.btn-primary {
    border-radius: 10px;
    padding: 12px 40px;
    font-size: 1.2rem;
    width: auto;
    background-color: #ffa000; /* Amber 700 */
    border-color: #ffa000; /* Amber 700 */
}

.btn-primary:hover {
    background-color: #ff6f00; /* Amber 800 */
    border-color: #ff6f00; /* Amber 800 */
}

.alert-danger {
    border-radius: 10px;
    padding: 15px;
    font-size: 1.2rem;
    background-color: #ffcdd2; /* Pink lighten-3 */
    color: #880e4f; /* Red darken-3 */
    border-color: #ef9a9a; /* Red lighten-3 */
}

.input-dv {
    max-width: 50px;
    font-size: 1rem;
    padding: 0.375rem 0.75rem;
}

.input-group-append .input-group-text {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.required-field::after {
    content: '*';
    color: red;
    margin-left: 4px;
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.main-container {
    display: block; 
    max-width: 100%;
    background-color: #fff3e0; /* Orange 100 */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.page-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.clear-selection {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.5rem;
    color: red;
    visibility: hidden;
}

.clear-selection:hover {
    color: darkred;
}

.position-relative {
    position: relative;
}

.form-group label {
    margin-bottom: 0;
}

.form-group input[type="text"] {
    width: 150px;
}

.editable-field {
    position: relative;
}

.editable-field input {
    width: calc(100% - 20px);
    padding-right: 30px;
}

.btn-custom {
    background-color: #ff9900;
    border-color: #ff9900;
    color: white;
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: 8px;
    transition: background-color 0.3s, border-color 0.3s;
}

.btn-custom:hover {
    background-color: #e68a00;
    border-color: #e68a00;
}

.btn-custom:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.5);
}

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    background-color: #f8f9fa;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-out;
    z-index: 1000;
    width: 1800px;
    right: -1800px;
}

.sidebar.open {
    right: 0;
}

.sidebar .close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    height: 30px;
    cursor: pointer;
    color: red;
}

.sidebar .history-list {
    padding: 20px;
    overflow-y: auto;
    height: calc(100% - 50px);
}

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

.sidebar .history-list ul li {
    margin-bottom: 10px;
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #ffffff;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

