html {
  font-size: 16px;
}

@media (min-width: 768px) {
  html {
    font-size: 18px;
  }
}

.logo-img {
    max-width: 250px;
    height: auto;
}

@media (max-width: 768px) {
    .logo-img {
        max-width: 180px;
    }
}

.icon-area i {
    transition: font-size 0.2s ease;
}

@media (max-width: 768px) {
    .icon-area i {
        font-size: 1.75rem !important; /* ou fs-3 (Bootstrap) */
    }
}

.btn {
    border-radius: 0.65rem;
}

.form-control, select {
    border-radius: 0.65rem;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus, .form-select:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

select:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}
body {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    background-color: white;
    flex-shrink: 0;
    transition: width 0.3s ease;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

    .sidebar a {
        color: #56554f;
        text-decoration: none;
        display: block;
        padding: 10px 20px;
    }

        .sidebar a:hover {
            font-weight: bold
        }

    .sidebar.collapsed {
        width: 0;
        overflow: hidden;
    }

.content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.main-header {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

button:focus,
button:active,
.btn:focus,
.btn:active,
input:focus,
input:active,
textarea:focus,
textarea:active,
select:focus,
select:active,
a:focus,
a:active {
    outline: none !important;
    box-shadow: none !important;
}

.btn-primary-site {
    color: #fff;
    background-color: #c4181d;
    border-color: #bb4617;
}
    .btn-primary-site:hover {
        color: #fff;
        background-color: #af1418;
    }

input:focus {
    border-color: #c4181d !important;
}

.modal-header {
    border-bottom: none !important;
}

.modal-footer {
    border-top: none !important;
}


/* Estilo do switch com "bolinha" (thumb) mantendo cor personalizada */
.form-check-input.custom-switch {
    width: 2.3em;
    height: 1.20em;
    background-color: #dee2e6;
    border-radius: 2em;
    border: 1px solid rgba(0, 0, 0, 0.25);
    background-image: none;
    appearance: none;
    position: relative;
    transition: background-color 0.3s, border-color 0.3s;
}

    .form-check-input.custom-switch::before {
        content: "";
        position: absolute;
        top: 0.15em;
        left: 0.2em;
        width: 0.8em;
        height: 0.8em;
        border-radius: 50%;
        background-color: white;
        transition: transform 0.3s ease-in-out;
    }

    .form-check-input.custom-switch:checked {
        background-color: #842029;
        border-color: #842029;
    }

        .form-check-input.custom-switch:checked::before {
            transform: translateX(1.1em);
        }

    .form-check-input.custom-switch:focus {
        box-shadow: none !important;
        outline: none !important;        
    }

/* Remover interferência de Bootstrap */
.form-switch .form-check-input.custom-switch {
    background-image: none !important;
}


.table-material {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 !important;
    font-family: "Roboto", sans-serif;
}

    .table-material thead tr {
        background-color: #f5f5f5;
        text-align: left;
    }

    .table-material th, .table-material td {
        padding: 12px 16px;
        background-color: white;
        border-bottom: 1px solid #e0e0e0;
    }

    .table-material th {
        font-weight: 600;
        color: #424242;
        font-size: 14px;
        text-transform: uppercase;
    }

    .table-material tbody tr {
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
        transition: background-color 0.2s ease;
        border-radius: 4px;
    }

        .table-material tbody tr:hover {
            background-color: #f1f1f1;
        }

    .table-material tbody td:first-child {
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
    }

    .table-material tbody td:last-child {
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
    }

.card {
    box-shadow: 5px 5px 15px 0px #cecece;
    border-radius: 0.65rem;
}

.form-check-input:checked {
    background-color: #c4181d !important;
    border-color: #c4181d !important;
}


.accordion-button {
    background-color: #ffe5e6 !important;
    color: #dc3545 !important;
}

    .accordion-button::after {
        color: #dc3545 !important;
    }