@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

body{
  display: flex;
  align-items: center;
/*  justify-content: center; */
  min-height: 100vh;
  background: #FFF; 
  padding: 0 10px;
  font-family: 'Poppins', sans-serif;
}

.navbar .navbar-nav a:hover {
   /* padding: 10px 10px; */
    color: #1d1d1d;
    background-color:#f8d477;
	
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    background-color:  #f8d477;
}

.btn-brother {
    color:#2b220b;
    background-color: #ffcb45;
    border-color:#f8d477;
    font-weight: 500;
}

.btn-brother:hover {
    transition: color 0.2s ease;
    color: #2b220b !important;
    font-size:22px;
    font-weight: 500;
}

.btn-icon {
    color: #652384;  #00a1d7
	width: 2rem; 
	height: 2.5rem; 
	font-size: x-large; 
	padding: 0rem; 
	margin: inherit;	
}


.btn-brother-lg {
    color: #2b220b;
    background-color: #ffcb45;
    border-color:#f8d477;
    width: 100%;
    font-weight: 500;
}

.btn-brother-lg:hover {
    transition: color 0.2s ease;
    color: #2b220b;
    font-size:22px;
    width: 100%;
    font-weight: 500;
}

.btn-brother-off {
    color: #fff;
    background-color:#d8d8d9;
    border-color:#d8d8d9;
}

#content{
	background-color: #FFF;
/*	padding: 10px; */
    width: 100vw;
    height: 100vh;
 /*   background: #6C7A89; */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center	
}

.form-radius{
    background-color:#fdedc5;
    padding: 3rem;
	margin-right: 20px;
	border-radius: 10px;	
}

.foto-user{
    background-color: #ddd;
    background-position: center;    
    border-radius: 50%;
    height: 50px;
    width: 50px;  
}

.moldura-img{
	border-radius: 8px;
	padding: 5px; 
	max-width: 80%;
	background-color: #EAEAEA;
	box-shadow: #333 0px 0px 1px;
	display: table;
}

.emoticons-size{width: 20px; height: 20px;}

.rodape{
    display: flex;
    height: 60px;
    width: 100%;
    align-items: center;
    justify-content: space-evenly;
    background: #efefef;
    border-top: 1px solid #d9d9d9;
    border-radius: 0 0 15px 15px;
}

.wrapper{
  background: #fff;
  max-width: 450px;
  min-height: 350px !important;  
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 0 128px 0 rgba(0,0,0,0.1),
              0 32px 64px -48px rgba(0,0,0,0.5);
}

.wrapper .typing-field{
    display: flex;
    height: 60px;
    width: 100%;
    align-items: center;
    justify-content: space-evenly;
    background: #efefef;
    border-top: 1px solid #d9d9d9;
    border-radius: 0 0 15px 15px;
}

.wrapper .typing-field i.bi-paperclip{
    cursor:pointer;
    font-size: 30px;
    color: #9f9f9f;
   
}	

.wrapper .typing-field .input-data{
    height: 40px;
    width: 100%; 
    margin-left: 10px;
    margin-right: 10px;
    position: relative;
}

.wrapper .typing-field .input-data input{
    height: 100%;
    width: 100%;
    outline: none;
    border: 1px solid transparent;
    padding: 0 80px 0 15px;
    border-radius: 3px;
    font-size: 15px;
    background: #fff;
    transition: all 0.3s ease;
}
.wrapper .typing-field .input-data input:focus{
    border-color: rgba(0,123,255,0.8);
}

.wrapper .input-data input::placeholder{
    color: #999999;
    transition: all 0.3s ease;
}
.wrapper .input-data input:focus::placeholder{
    color: #bfbfbf;
}

