/* Reset bÃ¡sico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-transform:uppercase
}

html, body {
  font-family: 'Arial', sans-serif;
  background-color: #F5F7FA;
  color: #333333;
  line-height: 1.6;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Container principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px;
}

/* Header */

header h1 {
  font-size: 2.2rem;
  font-weight: 600;
}

/* TÃ­tulos principais */
h2, h3 {
  color: #444;
  margin-bottom: 10px;
}

h2 {
    font-size: 17px;
    display: flex;
    justify-content: center;
    color: #000000;
}

/* Layout responsivo com Flexbox */
section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

section .card {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

section .card h3 {
  font-size: 1.4rem;
  color: #333;
}

/* FormulÃ¡rios */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

form label {
  font-size: 1.2rem;
  color: #555;
}

input, form select, form textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  height: 50px;
  width: 100%;
}

input:focus, form select:focus, form textarea:focus {
  border-color: #86895d;
}

.category-header{
  background-color: #86895d;
  color: white;
  text-align: center;
  padding: 5px;
  text-transform:uppercase;
}

button {
  color: #fff;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
  text-transform:uppercase;
  background-color: #86895d;
}

.detail-btn {
    color: #86895d;
    border: none;
    font-size: 16px;
    cursor: pointer;
    background-color: #fff;
    box-shadow: 0 0 4px #999;   
}
/* Tabelas */
table {
  width: 100%;
  border-collapse: collapse;
}

table th, table td {
  border: 1px solid #ddd;
  height: 100%;
}

