/* -------------------------------- */
/* PALETA & BASE */
:root {
  --green-deep: #0f3a28;
  --green-mid: #3d7a4f;
  --green-soft: #e3f1e9;

  --bg: #f7f9f6;
  --bg-card: #ffffffcc;
  --text: #0d251a;
  --text-light: #4a5b53;

  --radius-uni: 14px 10px 16px 8px;
  --shadow-soft: 0 8px 24px rgba(15, 58, 40, 0.06);
}

/* -------------------------------- */
/* GERAL */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.55;
}

/* NAVBAR */
.navbar {
  background: var(--green-deep);
  padding: 0.8rem 1rem;
  box-shadow: var(--shadow-soft);
}

.nav-link { 
  color: #f0fff7 !important; 
  font-weight: 600; 
}
.nav-link:hover { 
  background: rgba(255,255,255,0.1); 
}

/* DROPDOWN */
.dropdown-menu {
  background: var(--bg-card) !important;
  backdrop-filter: blur(8px);
  border-radius: var(--radius-uni);
}
.dropdown-item { 
  color: var(--green-deep); 
  font-weight: 500; 
}
.dropdown-item:hover { 
  background: rgba(15,58,40,0.08); 
}

/* PERFIL */
.perfil-container {
    max-width: 500px;
    margin: 50px auto !important;
    display: flex;
    justify-content: center;
}

.card:not(.perfil-card) img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

.card {
    max-width: 350px;
}

.perfil-card {
    width: 100%;
    max-width: none !important;
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    margin: 0 auto;
}

body.dark .perfil-card {
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.perfil-nome {
    margin-bottom: 5px;
    color: var(--text);
}

.perfil-email {
    margin-bottom: 20px;
    color: var(--text-light);
}

.perfil-img {
    width: 140px !important;
    height: 140px !important;
    max-width: 140px !important;
    max-height: 140px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
    margin: 0 auto !important;
}

.btn-editar-perfil {
    text-decoration: none;
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.35s ease;
}

.btn-editar-perfil:hover {
    background-color: #0069d9;
}

/* CARDS E FORMULÁRIOS */
.card, .form-card, .card-body form {
  background: var(--bg-card);
  border-radius: var(--radius-uni);
  padding: 2.5rem;
  max-width: 480px;
  margin: 2rem auto;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

/* Títulos */
.form-card h2, .card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Inputs e selects */
.form-card input, .card-body input, textarea, select {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 10px;
  margin-bottom: 0.8rem;
}

/* Links */
.card-body a, .card-body .btn-link { font-size: 0.9rem; }

/* BOTÃO DO TEMA */
.theme-toggle { 
  background: var(--bg-card); 
  border: none; 
  cursor: pointer; 
  font-size: 1.4rem; 
  padding: 8px; 
  border-radius: 50%; 
  box-shadow: var(--shadow-soft);
}

/* ------------------------------ */
/*           BOTÕES PRINCIPAIS     */
/* ------------------------------ */
.btn-entrar,
.btn-criar,
.btn-rumix,
.btn-outline-success {
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  border-radius: 10px;
  font-weight: 600;
  min-width: 140px;
  text-align: center;
  transition: 0.3s ease;
  cursor: pointer;
}

/* botões */
body:not(.dark) .btn-entrar,
body:not(.dark) .btn-rumix {
  background-color: #0d6efd;
  color: #fff;
  border: none;
}
body:not(.dark) .btn-entrar:hover,
body:not(.dark) .btn-rumix:hover {
  background-color: #0b5ed7;
}

body:not(.dark) .btn-criar {
  background-color: #198754;
  color: #fff;
  border: none;
}
body:not(.dark) .btn-criar:hover {
  background-color: #157347;
}