.wrapper .typing-field .input-data button{
    position: absolute;
    right: 5px;
    top: 50%;
    height: 30px;
    width: 65px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    opacity: 0;
    pointer-events: none;
    border-radius: 3px;
    background-color:#652384;
    border-color:#652384;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}
.wrapper .typing-field .input-data input:valid ~ button{
    opacity: 1;
    pointer-events: auto;
}

.typing-field .input-data button:hover{
    background:#652384;
}

.wrapper .search{
  margin: 10px 0 20px 0px;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
}

.wrapper .search .text{
  font-size: 16px;
}

.wrapper .search input{
/*  position: absolute; */
  height: 42px;
  width: calc(100% - 50px);
  font-size: 16px;
  padding: 0 13px;
  border: 1px solid #e6e6e6;
  outline: none;
  border-radius: 5px 0 0 5px;
  opacity: 1;
  transition: all 0.2s ease;
  border-top: 0;
  border-left: 0;
  border-right: 0;  
}

.wrapper .search input.show{
  opacity: 1;
  pointer-events: auto;
}

.wrapper .search button{
  position: relative;
  z-index: 1;
  width: 47px;
  height: 42px;
  font-size: 17px;
  cursor: pointer;
  border: none;
  background:#fff;
  color: #000;
  outline: none;
  border-radius: 0 5px 5px 0;
  transition: all 0.2s ease;
}

.wrapper .search button.active{
  background: #333;
  color: #fff;
}

.wrapper .search button.active i::before{
  content: '\00d7';
  font-size:25px;
  	
}


/* Login & Signup Form CSS Start */
.form{
  padding: 25px 30px;
}
.form header{
  font-size: 25px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid #e6e6e6;
}
.form form{
  margin: 20px 0;
}
.form form .error-text{
  color: #721c24;
  padding: 8px 10px;
  text-align: center;
  border-radius: 5px;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  margin-bottom: 10px;
  display: none;
}
.form form .name-details{
  display: flex;
}
.form .name-details .field:first-child{
  margin-right: 10px;
}
.form .name-details .field:last-child{
  margin-left: 10px;
}
.form form .field{
  display: flex;
  margin-bottom: 10px;
  flex-direction: column;
  position: relative;
}
.form form .field label{
  margin-bottom: 2px;
}
.form form .input input{
  height: 40px;
  width: 100%;
  font-size: 16px;
  padding: 0 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}
.form form .field input{
  outline: none;
}
.form form .image input{
  font-size: 17px;
}
.form form .button input{
  height: 45px;
  border: none;
  color: #fff;
  font-size: 17px;
  background: #333;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 13px;
}
.form form .field i{
  position: absolute;
  right: 15px;
  top: 70%;
  color: #ccc;
  cursor: pointer;
  transform: translateY(-50%);
}
.form form .field i.active::before{
  color: #333;
  content: "\f070";
}
.form .link{
  text-align: center;
  margin: 10px 0;
  font-size: 17px;
}
.form .link a{
  color: #333;
}
.form .link a:hover{
  text-decoration: underline;
}


/* Users List CSS Start */
.users{
  padding: 25px 30px;
}
.users header,
.users-list a{
  display: flex;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #e6e6e6;
  justify-content: space-between;
}
.wrapper img{
  object-fit: cover;
/*  border-radius: 50%;*/
}
.users header img{
  height: 50px;
  width: 50px;
}

.content{
  display: flex; 
  align-items: center;
}

.content-single{
  display:flex;
  align-items: center;
  width: auto;
}

.logout{
  background: #333;
  color: #fff;
  outline: none;
  border: none;
  padding: 3px 15px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 17px;
}

.details{
  color: #000;
  margin-left: 10px;
  width: 52%;
}

.details-single{
  color: #000;
  margin-left: 10px;
  width: 74%;
}

.details span{
  font-size: 16px;
  font-weight: 500;
  padding-right: 5px;
}

.users header .logout{
  display: block;
  background: #333;
  color: #fff;
  outline: none;
  border: none;
  padding: 7px 15px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 17px;
}

.users-list{
  max-height: 350px;
  overflow-y: auto;
}
:is(.users-list, .chat-box)::-webkit-scrollbar{
  width: 0px;
}
.users-list a{
  padding-bottom: 10px;
  margin-bottom: 15px;
  padding-right: 15px;
  border-bottom-color: #f1f1f1;
}
.users-list a:last-child{
  margin-bottom: 0px;
  border-bottom: none;
}
.users-list a img{
  height: 40px;
  width: 40px;
}
.users-list a .details p{
  color: #67676a;
}
.users-list a .status-dot{
  font-size: 12px;
  color: #468669;
  padding-left: 10px;
}
.users-list a .status-dot.offline{
  color: #ccc;
}

/* Chat Area CSS Start */
.chat-area header{
  display: flex;
  align-items: center;
  padding: 18px 30px;
}
.chat-area header .back-icon{
  color: #333;
  font-size: 18px;
}
.chat-area header img{
  height: 45px;
  width: 45px;
  margin: 0 15px;
}
.chat-area header .details span{
  font-size: 17px;
  font-weight: 500;
}
.chat-box{
  position: relative;
  min-height: 500px;
  max-height: 500px;
  overflow-y: auto;
  padding: 10px 30px 20px 30px;
  background: #f7f7f7;
  box-shadow: inset 0 32px 32px -32px rgb(0 0 0 / 5%),
              inset 0 -32px 32px -32px rgb(0 0 0 / 5%);
}
.chat-box .text{
  position: absolute;
  top: 45%;
  left: 50%;
  width: calc(100% - 50px);
  text-align: center;
  transform: translate(-50%, -50%);
}
.chat-box .chat{
  margin: 15px 0;
}
.chat-box .chat p{
  word-wrap: break-word;
  padding: 8px 16px;
  box-shadow: 0 0 32px rgb(0 0 0 / 8%),
              0rem 16px 16px -16px rgb(0 0 0 / 10%);
}
.chat-box .outgoing{
  display: flex;
}
.chat-box .outgoing .details{
  margin-left: auto;
  max-width: calc(100% - 130px);
}
.outgoing .details p{
  background: #333;
  color: #fff;
  border-radius: 18px 18px 0 18px;
}
.chat-box .incoming{
  display: flex;
  align-items: flex-end;
}
.chat-box .incoming img{
  height: 35px;
  width: 35px;
}
.chat-box .incoming .details{
  margin-right: auto;
  margin-left: 10px;
  max-width: calc(100% - 130px);
}
.incoming .details p{
  background: #fff;
  color: #333;
  border-radius: 18px 18px 18px 0;
}
.typing-area{
  padding: 18px 30px;
  display: flex;
  justify-content: space-between;
}
.typing-area input{
  height: 45px;
  width: calc(100% - 58px);
  font-size: 16px;
  padding: 0 13px;
  border: 1px solid #e6e6e6;
  outline: none;
  border-radius: 5px 0 0 5px;
}
.typing-area button{
  color: #fff;
  width: 55px;
  border: none;
  outline: none;
  background: #333;
  font-size: 19px;
  cursor: pointer;
  opacity: 0.7;
  pointer-events: none;
  border-radius: 0 5px 5px 0;
  transition: all 0.3s ease;
}
.typing-area button.active{
  opacity: 1;
  pointer-events: auto;
}

.warning {
    font-size:17px;
    color: #b02727; 
    background-color: #fcf8e3;
    border-color: #faebcc;
    display: none;
}

/* Responive media query */
@media screen and (max-width: 768px) {

  .form, .users{
    padding: 20px;
  }
  .form header{
    text-align: center;
  }
  .form form .name-details{
    flex-direction: column;
  }
  .form .name-details .field:first-child{
    margin-right: 0px;
  }
  .form .name-details .field:last-child{
    margin-left: 0px;
  }

  .users header img{
    height: 45px;
    width: 45px;
  }
  .users header .logout{
    padding: 6px 10px;
    font-size: 16px;
  }
  :is(.users, .users-list) .content .details{
    margin-left: 15px;
  }

  .users-list a{
    padding-right: 10px;
  }

  .chat-area header{
    padding: 15px 20px;
  }
  .chat-box{
    min-height: 400px;
    padding: 10px 15px 15px 20px;
  }
  .chat-box .chat p{
    font-size: 15px;
  }
  .chat-box .outogoing .details{
    max-width: 230px;
  }
  .chat-box .incoming .details{
    max-width: 265px;
  }
  .incoming .details img{
    height: 30px;
    width: 30px;
  }
  .chat-area form{
    padding: 20px;
  }
  .chat-area form input{
    height: 40px;
    width: calc(100% - 48px);
  }
  .chat-area form button{
    width: 45px;
  }

	.navbar .navbar-nav a:hover {
	   /* padding: 10px 10px; */
		color: #1d1d1d;
		background-color: #f8d477;
	}
	
	.navbar .dropdown-menu .dropdown-item:hover,
	.navbar .dropdown-menu .dropdown-item:focus {
		background-color: #f8d477 !important;
	}
	
  #minhaTabela.table, 
  #minhaTabela.table tbody, 
  #minhaTabela.table tr, 
  #minhaTabela.table td {
    display: block;
    width: 100%;
  }

  #minhaTabela.table thead {
    display: none; /* Esconde o cabeçalho original */
  }

  #minhaTabela.table tr {
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    background: #fff;
  }

  #minhaTabela.table td {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    text-align: right;
    border-bottom: 1px solid #eee;
  }

  #minhaTabela.table td:last-child {
    border-bottom: none;
  }

  /* Exibe o rótulo do cabeçalho usando o atributo data-title */
  #minhaTabela.table td::before {
    content: attr(data-title);
    font-weight: bold;
    text-align: left;
    padding-right: 10px;
    color: #333;
  }

}