table th {
    background: #e6e7da;
    color: #6b6969;
    text-align: center;
    font-size: 12px !important;
    font-weight: bold;
    letter-spacing: 1px;
    color:  black !important;
}
.expense-history{
  padding-bottom: 80px;
}
/* Media queries para dispositivos mÃ³veis */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
  }

  .container {
    padding: 10px;
  }

  section {
    flex-direction: column;
    align-items: center;
  }

  input, form select, form textarea {
    font-size: 13px;
    width: 100%;
  }

  table th, table td {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }

  .card {
    padding: 15px;
  }

  table th, table td {
    font-size: 0.9rem;
  }

  button {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
/* Menu */
nav {
    display: flex;
    justify-content: center;
    border-radius: 10px;
    width: 100%;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 0px 13px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 10px;
    display: flex;
    flex-direction: column;
    margin-top: 5px;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

nav a:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Responsividade */
@media (max-width: 768px) {
    .nav-horizontal {
        flex-direction: column;
        align-items: center;
    }

    .nav-horizontal a {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }

    .nav-vertical {
        width: 100%;
    }
}

.bullet {
  background-color: #ffffff;
  color: black;
  margin-top: 15px;
  margin-bottom: 15px;
  border-radius: inherit;
}
/* Estilo do header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #FFF;
    position: sticky;
    top: 0px;
    color: #fff;
    text-align: center;
    box-shadow: 0 5px 5px 0 rgba(0, 0, 0, .1);
    background-color: #86895d;
}

/* Estilo do menu de hambÃºrguer */
.hamburger-menu {
    display: none; /* Esconder em desktop */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
}

/* Estilo do menu desktop */
.desktop-nav {
    display: flex;
    gap: 15px;
}
.logo img{
	display: flex;
	width: 20%;
}

.desktop-nav a {
    text-decoration: none;
    font-size: 0.9rem;
}

/* Estilo do menu mÃ³vel */
.mobile-nav {
    display: none; /* Esconder inicialmente */
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    z-index: 1000;
}

.mobile-nav a {
    text-decoration: none;
    color: #86895d;
    font-size: 0.9rem;
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

/* Mostrar o menu de hambÃºrguer e esconder o menu desktop em mobile */
@media (max-width: 600px) {
	form {
		flex-direction: column;
	}
	.logo {
		display: flex !important;
		justify-content: center !important;
	}
	.logo img{
		width: 60%;
		display: flex;
		justify-content: center !important;
	}
  .hamburger-menu {
      display: flex; /* Mostrar o Ã­cone de hambÃºrguer */
    padding: 10px;
  }

  .desktop-nav {
      display: none; /* Esconder o menu desktop */
  }

  .mobile-nav.active {
      display: flex; /* Mostrar o menu mÃ³vel quando ativo */
  }
}

/* Estilo para os botÃµes de aÃ§Ã£o */
.edit-btn, .delete-btn, .save-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin: 2px;
}

.edit-btn {
    background: #ffe8b0;
    color: #000;
    border: none;
    cursor: pointer;
    padding: 8px;
    height: 50px;
}

.delete-btn {
    background: #f7a6a5;
    border: none;
    cursor: pointer;
    padding: 8px;
    height: 50px;
    color: #e53935;
}

.save-btn {
    background-color: #4CAF50;
    color: #000;
    border: none;
    cursor: pointer;
    padding: 8px;
    height: 50px;
    width: 50px;
}

.edit-btn:hover, .delete-btn:hover, .save-btn:hover {
    opacity: 0.9;
}
.modal-btn{
  width: 80px;
  height: 50px;
}

/* Estilo do Modal */
.modal {
    display: none; /* Oculto por padrÃ£o */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 100vw;
    height: 100vh;
    align-items: center;
    max-height: 100vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Estilo da Lista de Categorias */
.ModalList {
    list-style-type: none;
    padding: 0;
    overflow-y: auto;
}

.ModalList li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.ModalList li:hover {
    background-color: #f1f1f1;
}

/* Estilo do Campo de Pesquisa */
#searchCategory {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.expand-btn {
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  padding: 0 5px;
  background-color: transparent;
}

.category-row {
  background-color: #f9f9f9;
  font-weight: bold;
}

.item-row {
  background-color: #ffffff;
}

/* Estilo para o campo de descriÃ§Ã£o com botÃ£o ao lado */
.description-input-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.description-input-wrapper input {
  width: calc(100% - 40px); /* Ajusta para o botÃ£o */
}

.description-input-wrapper button {
  cursor: pointer;
  margin: 3px;
}

.description-input-wrapper .material-icons {
  font-size: 24px; /* Tamanho do Ã­cone */
  color: #333; /* Cor do Ã­cone */
}
.bullet-info {
  background: #ffffff;
  color: black;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.button-grid-edit {
  background: #ffe8b0;
  color: #000;
  border: none;
  cursor: pointer;
  padding: 8px;
  height: 94px;
}
.button-grid-add {
  background: #ebfff1;
  color: #000;
  border: none;
  cursor: pointer;
  padding: 8px;
  height: 94px;
}
.button-grid-delete {
  background: #f7a6a5;
  border: none;
  cursor: pointer;
  padding: 8px;
  height: 93px;
  color: #e53935;
}
.verde {
  background-color: #dbf3e0;
  font-weight: bold;
}

.vermelho {
  background-color: #f5dede;
  font-weight: bold;
}
.verde_cat {
  color: #4CAF50;
  font-weight: bold;
}

.vermelho_cat {
  color: #dd9797;
  font-weight: bold;
}
.menu-mobile-footer {
  background-color: #86895d;
  border-radius: 0px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 0;
  text-align: center;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}
textarea#obs ,textarea#editObs {
  height: 130px;
}
/* Fundo esbatido */
#refresh-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: calc(100vh - 60px); /* Garante que o menu não é coberto */
  background: rgba(255, 255, 255, 0.8); /* Efeito de esbatimento */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
  z-index: 9999; /* Um pouco abaixo do menu */
}

/* Rodinha de carregamento - Bola verde */
.spinner {
  width: 40px;  /* Tamanho da bola */
  height: 40px; /* Tamanho da bola */
  border: 5px solid #d4d4d4; /* Cor cinza */
  border-top: 5px solid #86895d; /* Cor verde */
  border-radius: 50%; /* Torna a bola redonda */
  animation: spin 1s linear infinite;
}

/* Animação de rotação */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mostrar quando ativo */
.show-refresh {
  opacity: 1 !important;
  visibility: visible !important;
}

/*Celula home*/
.homeCell{
  text-align: left;
  width: 85px;
  padding-left: 5px;
  font-size: 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
}
#myChart {
  width: 100%;  /* Responsivo */
  height: 100%; /* Ajusta a altura conforme o tamanho do container */
  max-height: 400px;  /* Máxima altura para não ocupar muito espaço em ecrãs maiores */
}

.login-container {
  margin: 60px;
}

.year-header {
    width: 100%;
    background: #e6e7da;
    color: #6b6969;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
}

span.view-mode {
    font-size: 12px;
    padding: 10px;
}