﻿@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,400&display=swap');

:root {
    --color-blue-background: #2687E9;
    --color-blue-background-dark: #1c75ce;
    --color-main: #ED1722;
    --color-primary: #102034;
    --color-secondary: #CCCCCC;
    --color-tertiary: #FAFAFA;
    --color-quartenary: #777777;
    --color-success: #3EBC12;
    --color-danger: #EF510E;
    --color-bg-1: #FAFAFA;
    --color-bg-stroke-1: #E5E5E5;
}

body {
    background-color: #FAFAFA;
}

header {
    border-bottom: 1px solid;
    border-color: var(--color-bg-stroke-1);
    background: var(--color-blue-background);
    display: flex;
    min-height: 61px;
}

    header .empresa-info-container {
        padding: 15px;
        overflow: hidden;
        max-width: 300px;
        text-align: center;
    }

    header .burger-icon-container {
        color: white;
        font-size: 30px;
        cursor: pointer;
        padding: 15px;
        display: none;
        width: 100%;
    }


    header nav img.logo {
        height: 40px;
        margin: 10px;
    }

    header nav .nav-item {
        display: inline;
    }

    header nav a.btn {
        color: white;
        font-weight: bold;
        display: table-cell;
        vertical-align: middle;
        height: 61px;
        border-top: 4px solid var(--color-blue-background);
        border-radius: 0;
    }

    header .logout-link {
        padding: 15px;
    }

        header .logout-link h4 {
            color: white;
            font-weight: bold;
        }

/*Dropdown*/
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    background: var(--color-blue-background-dark);
    position: absolute;
    min-width: 200px;
    left: 0px;
    display: none;
    overflow: hidden;
    z-index: 2 !important;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown:hover a.btn {
    color: white;
    border-top-color: white;
    background: var(--color-blue-background-dark);
}

.nav-dropdown-menu a {
    width: 100%;
    display: block;
    padding: 15px;
    color: white;
}

    .nav-dropdown-menu a:hover {
        background: #EEE;
    }

/*Responsividade do menu*/
@media screen and (max-width: 768px) {

    header {
        height: 61px;
        overflow: hidden;
        display: block;
    }

    .header-menu-shown {
        height: auto;
        overflow: visible;
    }

    header .empresa-info-container {
        display: none;
    }

    header .burger-icon-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: bold;
    }

        header .burger-icon-container p {
            font-size: 14px;
            color: white;
        }

    header nav a.btn {
        width: 100%;
        display: block;
        text-align: left;
    }

    header .logout-link {
        display: block;
        width: 100%;
        text-align: right;
    }

    .nav-dropdown-menu {
        position: relative;
        width: 100%;
    }
}


/*Select2*/
span.select2-selection {
    border-color: #e7e7e7 !important;
    height: 33px !important;
    border-radius: 3 !important;
    padding: .375rem .75rem !important;
    border: solid 1px var(--color-quartenary);
}

    span.select2-selection > span {
        padding-left: 0 !important;
    }


span.select2-selection__arrow {
    height: 100% !important;
}

    span.select2-selection__arrow > b {
        left: .375rem !important;
    }

/*Dashboard*/
.dashboard-hover:hover {
    background-color: rgb(251, 251, 251);
}

/*Img effects*/
.img-overlay {
    position: relative;
    display: block;
}

    .img-overlay:hover .overlay-content {
        display: block;
    }

.overlay-content {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .4);
    position: absolute;
    top: 0px;
    left: 0px;
    display: none;
}

.overlay-center {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-block;
}

.overlay-content .overlay-button {
    color: rgb(229, 229, 229);
    cursor: pointer;
    font-size: 30px;
    background-color: transparent;
    border: none;
}

    .overlay-content .overlay-button:hover {
        color: white;
    }

/*Full screen img*/
.modal-visible {
    display: block;
}

.modal-container {
    position: fixed;
    background-color: rgba(0, 0, 0, .4);
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    overflow: auto;
    padding: 30px;
    z-index: 1;
    display: none;
}

.modal-img {
    max-height: 110%;
    position: relative;
    left: 60%;
    transform: translate(-50%, 0%);
}

.modal-close-btn {
    position: relative;
    float: right;
    background-color: transparent;
    border: none;
    font-size: 50px;
    color: white;
}