/* =========================================================
   AJUSTES DE LAYOUT — index.php
   Sobrescreve regras antigas que desalinhavam a página.
   ========================================================= */

/* O body deve fluir normalmente; não centralizar a página inteira com flex */
html {
    min-height: 100%;
}

body {
    display: block;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    background: #FFFFFF;
}

/* Área principal abaixo da navbar */
main,
#page-wrapper {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin: 0 auto;
    padding: 45px clamp(12px, 3vw, 36px);
    box-sizing: border-box;
}

/* Corrige o #content quando estiver dentro do main */
main #content {
    display: block;
    width: 100%;
    max-width: 1200px;
    height: auto;
    min-height: 0;
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 14px;
}

/* Mantém o grid do Bootstrap sem forçar largura/altura */
main #content > .row {
    width: auto;
    margin-right: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
    margin-left: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
}

/* Formulários/telas estreitas ficam centralizados sem estourar */
main #content .col-12.col-md-8.col-lg-6.col-xl-5,
main #content .col-12.col-md-10.col-lg-8.col-xl-6 {
    min-width: 0;
}

/* Evita que imagens, tabelas e campos causem rolagem horizontal */
main #content img {
    max-width: 100%;
    height: auto;
}

main #content input,
main #content select,
main #content textarea {
    max-width: 100%;
    box-sizing: border-box;
}

