/* ===== GLOBAL STYLE UNIFICADO - BAIAK MINIMALIST ===== */

/* CORES PADRÃO */
:root {
  --cor-bege-claro: #fff8e2;
  --cor-bege: #ead19a;
  --cor-marrom-medio: #a87932;
  --cor-marrom-escuro: #3f250f;
  --cor-texto: #2b1a0c;
  --cor-borda: #b88938;
}

/* RESET GLOBAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Georgia, 'Times New Roman', serif !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

body {
  background: #f5ead2;
  color: var(--cor-texto);
  line-height: 1.6;
}

/* HEADERS E TÍTULOS */
h1, h2, h3, h4, h5, h6 {
  color: var(--cor-marrom-escuro) !important;
  margin: 12px 0;
  font-weight: 700 !important;
  text-shadow: none !important;
}

h1 { font-size: 1.6rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }

/* BOTÕES PADRÃO */
button, .btn, input[type="button"], input[type="submit"] {
  background: linear-gradient(180deg, #fff5d7, #e7c98d);
  border: 1px solid var(--cor-borda);
  color: var(--cor-marrom-escuro);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: none;
}

button:hover, .btn:hover, input[type="button"]:hover, input[type="submit"]:hover {
  background: linear-gradient(180deg, #ffedc0, #ddb87a);
}

/* INPUTS */
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  background: #fff7df;
  border: 1px solid rgba(126, 84, 27, .4);
  color: var(--cor-texto);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--cor-marrom-medio);
}

/* CONTAINERS */
.container, .page-container, .content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* CARDS */
.card, .box, .panel {
  background: linear-gradient(180deg, #fff5d7, #e7c98d);
  border: 1px solid rgba(126, 84, 27, .4);
  border-radius: 10px;
  padding: 18px;
  margin: 14px 0;
  transition: all 0.3s ease;
}

/* TABELAS */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
}

th {
  background: linear-gradient(180deg, #744b21, #34200f);
  color: #fff1c1;
  padding: 12px;
  text-align: left;
  font-weight: 700;
  text-transform: none;
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(126, 84, 27, .25);
  color: var(--cor-texto);
}

tr:nth-child(even) td {
  background: rgba(255, 255, 255, .35);
}

/* LINKS */
a {
  color: var(--cor-marrom-medio);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--cor-marrom-escuro);
  text-decoration: underline;
}

/* GRID RESPONSIVO */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 18px 0;
}

/* MOBILE FIRST */
@media (max-width: 768px) {
  .container, .page-container, .content-wrapper {
    padding: 16px;
  }

  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1rem; }

  button, .btn, input[type="button"] {
    width: 100%;
    font-size: 0.85rem;
    padding: 10px 16px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  table {
    font-size: 0.85rem;
  }

  th, td {
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .container, .page-container, .content-wrapper {
    padding: 12px;
  }

  h1 { font-size: 1.15rem; }
  h2 { font-size: 1rem; }
  h3 { font-size: 0.9rem; }

  button, .btn {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
}

/* UTILS */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.margin-top { margin-top: 16px; }
.margin-bottom { margin-bottom: 16px; }
.margin { margin: 16px 0; }

.padding-top { padding-top: 16px; }
.padding-bottom { padding-bottom: 16px; }
.padding { padding: 16px; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* NOTIFICAÇÕES */
.alert, .notification {
  border-radius: 8px;
  padding: 14px;
  margin: 12px 0;
  border-left: 4px solid;
}

.alert-success { border-color: #118b45; color: #155f28; background: #dff7df; }
.alert-error { border-color: #d17761; color: #7c1d12; background: #ffe1d8; }
.alert-warning { border-color: var(--cor-marrom-medio); color: var(--cor-marrom-escuro); background: #fff1ce; }
.alert-info { border-color: #2196F3; color: #0d47a1; background: #e3f2fd; }

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f5ead2;
}

::-webkit-scrollbar-thumb {
  background: var(--cor-marrom-medio);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cor-marrom-escuro);
}

/* FORÇA TEXTO NORMAL EM TODO O SITE (remove caixa alta do tema) */
* {
  text-transform: none !important;
}
