/* =========================================
   RESET + NORMALIZE BÁSICO
   ========================================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.pagination {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.pagination a {
    padding: 6px 12px;
    border-radius: 6px;
    background: #f1f1f1;
    text-decoration: none;
}

.pagination span {
    font-weight: bold;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   ROOT: VARIÁVEIS DA IDENTIDADE
   ========================================= */

:root {
    /* Paleta baseada no logo */
    --blue-700: #0F325A;
    --blue-500: #1F6FB2;
    --blue-300: #5BA3D9;

    --gray-900: #111;
    --gray-700: #333;
    --gray-500: #777;
    --gray-200: #e9e9e9;
    --gray-100: #f7f7f7;

    /* Backgrounds */
    --bg: #ffffff;
    --bg-alt: #f4f6f8;

    /* Texto */
    --text: #111;
    --text-light: #444;

    /* Fontes */
    --font-primary: "Inter", "Segoe UI", Arial, sans-serif;
    --font-heading: "Poppins", "Inter", sans-serif;

    /* Espaçamentos (escala) */
    --space-0: 0px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    /* Sombra */
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 20px rgba(0,0,0,0.18);

    /* Tempos de animação */
    --animate-fast: .15s;
    --animate: .30s;
    --animate-slow: .6s;
}

/* =========================================
   BASE GLOBAL
   ========================================= */

body {
    font-family: var(--font-primary);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    padding: var(--space-0);
}

/* Títulos coerentes com o logo */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--blue-700);
}

.space2 {
    padding: var(--space-2);
}
.space3 {
    padding: var(--space-3);
}
.space4 {
    padding: var(--space-4);
}
.space5 {
    padding: var(--space-5);
}

.border-bottom {
    border-bottom: 1px solid var(--gray-200);
}

/* =========================================
   ANIMAÇÕES PADRÃO
   ========================================= */

.fade-in {
    animation: fadeIn var(--animate);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.scale-in {
    animation: scaleIn var(--animate);
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.slide-up {
    animation: slideUp var(--animate);
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* =========================================
   UTILITÁRIOS (helpers rápidos)
   ========================================= */

.flex {
    display: flex;
    align-items: center;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.grid {
    display: grid;
}

.text-center {
    text-align: center;
}

.w-full {
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: var(--space-4);
}

/* =========================================
   BOTÕES PADRÃO DA IDENTIDADE
   ========================================= */

.btn {
    padding: var(--space-4) var(--space-6);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--animate-fast);
    background: var(--blue-500);
    color: #fff;
}

.btn:hover {
    background: var(--blue-700);
}

.btn-light {
    background: var(--gray-200);
    color: var(--gray-900);
}

.btn-light:hover {
    background: var(--gray-300);
}

.center-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}


/* =========================================
   CARDS
   ========================================= */

.card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    transition: var(--animate);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* =========================================
   FORMULÁRIOS
   ========================================= */

input, select, textarea {
    width: 100%;
    padding: var(--space-3);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-300);
    font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--blue-500);
    outline: none;
}

/* =========================================
   RESPONSIVIDADE PADRÃO
   ========================================= */



/*message*/
.message {
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid #333333;
  background: #f2f2f2;
  color: #333333;
  font-size: 15px;
  line-height: 1.4;
  font-family: Arial, sans-serif;
}

/* Erro */
.message-error {
  border: 1px solid #b30000;
  background: #ffe5e5;
  color: #b30000;
}

/* Sucesso */
.message-success {
  border: 1px solid #0e6b28;
  background: #dff5e3;
  color: #0e6b28;
}

/* Aviso */
.message-warning {
  border: 1px solid #b38f00;
  background: #fff7d6;
  color: #b38f00;
}

/* Alerta */
.message-alert {
  border: 1px solid #8a5300;
  background: #ffe9cc;
  color: #8a5300;
}

/* Informativo */
.message-info {
  border: 1px solid #1e5fa3;
  background: #e5f0ff;
  color: #1e5fa3;
}

/* Debug */
.message-debug {
  border: 1px solid #555555;
  background: #eeeeee;
  color: #555555;
}

@media (max-width: 600px) {
  .main-content-list {
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
  }
}
@media (max-width: 768px) {
    .container {
        padding: var(--space-3);
    }
}
