html,
body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;

    
}

.app {

}

a {
  text-decoration-line: none;
  color: black;
}

.input {
  padding: 14px 18px;
  font-size: 1.1rem;
  border: 2px solid #111;
  border-radius: 28px;
  outline: none;
  margin-bottom: 0;
  background: #fff;
  color: #222;
}

.btn-cheio {
  padding: 14px 18px;
  width: 100%;
  background: #2196f3;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 25px;
  margin-top: 8px;
  margin-bottom: 0;
  cursor: pointer;
  box-shadow: none;
}

.btn-publicacao {
  justify-content: center;
  align-items: center;
  padding: 10px 10px;
  width: 100%;
  background: #2196f3;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  margin-top: 8px;
  margin-bottom: 0;
  cursor: pointer;
  box-shadow: none;
}

.btn-outline {
  width: 100%;
  padding: 14px 18px;
  background: #fff;
  color: #2196f3;
  font-size: 1.15rem;
  font-weight: 700;
  border: 2px solid #2196f3;
  border-radius: 28px;
  margin-top: 8px;
  margin-bottom: 0;
  cursor: pointer;
  box-shadow: none;
}

.auth-link {
  background: none;
  border: none;
  color: #111;
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
}

.auth-footer-link {
  color: #2196f3;
  text-decoration: none;
  font-size: .84rem;
  text-decoration: underline;
  font-weight: 500;
}

.copyright {
  width: 100%;
  text-align: center;
  color: #888;
  font-size: .78rem;
  margin-top: 8px;
}

.barra-vida {
  width: 100%;
  height: 30px;
  padding: 3px 3px 5px 3px;
  background-color: #000;
  color: #fff;
  font-size: 12px;
}

.barra-titulo {
  width: 100%;
  height: 30px;
  padding: 3px 0px 5px 0px;
  background-color: #000;
  color: #fff;
  font-size: 12px;
  justify-content: center;
  align-items: center;
}

.barra-titulo-terra {
  width: 100%;
  height: 70px;
  padding: 6px 0px 5px 0px;
  background-color: #000;
  color: #fff;
  font-size: 12px;
  justify-content: center;
  align-items: center;
}




.barra-voltar {
  width: 100%;
  height: 40px;
  background-color: #fff;
  color: #000;
  font-size: 15px;
  display: flex;
  padding: 15px;
}

/* Área de posts com scroll e altura máxima */
.area-post {
  color: #222;
  margin: 10px 0px 20px 0px;
 /* overflow-y: auto;*/
}

/* Scrollbar personalizada 
.area-post::-webkit-scrollbar {
  width: 8px;
}

.area-post::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.area-post::-webkit-scrollbar-thumb {
  background: #2196f3;
  border-radius: 10px;
}

.area-post::-webkit-scrollbar-thumb:hover {
  background: #1976d2;
}*/

/* Adicionados estilos para posts */
.post-item {
  background: #fff;
 /* border: 1px solid #dcdcdc;*/
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Adicionando estilos para avatar circular do usuário */
.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-avatar i {
  font-size: 1.5rem;
  color: #ffffff;
}

.author-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.author-details strong {
  font-size: 1rem;
  color: #222;
  line-height: 1.2;
}

.post-author strong {
  font-size: 1rem;
  color: #222;
}

.post-date {
  font-size: 0.85rem;
  color: #888;
  margin-top: 2px;
}

.post-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #222;
  margin: 10px 0;
}

.post-content {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin: 15px 0;
  word-wrap: break-word;
}

.post-media {
  margin: 15px 0;
  text-align: center;
}

.post-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-stats {
  display: flex;
  gap: 20px;
  padding: 10px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
  color: #666;
}

.post-stats i {
  margin-right: 5px;
  color: #2196f3;
}

.post-actions {
  display: flex;
  flex-direction: row; /* Mudado para row (lado a lado) ao invés de column */
  gap: 10px;
  margin-top: 10px;
  align-items: stretch;
}

/* Garantir que o form não quebre o layout */
.post-actions .like-form {
  flex: 1;
  display: flex;
}

