*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Open Sans";
}

html,body{
    height: 100%;
    background: #ECF0F1;
}

body{
    overflow-x: hidden;
}


/* Pagina de Login */
.box-login{
    max-width: 600px;
    width: 95%;
    padding: 50px 2%;
    background: white;
    position: absolute;
    left: 50%;
    top: 50%;
    box-shadow: 5px 5px 5px #95A5A6;
    border-radius: 10px;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}

.box-login input[type=text],
.box-login input[type=password]
{
    width: 100%;
    height: 40px;
    border: 1px solid #ccc;
    padding-left: 8px;
    margin-top: 8px;
}

.box-login input[type=submit]{
    width: 180px;
    height: 50px;
    display: block;
    margin: 0 auto;
    font-size: 14px;
    cursor: pointer;
    margin-top: 40px;
    background: #BDC4C7;
    color: black;
    border: 0;
    border-radius: 3px;
}

.box-login input[type=submit]:hover{
    background: #2B3D50;
    font-weight: bold;
    color: white;
}

.box-login img{
    text-align: center;
    width: 40%;
    height: 20%;
    display: block;
    margin: 0 auto;
}

.login-incorreto img{
    width: 25px;
    height: 25px;
}

.box-login h2{
    margin-top: 30px;
    color: black;
    font-size: 19px;
    text-transform: uppercase;
    font-weight: normal;
}

/*Fim pagina login*/

/* Painel de controle */

.clear{clear: both;}

.center{padding: 0 2%;margin:0 auto;}

header{
    position: relative;
    left: 300px;
    padding: 10px 0;
    background: #7F8B8D;
    width: calc(100% - 300px);
}

.loggout{
    float: right;
}

.loggout a{
    padding: 0 20px;
    position: relative;
    color: #ECF0F1;
    font-size: 17px;
    text-decoration: none;
}

.loggout a:hover{
    color: darkblue;
}

.loggout a > span{
    font-size: 15px;
    text-decoration: none;
    
}

.menu-btn{
    float: left;
    font-size: 23px;
    cursor: pointer;
}

.menu-wraper{
    width: 300px;
}

.menu{
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
    padding: 10px 0;
    position: fixed;
    left: 0;
    top: 0;
    background: #33495E;
    float: left;
    width: 300px;
}

.box-usuario{
    text-align: center;
}

.avatar-usuario{
    text-align: left;
    display: inline-block;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 3px solid #2F3D42;
    background: #7F8B8D;
}

.avatar-usuario img{
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
}

.imagem-usuario{
    display: inline-block;
    width: 130px;
    height: 130px;
    position: relative;
    border-radius: 50%;
    border: 3px solid #2F3D42;
}

