/* ================= GLOBAL ================= */
body {
  background-color: #1B3C53;
  font-family: "Poppins", sans-serif;
  color: white;
  margin: 0;
}

/* centralizar apenas em páginas de login/criar-conta */
body.center-page {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

/* ================= LOGIN / CADASTRO ================= */
.container {
  background-color: #234c6a;
  padding: 40px;
  border-radius: 15px;
  width: 350px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  text-align: center;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.logo span { color: #00AEFF; }

form { display: flex; flex-direction: column; gap: 16px; }
label { text-align: left; font-size: 0.9rem; color: #dbe9f1; }
input, textarea, select {
  padding: 10px;
  border-radius: 8px;
  border: none;
  background-color: #1B3C53;
  color: white;
  font-size: 1rem;
}
input::placeholder { color: #9bb7c9; }

button {
  background-color: white;
  color: #1B3C53;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
button:hover { background-color: #00AEFF; color: white; }

/* footer links small */
.footer { margin-top: 12px; font-size: 0.9rem; color: #d0e2ef; }
.footer a { color: #00AEFF; font-weight: 700; text-decoration: none; }

/* ================= SIDEBAR ================= */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 250px;
  background-color: #132d42;
  padding: 24px;
  box-shadow: 4px 0 14px rgba(0,0,0,0.3);
}
.sidebar .logo { margin: 0 0 18px 0; font-size: 1.6rem; text-align: left; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar ul li { margin: 12px 0; }
.sidebar ul li a {
  color: white; text-decoration: none; display:block; padding:10px; border-radius:8px; font-weight:600;
}
.sidebar ul li a.active, .sidebar ul li a:hover { background:#00AEFF; color:#0C2332; }

/* layout main content */
main {
  margin-left: 270px;
  padding: 28px;
}

/* ================= DASHBOARD CARDS ================= */
.cards-dashboard {
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  align-items:stretch;
}
.card-box {
  background:#234C6A;
  padding:16px;
  border-radius:12px;
  width:220px;
  box-shadow:0 6px 18px rgba(0,0,0,0.25);
  color:white;
  text-align:center;
}
.card-box p { font-size:20px; margin:6px 0 0 0; font-weight:700; }
.card-box.entrada { border-left:6px solid #44e74a; }
.card-box.saida { border-left:6px solid #fc5b2a; }
.card-box.total { border-left:6px solid #99defd; }

/* painel-info - reutilizável para áreas */
.painel-info {
  background:#234C6A;
  padding:18px;
  border-radius:12px;
  margin-bottom:12px;

  box-shadow: 0 6px 18px rgba(31, 31, 31, 0.12);
}

/* ================= TAREFAS ================= */
.lista-tarefas { list-style:none; padding:0; margin-top:16px; max-width:800px; }
.lista-tarefas .tarefa {
  background:#234C6A; padding:12px 14px; border-radius:10px; margin-bottom:12px;
  display:flex; justify-content:space-between; align-items:center; border-left:6px solid #00AEFF;
}
.lista-tarefas .tarefa.concluida { opacity:0.6; text-decoration:line-through; border-left-color:#4CAF50; }
.lista-tarefas .categoria { color:#00AEFF; font-weight:700; }
.btn-ok, .btn-voltar { padding:6px 10px; border-radius:8px; text-decoration:none; color:white; }
.btn-ok { background:#4CAF50; }
.btn-voltar { background:#FF9800; }

/* ================= FORM ADD TAREFA (telas internas) ================= */
body.tela-interna { display:flex; min-height:100vh; }
.conteudo-principal { flex:1; padding:36px; }
.form-box { background:#234C6A; padding:20px; border-radius:12px; width:100%; max-width:520px; display:flex; flex-direction:column; gap:12px; box-shadow:0 6px 18px rgba(247, 245, 245, 0.22); }
.form-box input, .form-box textarea, .form-box select { background:#1B3C53; border:none; color:white; padding:10px; border-radius:8px; }
.form-box input:focus, .form-box textarea:focus, .form-box select:focus { outline:2px solid #00AEFF; }
.btn-padrao { background:#00AEFF; color:#ffffff; padding:12px; border-radius:8px; font-weight:700; border:none; cursor:pointer; }
.btn-padrao:hover { background:white; color:#ffffff; }

/* =================  RESUMO FINANCEIRO ================= */
.painel-info table { width:100%; border-collapse:collapse; margin-top:12px; }
.painel-info table th, .painel-info table td { padding:8px 6px; border-bottom: 1px solid rgba(247, 245, 245, 0.06); color:#ffffff; }
.painel-info table thead th { color:#ffffff; }

/* ================= ÚLTIMOS LANÇAMENTO ================= */
.painel-resumo table { width:100%; border-collapse:collapse; margin-top:12px; }
.painel-info table th, .painel-info table td { padding:8px 6px; border-bottom: 1px solid rgba(255,255,255,0.06); color: #fff;; }
.painel-info table thead th { color: #fff; }

/* responsive */
@media(max-width:900px) {
  .sidebar { width:70px; padding:14px; }
  .sidebar .logo { display:none; }
  main { margin-left:90px; padding:18px; }
  .cards-dashboard { justify-content:center; }
  .card-box { width:100%; max-width:320px; }
}

/* ===== PERFIL ===== */
.perfil-box {
  background: #234C6A;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.perfil-header {
  display: flex;
  align-items: center;
  gap: 20px; /* distância entre foto e nome */
}

.perfil-usuario img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #456882;
}

.perfil-topo h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.perfil-topo p {
  margin: 4px 0 0;
  color: #d9e6f2;
}

.btn-editar {
  display: inline-block;
  margin-top: 20px;
  background-color: #00aeef;
  color: white;
  padding: 10px 25px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s;
}

.btn-editar:hover {
  background-color: white;
  color: #1b3c53;
}
/* ============================
       ESTILOS DO CALENDÁRIO 
       ============================ */



    #calendario {
      background: #0f172a;
      padding: 30px;
      border-radius: 20px;
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
      font-family: 'Inter', system-ui, sans-serif;
      border: 1px solid #1e293b;
      color: #f1f5f9;
    }

    /* Título do mês */
    .fc-toolbar-title {
      color: #f8fafc !important;
      font-size: 1.5rem !important;
      font-weight: 700;
    }

    /* Botões de navegação */
    .fc-button {
      background: #1e293b !important;
      border: 1px solid #334155 !important;
      color: #e2e8f0 !important;
      border-radius: 8px !important;
      padding: 8px 16px !important;
      transition: all 0.2 ease;
    }

    .fc-button:hover {
      background: #334155 !important;
      transform: translateY(-1px);
    }

    /* Dias */
    .fc-daygrid-day {
      background: #234c6a !important;
      border: 1px solid #0f172a !important;
    }
    .fc-col-header-cell-cushion {
      color: white !important;     /* cor dos nomes dos dias */
      font-weight: 600;
    }

    .fc-daygrid-day-number {
      color: #234c6a !important;     /* números dos dias do mês */
    }

    .fc-scrollgrid-section-header td,
    .fc-scrollgrid-section-header th {
      background-color: #1f2937 !important; /* fundo do cabeçalho no tema dark */
    }

    .fc-daygrid-day:hover {
      background: #334155 !important;
      cursor: pointer;
    }

    /* Número do dia */
    .fc-daygrid-day-number {
      color: #cbd5e1 !important;
      font-weight: bold !important;
      font-size: 13px !important;
    }

    /* Evento dentro da célula */
    .fc-daygrid-event {
      background: #a1c0ce !important;
      border: none !important;
      color: #fff !important;
      border-radius: 6px !important;
      padding: 2px 4px !important;
      font-size: 11px !important;
      margin: 2px 0 !important;
      font-weight: 600;
    }

    /* Caixa de eventos do dia */
    #eventos-dia {
      margin-top: 15px;
      display: none;
      background: #234c6a;
      padding: 12px;
      border-radius: 8px;
      border: 1px solid #4c5664;
      color: #234c6a;
    }

    #eventos-dia h4 {
      margin: 0 0 6px;
      color: #38bdf8;
    }

    #eventos-dia li {
      background: #0ea5e9;
      padding: 6px;
      border-radius: 6px;
      margin-bottom: 6px;
      color: #fff;
    }

    /* Tabela de lembretes */
    .tabela-lembretes {
      width: 100%;
      background: #0f172a;
      color: #fff;
      padding: 14px;
      border-radius: 14px;
    }

    .tabela-lembretes th {
      text-align: left;
      color: #38bdf8;
      padding-bottom: 10px;
    }

    .tabela-lembretes td {
      padding: 8px 0;
      border-bottom: 1px solid #809ac4;
    }
    /* Mudar cursor ao passar sobre o número da data */
.fc .fc-daygrid-day-number {
  cursor: pointer; /* transforma em "mãozinha" */
  color: #1e3a8a;  /* azul escuro, se quiser manter */
  font-weight: bold;
}
/* Números dos dias do calendário */
.fc .fc-daygrid-day-number {
  color: #000000; /* preto */
  font-weight: bold;
  cursor: pointer; /* mãozinha ao passar o mouse */
  /* Quando o mouse passa por cima */
.fc .fc-daygrid-day-number:hover {
  color: #1e3a8a; /* azul escuro */
  text-decoration: underline; /* opcional: sublinha o número */
}}

.tabela-financas { width: 100%; border-collapse: collapse; margin-top: 16px; border: 1px solid #000; /* borda preta */ }

.tabela-financas th, .tabela-financas td {
  border: 1px solid #000; /* linhas pretas */
  padding: 10px;
  text-align: center;
  color: #000; /* texto preto */
  background-color: #fff; /* fundo branco */
  font-weight: 600;
}

.tabela-financas th {
  background-color: #fff; /* cabeçalho também branco */
  color: #000; /* texto preto */
  font-weight: bold;
}


.titulo-pagina {
  text-align: center;
  margin-bottom: 25px;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
}

.campo-form {
  display: flex;
  flex-direction: column;
  color:#2a0f0f
}

.campo-form label {
  margin-bottom: 5px;
  font-size: 14px;
  color: #444;

}

.campo-form input {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 15px;
  
}

.btn-salvar {
  width: 100%;
  padding: 12px;
  background: #1e88e5;
  border: none;
  color: white;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.2s;
}

.btn-salvar:hover {
  background: #1565c0;
}

.btn-voltar {
  display: block;
  text-align: center;
  margin-top: 18px;
  color: #1e88e5;
  font-weight: bold;
  text-decoration: none;
  font-size: 15px;
}

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

/* --------- ÁREA DO PERFIL ---------- */

/* ---- CONTAS BANCARIAS ---- */

.contas-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.conta-card {
  background-color: #1B3C53;
  color: #cbd8e4;
  padding: 14px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-nova-conta {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px dashed #456882;
  padding: 12px;
  border-radius: 10px;
  color: #cbd8e4;
  text-decoration: none;
  margin-top: 15px;
  transition: background 0.2s, color 0.2s;
}

.btn-nova-conta:hover {
  background-color: #456882;
  color: white;
}


/* ---- PAGINA + IMAGEM + DESCRIÇÃO ---- */

/* container principal */
.perfil-container {
  margin-left: 270px;
  padding: 28px;
  color: white;
}

/* bloco geral */
.perfil-box {
  background: #234C6A;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

* título página */
.titulo-perfil {
  font-size: 2rem;
  margin-bottom: 30px;
  font-weight: 700;
  padding: 10px;
}

/* parte do usuário */
.perfil-usuario img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
}

.perfil-topo {
  width: 100%;
  height: 100%;
  object-fit: cover
}

/*.perfil-topo img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid #456882;
  object-fit: cover;
  position: relative;
}*/

.btn-editar-foto {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #456882;
  width: 32px;
  height: 32px;
  font-size: 18px;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transform: translate(20%, 20%);
  border: 2px solid #fff; /* opcional */
}

/* abas (sidebar interna) */
.perfil-tabs {
  width: 240px;
  background: #132d42;
  padding: 14px;
  border-radius: 12px;
  height: fit-content;
}

.perfil-tabs button {
  width: 100%;
  padding: 12px;
  text-align: left;
  color: #cbd8e4;
  background: none;
  border: none;
  font-size: 15px;
  margin-bottom: 10px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display:flex;
  align-items:center;
  gap:10px;
}

.perfil-tabs button.active {
  background: #456882;
  color: white;
}

.perfil-tabs button:hover {
  background: #234C6A;
}

/* área conteúdo */
.perfil-content {
  flex-grow: 1;
  background: #234C6A;
  padding: 20px;
  border-radius: 12px;
  margin-left: 20px;
}

/* form */
.form-group {
  display:flex;
  flex-direction:column;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 14px;
  color: #cbd8e4;
  margin-bottom: 6px;
}

.form-input {
  background: #1B3C53;
  border: none;
  padding: 12px;
  border-radius: 8px;
  color: white;
  font-size: 15px;
}

.btn-principal {
  background: #456882;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
}

.btn-principal:hover {
  background: #5a82a2;
}


/* ---- SWITCHES DE NOTIFICAÇÕES ---- */
.switch-group {
  display: flex;
  align-items: center;
  gap: 14px; /* espaço entre switch e texto */
  margin-bottom: 18px;
}

.switch-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    transform: scale(1.1);
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #00aeef;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

@font-face {
    font-family: "Poppins";
    src: url("/static/fonts/Poppins-Regular.woff2") format("woff2");
    font-weight: 400;
}

@font-face {
    font-family: "Poppins";
    src: url("/static/fonts/Poppins-SemiBold.woff2") format("woff2");
    font-weight: 600;
}

@font-face {
    font-family: "Poppins";
    src: url("/static/fonts/Poppins-Bold.woff2") format("woff2");
    font-weight: 700;
}

@font-face {
    font-family: "Material Symbols Outlined";
    src: url("/static/fonts/MaterialSymbolsOutlined.woff2") format("woff2");
}





/* FOTO ATUAL */
.foto-perfil-editar img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid #00AEEF;
  box-shadow: 0 0 10px rgba(0,174,239,0.5);
  margin-bottom: 15px;
}

/* FORMULÁRIO */
.form-perfil {
  text-align: left;
}

.campo-form {
  margin-bottom: 20px;
}

.campo-form label {
  display: block;
  margin-bottom: 6px;
  color: #DBE9F1;
  font-size: .95rem;
}

.campo-form input,
.campo-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 2px solid #456882;
  background: #1B3C53;
  color: #DBE9F1;
  font-size: .95rem;
  outline: none;
  transition: border-color .3s;
}

textarea {
  resize: none;
}

.campo-form input:focus,
.campo-form textarea:focus {
  border-color: #00AEEF;
}

/* BOTÃO SALVAR */
.btn-salvar {
  width: 100%;
  padding: 14px;
  background-color: #00AEEF;
  color: white;
  border: none;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
}

.btn-salvar:hover {
  background-color: white;
  color: #1B3C53;
}

/* BOTÃO VOLTAR */
.btn-voltar {
  display: inline-block;
  margin-top: 20px;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
  background-color: transparent;
  color: #DBE9F1;
  border: 2px solid #00AEEF;
  transition: 0.3s;
}

.btn-voltar:hover {
  background-color: #00AEEF;
  color: white;
}




/* Cor dos marcadores pequenos */
.fc-daygrid-event-dot {
  border-color: #1B3C53 !important;
}

/* Evento — conta */
.evento-conta {
  background-color: #e9a33a !important;
  border-color: #e9a33a !important;
}

/* Evento — reunião */
.evento-reuniao {
  background-color: #4a7ae3 !important;
  border-color: #4a7ae3 !important;
}

/* Texto compacto */
.fc-event-title {
  font-size: 11px;
  white-space: nowrap;
}

    /* pequenas adaptações para mostrar eventos como "dots" e título pequeno */
.tarefa-evento {
  background-color: #1B3C53 !important;
  border-color: #1B3C53 !important;
  color: white !important;
  font-size: 10px;
}

.fc-event-title {
  white-space: nowrap;
  font-size: 11px;
}

#eventos-dia { display: none; margin-top:10px; }
#eventos-dia ul { padding-left: 18px; }

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: #132d42;
  padding: 22px;
  border-radius: 10px;
  width: 380px;
  color: white;
}

.modal-close {
  float: right;
  cursor: pointer;
  font-size: 22px;
}