.btn-action {
  flex: 1;
  background: #f0f0f0;
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
  cursor: pointer;
  transition: background 0.2s;
  /* Garantindo altura e alinhamento consistentes */
  min-height: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.btn-action:hover {
  background: #e0e0e0;
}

.btn-action i {
  margin-right: 5px;
}

.btn-like:hover i {
  color: #e91e63;
}

.btn-comment:hover i {
  color: #2196f3;
}

.post-comments-section {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.post-comments-section h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

.comment-item {
  background: #f8f8f8;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.comment-item strong {
  font-size: 0.9rem;
  color: #222;
}

.comment-date {
  font-size: 0.75rem;
  color: #888;
  margin-left: 8px;
}

.comment-item p {
  margin: 5px 0 0 0;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.4;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  .post-item {
    padding: 12px;
    margin-bottom: 15px;
  }

  .post-title {
    font-size: 1.1rem;
  }

  .post-content {
    font-size: 0.95rem;
  }

  .post-stats {
    flex-direction: column;
    gap: 8px;
  }

  .post-actions {
    flex-direction: row; /* Mantendo row no mobile também para botões ficarem lado a lado */
    gap: 8px;
  }
}

/* Botão de expandir/recolher post */
.btn-expand {
  background: none;
  border: none;
  color: #2196f3;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 5px 0;
  margin-top: 5px;
}

.btn-expand:hover {
  text-decoration: underline;
}

.menu-inferior {
  position: fixed !important;
  width: 100%;
  height: 35px;
  bottom: 0px;
  padding: 10px;
  background-color: #000;
  color: #fff;
  z-index: 90100;
}

.menu-inferior a {
  color: #fff;
}

/* Sidebar fixada sem scroll da página */
.sidebar {
 /** position: fixed !important;**/
  right: 0 !important;
  top: 0 !important;
 /** height: 100vh !important;*/
  width: 100px !important;
  display: flex !important;
  flex-direction: column !important;
/*  overflow-y: auto !important;*/
  background: #2196f3 !important;
 padding: 8px 5px 0px 2px !important;
  z-index: 110 !important;
}

/* Scrollbar da sidebar 
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}
*/
/* Responsividade para mobile */
@media (max-width: 768px) {
  .sidebar {
    width: 100px !important;
  }
}

.regiao-red {
  background: #950101;
  color: #fff;
  border: 2px solid #222;
  border-radius: 5px;
  width: 100%;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin: 0 0 2px;
  text-align: center;
  transition: background .2s;
  display: block;
}


.regiao-branco {
  background: #2196f3;
  color: #fff;
  border: 2px solid #222;
  border-radius: 5px;
  width: 100%;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin: 0 0 2px;
  text-align: center;
  transition: background .2s;
  display: block;
}

.regiao-preto {
  background: #2196f3;
  color: #222;
  border: 2px solid #222;
  border-radius: 5px;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin: 0 0 2px;
  transition: background .2s;
  display: block;
}

/* Links dos países devem herdar cor preta */
.regiao-preto a {
  color: #222;
}

.btn-post {
  position: fixed !important;
  right: 40% !important;
  bottom: 60px !important;
  background: #2196f3 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  width: 50px !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.8rem !important;
  box-shadow: 0 3px 8px #00000040 !important;
  z-index: 120 !important;
}

.weather {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 10px;
  text-align: center;
}

.weather-icon {
  font-size: 3rem;
}

.weather-temp {
  font-size: 1.5rem;
  font-weight: bold;
  color: #222;
}

.weather-desc {
  font-size: 0.9rem;
  color: #666;
}

.calendar,
.calendar_weekdays,
.calendar_content {
  max-width: 350px;
}

.calendar {
  font-weight: 400;
}

.calendar_content {
  background: #fff;
}

.calendar_weekdays {
  background: #1089ff;
}

.calendar_header {
  padding: 3px 0;
}

.calendar_content,
.calendar_weekdays,
.calendar_header {
  position: relative;
  overflow: hidden;
}

.calendar_weekdays div {
  display: inline-block;
  vertical-align: top;
  color: #fff !important;
}

.calendar_weekdays div,
.calendar_content div {
  width: 14.28571%;
  overflow: hidden;
  text-align: center;
  background-color: transparent;
  color: #000;
  font-weight: bold;
  font-size: 16px;
  padding: 5px 0;
}

.calendar_content div {
  border: 1px solid transparent;
  float: left;
  position: relative;
  z-index: 0;
}

.calendar_content div:hover {
  border: 1px solid #dcdcdc;
  cursor: default;
}

.calendar_content div.blank:hover {
  cursor: default;
  border: 1px solid transparent;
}

.calendar_content div.past-date {
  color: #000;
  font-weight: bold;
}

.calendar_content div.today {
  font-weight: bold;
  font-size: 16px;
  color: #fff !important;
}
.calendar_content div.today:after {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  bottom: 0;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  content: "";
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 auto;
  background: #1089ff;
  z-index: -1;
  -webkit-box-shadow: 0px 5px 11px -9px rgba(0, 0, 0, 0.48);
  -moz-box-shadow: 0px 5px 11px -9px rgba(0, 0, 0, 0.48);
  box-shadow: 0px 5px 11px -9px rgba(0, 0, 0, 0.48);
}

.calendar_content div.selected {
  background-color: #f0f0f0;
}

.calendar_header {
  width: 100%;
  text-align: center;
}

.calendar_header h2 {
  padding: 0 10px;
  font-weight: 500;
  font-size: 20px;
  color: #1089ff;
  float: left;
  width: 70%;
  margin: 0 0 10px;
}

button.switch-month {
  background-color: transparent;
  padding: 0;
  outline: none;
  border: none;
  color: #dcdcdc;
  float: left;
  width: 15%;
  -webkit-transition: color .2s;
  -o-transition: color .2s;
  transition: color .2s;
}

button.switch-month:hover {
  color: #1089ff;
}

/* Estilos para botão de editar no post */
.post-edit-btn {
  margin-left: auto;
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Melhorias no modal */
.modal-content {
  border-radius: 10px;
}

.modal-header {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* Estilos para botão de voltar no menu lateral */
.btn-voltar-menu {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #333;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  margin-bottom: 10px;
  transition: background-color 0.3s;
}

.btn-voltar-menu:hover {
  background-color: #555;
  color: #fff;
  text-decoration: none;
}

.btn-voltar-menu i {
  margin-right: 5px;
}

.menu-lateral-contexto .active {
  background-color: #007bff !important;
  color: #fff !important;
  font-weight: bold;
}

/* Ajustes no menu contextual para duas camadas */
.menu-lateral-contexto .regiao-branco.active {
  background-color: #007bff !important;
  color: #fff !important;
  font-weight: bold;
  border-color: #007bff !important;
}

.menu-lateral-contexto .regiao-preto.active {
  background-color: #ffc107 !important;
  color: #000 !important;
  font-weight: bold;
  border-color: #000 !important;
}

.menu-lateral-contexto a {
  text-decoration: none;
  display: block;
}

/* Botão flutuante para voltar ao topo do menu lateral */
.btn-voltar-topo {
  position: fixed;
  bottom: 70px;
  right: 60px;
  width: 45px;
  height: 45px;
  background-color: #ffc107;
  color: #000;
  border: 2px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 150;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.btn-voltar-topo:hover {
  background-color: #ffb300;
  transform: scale(1.1);
}

.btn-voltar-topo i {
  pointer-events: none;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  .btn-voltar-topo {
    bottom: 60px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Melhorias de responsividade para telas de posts do usuário */

/* Estilos para localização do post */
.post-location {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-top: 4px;
}

.post-location i {
  color: #2196f3;
  margin-right: 3px;
}

/* Responsividade para my-posts e edit */
@media (max-width: 768px) {
  .post-item {
    padding: 12px;
    margin-bottom: 15px;
  }

  .post-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .post-edit-btn {
    margin-left: 0;
    width: 100%;
  }

  .post-edit-btn .btn {
    width: 100%;
  }

  .post-edit-btn .btn-text {
    display: inline;
  }

  .post-title {
    font-size: 1.1rem;
  }

  .post-content {
    font-size: 0.95rem;
  }

  .post-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Ajustes nos formulários mobile */
  .post-edit-form,
  .profile-form {
    padding: 0 10px;
  }

  .form-group .btn {
    width: 100%;
    margin-bottom: 10px;
  }

  .d-flex.gap-2 {
    flex-direction: column;
  }

  .current-image-container {
    text-align: center;
  }

  .current-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 5px;
  }
}

/* Desktop - imagem atual menor */
@media (min-width: 769px) {
  .current-image {
    max-width: 300px;
    max-height: 200px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 5px;
  }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #888;
}

.empty-state i {
  color: #ccc;
}

/* Melhorias no container principal mobile */
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .area-post {
    margin: 10px 0px 20px 0px;
  }

  /* Ajustes nos alertas */
  .alert {
    font-size: 0.9rem;
    padding: 10px;
  }

  /* Melhor legibilidade dos textos em mobile */
  .form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
  }

  .form-control {
    font-size: 1rem;
  }

  textarea.form-control {
    min-height: 150px;
  }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 480px) {
  .barra-titulo h2 {
    font-size: 1.2rem;
  }

  .barra-titulo p {
    font-size: 12px;
  }

  .post-author strong {
    font-size: 0.9rem;
  }

  .post-date,
  .post-location {
    font-size: 0.75rem;
  }
}

/* Estilos modernos para tela de edição de posts */
.edit-post-container {
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  padding: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.styled-form {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group-styled {
  margin-bottom: 25px;
}

.form-label-styled {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-label-styled i {
  color: #667eea;
  margin-right: 8px;
}

.form-control-styled {
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  outline: none;
  transition: all 0.3s ease;
  background: #f9f9f9;
}

.form-control-styled:focus {
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control-styled::placeholder {
  color: #999;
}

textarea.form-control-styled {
  resize: vertical;
  min-height: 150px;
}

.current-image-wrapper {
  text-align: center;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 10px;
  margin-top: 10px;
}

.current-image-styled {
  max-width: 100%;
  max-height: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-check-styled {
  padding: 15px;
  background: #fff3cd;
  border-radius: 10px;
  border-left: 4px solid #ffc107;
}

.form-check-styled .form-check-input {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  cursor: pointer;
}

.form-check-styled .form-check-label {
  font-size: 0.95rem;
  color: #856404;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.form-check-styled .form-check-label i {
  margin-right: 5px;
}

.file-input {
  padding: 10px !important;
  background: white !important;
  cursor: pointer;
}

.form-text-styled {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

/* Aumentando espaçamento entre botões e adicionando padding ao container */
.form-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 35px;
  padding: 20px 0;
}

.btn-styled {
  padding: 14px 35px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 160px;
  justify-content: center;
}

.btn-cancel {
  background: #6c757d;
  color: white;
}

.btn-cancel:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
  color: white;
}

.btn-save {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Estilos modernos para listagem de posts usando toda a tela */
.my-posts-container {
  width: 100%;
  padding: 20px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.my-posts-container::-webkit-scrollbar {
  width: 10px;
}

.my-posts-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

/* Restaurando estilos originais para telas de edição */