@media screen and (max-width: 500px) {
    .modal-img {
        transform: translate(-50%, 0%)
    }

    .modal-container {
        padding: 15px;
    }
}

label.control-label {
    width: 100%;
}

/*modal*/

.modal {
    background-color: rgba(0, 0, 0, .5);
}

span.select2-container {
    width: 100% !important;
}


/*tab-pane*/

.tab-pane {
    max-width: 100%;
}


.image-input-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.image-input {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/*para tables que nao usam DataTables. É pra evitar que o conteudo da table estoure*/
.fixTable th {
    width: 1px !important;
    white-space: nowrap;
}

/**/
.fixTable td {
    width: 1px !important;
    white-space: nowrap;
}

/*Ajusta automaticamente a table, impedindo que a coluna quebre, APENAS para tables que utilizam DataTables*/
.dataTables_wrapper > div:nth-child(2) {
    overflow: auto;
}
/********************************************/
body.dark-mode {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Barra lateral fixa */
.fixed-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 250px !important;
    background-color: #f8f9fa !important;
    overflow-y: auto !important;
    padding-top: 20px !important;
}

/* Conteúdo principal com rolagem */
.scroll-content {
    overflow-y: auto !important;
    padding: 20px !important;
    height: calc(100vh - 40px) !important;
}

/* Estilo do rodapé */
.footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: #f8f9fa !important;
    text-align: center !important;
    padding: 10px !important;
    font-size: 14px !important;
    color: #6c757d !important;
}

/* Sidebar Styling */
.left-sidebar {
    background-color: #2c3e50 !important;
    color: #ecf0f1 !important;
    padding: 30px 0 !important;
    border-radius: 5px !important;
    overflow: hidden !important;
}

    .left-sidebar .form-group img {
        border-radius: 50% !important;
        width: 100px !important;
        height: 100px !important;
        object-fit: cover !important;
        margin: 10px auto !important;
        display: block !important;
    }

    .left-sidebar h6 {
        color: #ecf0f1 !important;
        font-weight: bold !important;
    }

.modern-sidebar {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: Arial, sans-serif !important;
    background-color: #2c3e50 !important;
    color: #ecf0f1 !important;
}

    .modern-sidebar .nav-item {
        padding: 15px 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        transition: background-color 0.3s !important;
    }

        .modern-sidebar .nav-item:hover {
            background-color: #34495e !important;
        }

        .modern-sidebar .nav-item a {
            display: flex !important;
            align-items: center !important;
            text-decoration: none !important;
            color: #ecf0f1 !important;
            font-weight: 500 !important;
        }

            .modern-sidebar .nav-item a i {
                margin-right: 10px !important;
                font-size: 18px !important;
            }

    .modern-sidebar .nav-label {
        padding: 15px 20px !important;
        font-size: 14px !important;
        text-transform: uppercase !important;
        color: #bdc3c7 !important;
    }

    .modern-sidebar .collapse {
        background-color: #ffffff !important;
    }

        .modern-sidebar .collapse li {
            padding: 10px 20px !important;
            border-bottom: 1px solid #dcdcdc !important;
        }

            .modern-sidebar .collapse li a {
                color: #34495e !important;
                text-decoration: none !important;
                display: block !important;
                font-weight: 500 !important;
            }

            .modern-sidebar .collapse li:hover {
                background-color: #f7f7f7 !important;
            }

            .modern-sidebar .collapse li:last-child {
                border-bottom: none !important;
            }