.imagem-usuario img{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.nome-usuario{
    text-align: center;
    margin-top: 10px;
}

.nome-usuario p{
    color: white;
    font-size: 16px;
    font-weight: normal;
}

/* Colocar font em negrito em nome do cargo no painel.
#nome-cargo{
    font-weight: bold;
}
*/

.itens-menu{
    margin-top: 30px;
}

.itens-menu h2{
    text-align: left;
    font-weight: 600;
    font-size: 17px;
    background: #2B3D50;
    color: white;
    padding: 8px;
}

.itens-menu a{
    display: block;
    padding: 8px;
    font-weight: 300;
    font-size: 15px;
    text-decoration: none;
    color: white;
    border-bottom: 2px solid #2B3D50;
}

.itens-menu a:hover{
    background: darkblue;
    font-weight: 500;
}

/*Conteudo main do painel*/

.content{
    width: calc(100% - 300px);
    float: left;
    position: relative;
    left: 300px;
    padding: 10px;
}

.w100{
    width: 100%;
}

.w50{
    width: 49%;
}

.left{
    float: left;
}

.right{
    float: right;
}

.box-content{
    background: white;
    padding: 10px;
    margin-bottom: 10px;
}

.img-principal-painel{
    display: inline;
    height: 30px;
    width: 30px;
    padding: 10px;
}

.box-content img{
    width: 20px;
    height: 20px;
}

.box-content h2{
    display: inline-block;
    text-align: center;
    margin-left: 2px;
}

.box-content form{
    margin: 30px 30px;
    
}

.box-content form label{
    font-size: 17px;
    font-weight: 500;
    color: black;
    display: inline-block;
}

.box-content .form-group{
    margin: 17px 0;
}

.box-content form input[type=text],
.box-content form input[type=number],
.box-content form input[type=password]
{
    margin-top: 8px;
    font-size: 16px;
    font-weight: normal;
    color: #2B3D50;
    width: 100%;
    height: 40px;
    padding-left: 8px;
    border: 1px solid #2B3D50;
}

.box-content form select{
    margin-top: 8px;
    font-size: 16px;
    font-weight: normal;
    color: #2B3D50;
    width: 100%;
    height: 40px;
    padding-left: 8px;
    border: 1px solid #2B3D50;
}


.box-content form input[type=file]{
    margin-top: 8px;
    width: 100%;
    padding: 8px;
    border: 1px solid #2B3D50;
    border-radius: 3px;
    color: #2B3D50;
}

.box-content form input[type=date],
.box-content form input[type=time]
{
    margin-top: 8px;
    font-size: 16px;
    font-weight: normal;
    color: #2B3D50;
    width: 13%;
    height: 40px;
    padding-left: 8px;
    border: 1px solid #2B3D50;
}


.box-content input[type=submit]{
    width: 180px;
    height: 50px;
    margin: 0 auto;
    font-size: 14px;
    cursor: pointer;
    margin-top: 40px;
    background: #BDC4C7;
    color: black;
    border: 0;
    border-radius: 3px;
}

.box-content input[type=submit]:hover{
    background: #2B3D50;
    font-weight: bold;
    color: white;
}

.box-content textarea{
    margin-top: 8px;
    font-size: 16px;
    font-weight: normal;
    color: #2B3D50;
    width: 100%;
    height: 80px;
    padding-left: 8px;
    border: 1px solid #2B3D50;
}

/*Estilizacao botoes radios*/

.form-group-radio {
    margin-top: 15px;
    font-family: Arial, sans-serif;
}

.radio-toggle {
    margin-top: 5px;
    display: flex;
    gap: 10px;
    background: #f2f2f2;
    border-radius: 25px;
    padding: 5px;
    width: fit-content;
}

.radio-toggle input[type="radio"] {
    display: none;
}

.radio-toggle label {
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    color: #555;
    transition: all 0.2s ease-in-out;
}

/* Estado quando o botão está selecionado */
.radio-toggle input[type="radio"]:checked + label {
    background-color: #007bff;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Efeito de hover */
.radio-toggle label:hover {
    background-color: #e0e0e0;
}


.user-detail {
    margin-top: 30px;
    margin-bottom: 18px;
}

.user-detail label {
    font-weight: bold;
    color: #555;
    display: block;
    margin-bottom: 4px;
}

.user-detail p {
    background-color: #fff;
    padding: 10px 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
    color: #222;
    font-size: 15px;
    margin: 0;
}

#midia{
    display: block;
    width: 20%;
}

/* Estilo para o botão voltar pagina admin*/
.btn-voltar {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff; /* Azul */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 20px; /* Distância do conteúdo abaixo */
    transition: background-color 0.3s;
}

.btn-voltar:hover {
    background-color: #0056b3; /* Azul escuro ao passar o mouse */
}


/*Tabelas 
table tr:nth-of-type(0){
    background: aqua;
}
*/

#qtd-reg{
    background-color: yellow;
    font-weight: bold;
}

#qtd-blacklist{
    background-color: darkred;
    color: white;
    font-weight: bold;
}

.table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  margin-top: 5px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  color: #333;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-radius: 5px;
  overflow: hidden;
}

.wraper-table{
    overflow-x: auto;
}