main #content .table-responsive {
    max-width: 100%;
    overflow-x: auto;
}

/* Remove a cor azul padrão do Bootstrap na navbar */
.navbar .navbar-nav .nav-link:focus,
.navbar .navbar-nav .nav-link:active,
.navbar .navbar-nav .nav-link:focus-visible {
    color: #fff !important;
    box-shadow: none !important;
    outline: none;
}

/* Mantém a cor do menu ao passar o mouse */
.navbar .navbar-nav .nav-link:hover {
    color: #1d1d1d !important;
    background-color: #f8d477 !important;
}

.navbar .nav-link:focus-visible {
    outline: 2px solid #f8d477 !important;
    outline-offset: 2px;
}

/* Evita o azul no item dropdown */
.navbar .navbar-nav .nav-item.show > .nav-link,
.navbar .navbar-nav .nav-link[aria-expanded="true"] {
    color: #1d1d1d !important;
    background-color: #f8d477 !important;
}

/* Remove o destaque azul do foco nos itens do dropdown */
.navbar .dropdown-menu .dropdown-item:focus,
.navbar .dropdown-menu .dropdown-item:active {
    color: #1d1d1d !important;
    background-color: #f8d477 !important;
    box-shadow: none !important;
}
/* Em telas pequenas, reduzir respiros e manter o conteúdo fluido */
@media (max-width: 768px) {
    main,
    #page-wrapper {
        padding: 14px 10px;
    }

    main #content {
        padding: 16px 12px;
        border-radius: 10px;
    }
}

/* Em telas muito estreitas, evitar padding excessivo nos formulários */
@media (max-width: 420px) {
    main #content .form,
    main #content .users {
        padding: 14px 10px;
    }
}