.nav-devider {
    margin: 15px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.input-group {
    padding: 10px 15px !important;
}

    .input-group .form-control {
        border-radius: 20px !important;
        border: none !important;
        box-shadow: none !important;
    }

.input-group-text {
    background-color: #34495e !important;
    border: none !important;
    color: #ecf0f1 !important;
}

.sidebar-nav .nav-link {
    color: #ecf0f1 !important;
    display: flex !important;
    align-items: center !important;
    padding: 10px 15px !important;
    border-bottom: 1px solid #2c3e50 !important;
}

    .sidebar-nav .nav-link:last-child {
        border-bottom: none !important;
    }

.sidebar-nav .nav-item:hover {
    background-color: #34495e !important;
}

.container-fluidTop {
    background: linear-gradient(to bottom, #102c44, #1b3d5b, #2a4f6e, #355f7c) !important;
    color: #ffffff !important;
    height: auto !important;
}

.container-fluid {
    background: linear-gradient(to bottom, #fafafa, #f0f0f0, #e6e6e6) !important;
    color: #333333 !important;
    border-radius: 10px !important;
    padding: 5px 10px !important;
}

    .container-fluid label {
        color: #000000 !important;
        font-weight: bold !important;
        font-size: 1.1em !important;
    }

    .container-fluid input[type="text"],
    .container-fluid input[type="number"],
    .container-fluid input[type="email"],
    .container-fluid input[type="password"],
    .container-fluid input[type="date"],
    .container-fluid input[type="datetime-local"],
    .container-fluid textarea,
    .container-fluid select {
        border: 1px solid #000000 !important;
        border-radius: 5px !important;
        padding: 5px !important;
        font-size: 1em !important;
        background-color: #f0f0f0 !important;
        color: #333333 !important;
    }

        .container-fluid input[type="text"]:focus,
        .container-fluid input[type="number"]:focus,
        .container-fluid input[type="email"]:focus,
        .container-fluid input[type="password"]:focus,
        .container-fluid input[type="date"]:focus,
        .container-fluid input[type="datetime-local"]:focus,
        .container-fluid textarea:focus,
        .container-fluid select:focus {
            border-color: #555555 !important;
            outline: none !important;
            box-shadow: 0px 0px 5px rgba(85, 85, 85, 0.5) !important;
        }

.select2-container--default .select2-selection--single {
    border: 1px solid #000000 !important;
    border-radius: 5px !important;
    padding: 8px !important;
    font-size: 1em !important;
    background-color: #f0f0f0 !important;
    color: #333333 !important;
}

.select2-selection__rendered {
    color: #333333 !important;
    font-weight: bold !important;
}

.select2-selection__arrow {
    color: #333333 !important;
    padding: 0 5px !important;
}

.container-fluid .form-group {
    margin-bottom: 15px !important;
}

.nav-link {
    color: #000080 !important;
    font-weight: bold !important;
    font-size: 1.1em !important;
    text-decoration: none !important;
    padding: 8px 12px !important;
}

    .nav-link:hover {
        color: #0056b3 !important;
        text-decoration: underline !important;
    }

.tab-content,
.nav-tabs .nav-link.active {
    font-weight: bold !important;
    background-color: #f0f0f0 !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    border-radius: 5px !important;
}

.table th,
.table td {
    color: #333333 !important;
    font-weight: bold !important;
    padding: 2px 3px !important;
    border: 1px solid #cccccc !important;
    background-color: #ffffff !important;
    font-size: 0.9em !important;
}

.table thead th {
    background-color: #cccccc !important;
    font-size: 1.1em !important;
}

.table tbody tr:hover td {
    background-color: #f5f5f5 !important;
}

.button,
.btn {
    background-color: #0056b3 !important;
    color: #ffffff !important;
    border: 1px solid #004080 !important;
    border-radius: 5px !important;
    padding: 2px 8px !important;
    font-size: 1em !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease, color 0.3s ease !important;
}

    .button:hover,
    .btn:hover {
        background-color: #004080 !important;
        color: #ffffff !important;
    }

    .button:focus,
    .btn:focus {
        outline: none !important;
        box-shadow: 0px 0px 5px rgba(0, 86, 179, 0.5) !important;
    }

.nav-link.dropdown-toggle {
    background: linear-gradient(to bottom, #0f2027, #203a43, #2c5364) !important;
    color: #ffffff !important;
    border-radius: 5px !important;
    padding: 5px 10px !important;
}

    .nav-link.dropdown-toggle:hover {
        background: linear-gradient(to bottom, #203a43, #2c5364, #0f2027) !important;
    }

.modern-sidebar .nav-item a[href*="AcessoRapido"] {
    background-color: #ff5733 !important;
    color: #ffffff !important;
    font-family: 'Roboto', sans-serif !important;
    font-weight: bold !important;
    border-radius: 5px !important;
    transition: background-color 0.3s, transform 0.3s !important;
    display: flex !important;
    align-items: center !important;
}

    .modern-sidebar .nav-item a[href*="AcessoRapido"]:hover {
        background-color: #ff6f61 !important;
        transform: scale(1.05) !important;
    }

.highlight-green {
    font-weight: bold !important;
    color: #ffffff !important;
    background: green !important;
}

#main-wrapper {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
}