/* Cabeçalho da tabela */
.table thead {
  background-color: #7F8B8D;
  padding: 12px 15px;
  color: white;
  font-weight: 700;
  text-align: center;
}

.table thead th {
  font-weight: 600;
  color: #555;
  border-bottom: 2px solid #ddd;
}

.table thead td {
    padding: 8px;
}


/* Corpo da tabela */
.table tbody td {
  padding: 10px 10px;
  border-bottom: 2px solid #eee;
  border-left: 0.5px solid #eee;
  text-align: left;
}

.btn-acoes{
    text-align: center;
}

/* Linhas com hover */
.table tbody tr:hover {
  background-color: #f0f8ff;
  transition: background-color 0.3s;
}

/* Estilo da coluna de ações */
.table td a.btn {
    margin-right: 5px;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 3px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease-in-out;
}

.btn-primary {
  background-color: #007bff;
  color: white;
  margin-top: 5px;
  margin-bottom: 5px;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
  margin-top: 5px;
  margin-bottom: 5px;
}

.btn-danger:hover {
  background-color: #a71d2a;
}

.btn-primary-edit {
  background-color: darkorange;
  color: white;
  margin-top: 5px;
  margin-bottom: 5px;
}

.btn-primary-edit:hover {
  background-color: #e65100 ;
}



/* Tabela e botoes personalizados para tela de listar usuarios para o admin*/
.btn-details-users {
  background-color: #007bff;
  color: white;
  margin-top: 5px;
  margin-bottom: 5px;
}

.btn-details-users:hover {
  background-color: #0056b3;
}


.btn-edit-users {
  background-color: #dc3545;
  color: white;
  margin-top: 5px;
  margin-bottom: 5px;
}

.btn-edit-users:hover {
  background-color: #a71d2a;
}

/*Estilizacao checkboxes*/
.table tr td input[type="checkbox"] {
    display: flex;
    justify-content: center;
    align-items: center;
  }

.table tr td input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #888;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
  }

  .table tr td input[type="checkbox"]:checked {
    background-color: #4caf50;
    border-color: #4caf50;
  }

  .table tr td input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
    font-size: 14px;
    position: absolute;
    left: 4px;
    top: -1px;
  }

#alerta-status {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
}

.sucesso_lista_usuario {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.erro_lista_usuario {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.dev-status-at {
    display: flex;
}

.dev-status-at form select{
    margin-bottom: 10px;
    width: 55%;
    margin-right: 10px;
}

.dev-status-at button {
    width: 120px;
    height: 45px;
    margin: 0 auto;
    font-size: 12px;
    cursor: pointer;
    background: #BDC4C7;
    color: black;
    border: 0;
    border-radius: 3px;
}

.dev-status-at button:hover{
    background: #2B3D50;
    font-weight: bold;
    color: white;
}

.logo-home img{
    margin: 0;
    padding: 0;
    width: 11%;
    height: 11%;
}

/*- --------- Pagina Home, aniversariante do mes --------------------*/
/* Container geral da Home */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction:column;
    gap: 40px;
}

/* Seções */
.home-container section h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #333;
}

/* ------------------- GRID DE ANIVERSARIANTES ------------------- */
.grid-aniversariantes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card-aniversariante {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.card-aniversariante:hover {
    background-color: #fff5ed;
    transform: translateY(-5px);
}

.card-aniversariante img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.btn-parabens {
    margin-top: 10px;
    padding: 8px 12px;
    background: #ff6600;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-parabens:hover {
    background: #e65c00;
}

#quebra-linha-dconta{
    margin-top: 30px;
    margin-bottom: 25px;
    border: 1.5px solid #222;
    font-weight: bold;
}

.border-conta{
    margin-top: 8px;
    border: 2px solid red;
    border-radius: 1.5%;
    padding-left: 1%;
    padding-right: 1%;
}

/* Estrutura de tabelas e formularios de logs e propostas comercial*/
.add-log{
    margin-top: 5px;
    margin-bottom: 30px;
    padding-bottom: 1px;
    width: 100%;
    /*background-color: #e0f2f1;*/
}

