﻿html, body {
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    font-family: 'Roboto', sans-serif;
    line-height: 1.16;
    background-color: #f5f5f5;
}

h1, h2, h3 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}

.alert {
    margin: 20px;
}


.text-primary {
    color: #1b8d1b;
}

.btn {
    /*overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;*/
    white-space: normal; /* permite quebra de linha */
    word-wrap: break-word; /* quebra palavras muito longas */
    overflow-wrap: break-word; /* suporte extra para navegadores modernos */
}

.cor-cuideme {
    /*  background-color: #E61C44 !important;*/
    background-color: #181717 !important;
    color: #ffffff !important;
    border: 0px !important
}

.navbar-inverse {
    margin: 0px !important;
}

.btn-secondary {
    background: #949494;
}

    .btn-secondary:hover {
        background: #8b8686;
    }

.main-wrapper {
    display: flex;
    flex: 1;
    margin-top: 40px;
}

.bg-dark {
    background-color: #0e0505;
}

.mt-10 {
    margin-top: 10px;
}

.mt-25 {
    margin-top: 25px;
}

.w-300 {
    width: 300px
}

.w-400 {
    width: 400px
}

.w-30 {
    width: 30px;
}

.td-preco {
    min-width: 120px;
}

@media (max-width: 770px) {
    .table-responsive {
        width: 420px;
    }
}

.panel-footer {
    text-align: center;
    margin: 0px !important;
    padding: 0px !important;
}

.pagination {
    margin: 10px;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    border-top: solid 1px #e1e1e1;
    color: #8b8686;
    padding: 10px;
    text-align: center;
    background: #f9f9f9;
    z-index: 999;
}

.sidebar {
    position: fixed;
    top: 50px;
    left: 0;
    width: 200px;
    height: 100%;
    background-color: #222;
    padding-top: 10px;
    z-index: 1000;
    transition: all 0.3s ease;
}

    .sidebar a {
        display: block;
        color: #ccc;
        padding: 10px 15px;
        text-decoration: none;
    }

        .sidebar a:hover {
            background-color: #444;
            color: #fff;
        }

    .sidebar .menu-icon {
        margin-right: 10px;
    }

#content {
    margin-left: 200px;
    padding: 20px;
    flex: 1;
    padding-bottom: 60px; /* altura do footer para evitar sobreposição */
    transition: margin-left 0.3s ease;
    margin-bottom: 200px;
}

#toggleSidebar {
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    border: none;
    background: transparent;
    margin-left: 10px;
    padding: 10px 15px 10px 0;
}

.navbar-header {
    display: flex;
    align-items: center;
}

.modal-header {
    background-color: #f9f9f9;
    color: #0e0505;
}

.col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-xs-1, .col-xs-10, .col-xs-11, .col-xs-12, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9 {
    display: flow-root;
}

.form-check {
    display: block;
    min-height: 1.5rem;
    margin-bottom: 0.125rem;
    border: 0;
}

.form-check-input {
    width: 2em;
    height: 1em;
    margin-left: -2.5em;
    background-color: #e9ecef;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 2em;
    position: relative;
    transition: background-color 0.15s ease-in-out;
    border: 1px solid #bababa;
}

    .form-check-input:checked {
        background-color: #4edb78;
    }

    .form-check-input::before {
        content: "";
        position: absolute;
        top: 0.1em;
        left: 0.1em;
        width: 0.8em;
        height: 0.8em;
        background-color: #fff;
        border-radius: 50%;
        transition: transform 0.15s ease-in-out;
    }

    .form-check-input:checked::before {
        transform: translateX(1em);
    }

@media (min-width: 768px) {
    .form-horizontal .control-label {
        padding-top: 7px;
        margin-bottom: 0;
        text-align: left;
    }
}


@media (min-width: 1000px) {
    .form-horizontal .control-label {
        padding-top: 7px;
        margin-bottom: 0;
        text-align: right;
    }
}


#loadingOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1050;
}

    #loadingOverlay .spinner {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: 20px;
        text-align: center;
    }

/* ===================== */
/* NAVBAR PRINCIPAL */
/* ===================== */

.navbar-inverse {
    background-color: #222;
    border: none;
    color: white;
}

    .navbar-inverse .navbar-brand {
        color: #fff;
        font-weight: bold;
        font-size: 18px;
    }

        .navbar-inverse .navbar-brand:hover {
            color: #ccc;
        }

/* ===================== */
/* BOTÃO TOGGLE SIDEBAR */
/* ===================== */

#toggleSidebar {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    margin-left: 10px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

    #toggleSidebar:hover {
        color: #ccc;
    }

#sidebarIcon {
    pointer-events: none;
}

/* ===================== */
/* ITENS DA NAVBAR DIREITA */
/* ===================== */

.navbar-nav {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    height: 50px;
}

    .navbar-nav > li {
        margin-left: 15px;
        position: relative;
    }

/* Ícones */
.navbar-nav {
    color: #fff;
    transition: color 0.3s;
}

    .navbar-nav .fa-shopping-cart {
        font-size: larger;
    }

    .navbar-nav .fa-store {
        font-size: larger;
    }

    .navbar-nav .fa:hover {
        color: #00bfff;
    }

/* Notificação */
.notification a {
    color: #fff;
    text-decoration: none;
    position: relative;
}

    .notification a:hover {
        color: #00bfff;
    }

/* Dropdown do usuário */
.dropdown .nav-link {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

    .dropdown .nav-link:hover {
        color: red;
    }

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #222222;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 99999;
    border-radius: 4px;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 8px 20px;
    color: #e9ecef;
    text-decoration: none !important;
    white-space: nowrap;
}

    .dropdown-item:hover {
        background-color: #a0a0a0;
        color: black;
    }

/* ===================== */
/* RESPONSIVIDADE */
/* ===================== */

@media (max-width: 768px) {
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
    }

        .navbar-nav > li {
            margin-left: 0;
            margin-bottom: 10px;
        }

    .dropdown-menu {
        position: static;
        box-shadow: none;
    }

    #toggleSidebar {
        margin-top: 10px;
    }
}

/* ===================== */
/* ITEM "ENTRAR" DA NAVBAR */
/* ===================== */

.navbar-nav .entrar a {
    color: #fff; /* Cor do texto */
    font-weight: bold; /* Deixar o texto mais destacado */
    text-decoration: none; /* Remover o sublinhado padrão */
    padding: 10px 15px; /* Espaçamento interno */
    border-radius: 4px; /* Bordas arredondadas */
    display: flex;
    align-items: center; /* Alinhar o ícone e o texto */
    transition: background-color 0.3s ease, color 0.3s ease; /* Transições suaves */
}

    .navbar-nav .entrar a:hover {
        background-color: #007bff; /* Cor de fundo ao passar o mouse */
        color: #fff; /* Cor do texto ao passar o mouse */
    }

    /* Adicionando estilo para o ícone */
    .navbar-nav .entrar a .fa {
        margin-right: 5px; /* Espaçamento entre o ícone e o texto */
    }

/* ===================== */
/* RESPONSIVO - PARA TELAS MENORES */
/* ===================== */

@media (max-width: 768px) {
    .navbar-nav .entrar a {
        font-size: 14px; /* Menor tamanho de fonte em telas pequenas */
        padding: 8px 12px; /* Ajustar o padding em telas menores */
    }
}