/* --- Animação suave --- */
.fade-box {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.3s ease;
}
.fade-box.show {
    opacity: 1;
    transform: translateY(0);
}

/* Botões principais */
.toggle-btn {
    background: #7F8B8D;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 10px;
    font-weight: 500;
    transition: background 0.3s ease;
    font-size: large;
}
.toggle-btn:hover {
    background: #0056b3;
}

/* Loader da página - colocar no style.css */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loader-msg {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #333;
}

.progress-bar {
    width: 80%;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    height: 20px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: #4caf50;
    transition: width 0.1s linear;
}


/* ------------------- MENSAGENS ------------------- */
.mensagens-colegas{
    margin-top: 30px;
}

.mensagens-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mensagem {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    word-wrap: break-word;
}

.mensagem.empresa {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    border-left: 6px solid #ff6600;
}

.mensagem .cabecalho {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 5px;
}

.mensagem .remetente {
    font-weight: bold;
    color: #333;
}

.alert.birthday {
    background: #fffae6;
    border: 1px solid #ffd166;
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: bold;
    color: #a15c00;
}

hr{
    margin-top: 30px;
    color: #ccc;
}

/* ------------------- FORM MENSAGEM ------------------- */
.mcontainer {
    margin-top: 40px;
    margin-bottom: 40px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    background: #fff;
    display: none; /* sempre começa oculto */
}

.form-mensagem form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#fechar-mensagem{
    float: right;
    border-radius: 5px;
    border: 1px solid #b0b7ff;
    background-color: #ddedff;
    padding: 10px;
    cursor: pointer;
    margin-right: 5px;
}

.form-mensagem textarea {
    width: 100%;
    min-height: 100px;
    border-radius: 10px;
    border: 1px solid #ccc;
    padding: 12px;
    resize: vertical;
}

.form-mensagem .opcoes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form-mensagem .opcoes button {
    flex: 1;
    min-width: 120px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.form-mensagem .opcoes button:hover {
    background: #eee;
}

.btn-enviar {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
    margin-bottom: 10px;
}

.btn-enviar:hover {
    background: #218838;
}

/*Paginacao*/

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  margin-bottom: 30px;
  font-family: 'Segoe UI', sans-serif;
  overflow-x: auto;
  white-space: nowrap;
}

.pagination a {
  color: #007bff;
  padding: 8px 14px;
  margin: 0 4px;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover {
  background-color: #007bff;
  color: white;
}

.pagination a.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
  font-weight: bold;
}


/* Box de alerta */

.box-alerta{
    display: inline-block;
    width: 100%;
    padding: 8px 0;
    text-align: center;
}

.box-alerta img{
    width: 30px;
    height: 30px;
}

.sucesso{
    background: #00e676;
    color: white;
    
}

.erro{
    background: #F75353;
    color: white;
}

.aviso{
    background: darkorange;
    color: white;
    font-weight: bold;
}

.menu-ativo{
    background: darkblue;
}

/*Pseudo codigo css para incluir nome antes ou depois da string, quando a classe 'menu-ativo' estiver ativa
.menu-ativo::before{
    content:'teste';
}
*/

@media screen and (max-width: 768px){

    .menu{
        display: none;
    }

    .content{
        width: 100%;
        left: 0;
    }
    header{
        left: 0;
        width: 100%;
    }

    .menu-wraper{
        width: 250px;
    }

    /*Aplicando responsividade para o modelo/tema de aniversariante do mes*/
    .home-container {
        padding: 15px;
    }

    .form-mensagem .opcoes {
        flex-direction: column;
    }

    .form-mensagem .opcoes button {
        width: 100%;
    }
}

/*Aplicando responsividade para o modelo/tema de aniversariante do mes*/
/* ------------------- RESPONSIVIDADE ------------------- */
@media (max-width: 480px) {
    .card-aniversariante img {
        width: 80px;
        height: 80px;
    }

    .home-container section h2 {
        font-size: 1.2rem;
    }
}