/*=======================================*/
/*        Variáveis de Cores Globais     */
/*=======================================*/
:root {
    /* Cores principais */
    --color-primary: #007BFF;
    --color-primary-dark: #0056b3;
    --color-secondary: #6c757d;
    --color-success: #28a745;
    --color-danger: #dc3545;
    --color-warning: #ffc107;
    --color-info: #17a2b8;

    /* Cores de fundo e texto */
    --color-bg: #f0f0f0;
    --color-bg-dark: #e0e0e0;
    --color-bg-light: #ffffff;
    --color-text: #333;
    --color-text-light: #555;
    --color-text-muted: #888;

    /* Cores interativas */
    --color-hover-bg: #f1f1f1;
    --color-active-bg: #e9ecef;
    --color-focus: #80bdff;

    /* Bordas e sombras */
    --color-table-border: #ddd;
    --border-radius: 6px;
    --box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);

    /* Espaçamentos */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Tipografia */
    --font-family-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --line-height-base: 1.5;

    /* Tamanhos de container */
    --container-width: 1200px;
    --container-padding: 20px;

    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}


/*=======================================*/
/*        Reset e Configurações Básicas  */
/*=======================================*/
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;

    padding-bottom: 80px; /* novo: espaço para o footer fixo */
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

body {
    flex: 1;
}

main {
    flex: 1;
}


/*--------------------------------------------------------------------------------------*/
body {
  font-family: var(--font-family-base);
  background-color: var(--color-bg);
  margin: 0;
  padding: 0;
}

/* HEADER */
header {
  background: var(--color-primary-dark);
  color: var(--color-bg-light);
  padding: 15px 20px;
  width: 100%;
  box-sizing: border-box;
}

/* NAV GERAL */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* LOGO */
.logo {
  font-size: 20px;
  font-weight: bold;
  color: var(--color-bg-light);
}

/* LINKS */
.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
}

.nav-links li {
  display: inline;
}

.nav-links a {
  color: var(--color-bg-light);
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-info);
  text-decoration: underline;
}

/* ÍCONE MODO ESCURO */
.modo-escuro {
  cursor: pointer;
  font-size: 18px;
  color: var(--color-bg-light);
}

/* ÍCONE HAMBÚRGUER */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-bg-light);
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: var(--color-primary-dark);
    flex-direction: column;
    display: none;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    width: 200px;
    align-items: center;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    display: block;
  }
}


h1 {
    text-align: center;
    color: var(--color-text);
    margin-bottom: 30px;
}

h2 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

footer {
    background-color: var(--color-primary-dark);
    color: #fff;
    text-align: center;
    padding: 10px 0;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


/* Social Links - mantidos igual */
.social-links {
    display: flex;
    justify-content: center;
    width: auto;
    gap: 10px;
    margin-bottom: 5px;
}

.social-links a {
    font-size: 1rem;
    color: white;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #000000;
}


/*=======================================*/
/*          Navegação Dos Clientes        */
/*=======================================*/
.navigation {
    text-align: center;
    margin-bottom: 20px;
}

/*=======================================*/
/*          Links de Navegação            */
/*=======================================*/
a {
    display: inline-block;
    margin: 0 10px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover,
a:focus {
    color: var(--color-primary-dark);
    text-decoration: underline;
    outline: none;
}

/*=======================================*/
/*           Tabelas Dos Clientes         */
/*=======================================*/
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-table-border);
}

th {
    background-color: var(--color-primary);
    color: #fff;
    font-weight: 700;
    user-select: none;
}

tr:hover {
    background-color: var(--color-hover-bg);
    cursor: default;
}

/*=======================================*/
/*             Indicador de Carregando    */
/*=======================================*/
.loading {
    text-align: center;
    font-size: 18px;
    color: var(--color-text-light);
    padding: 20px 0;
}

/*=======================================*/
/*         Responsividade para Mobile     */
/*=======================================*/
@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
    }

    thead tr {
        display: none; /* Oculta cabeçalho */
    }

    tr {
        margin-bottom: 15px;
        border-radius: 6px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        background-color: #fff;
        padding: 10px 15px;
    }

    td {
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        border: none;
        border-bottom: 1px solid var(--color-table-border);
        position: relative;
    }

    td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--color-primary-dark);
        width: 50%;
        text-align: left;
        padding-right: 10px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    td:last-child {
        border-bottom: none;
    }
}


/*=======================================*/
/*          Cards dos Clientes           */
/*=======================================*/

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.card h3 {
  margin: 0 0 10px 0;
  color: var(--color-primary);
  font-size: 1.2em;
  user-select: none;
}

.card p {
  margin: 4px 0;
  color: #555;
  font-size: 0.9em;
  flex-grow: 1;
}

.card button {
  align-self: flex-start;
  background-color: var(--color-primary);
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.card button:hover,
.card button:focus {
  background-color: var(--color-primary-dark);
  outline: none;
}




.button {
  align-self: flex-start;
  background-color: var(--color-primary);
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button:hover,
.button:focus {
  background-color: var(--color-primary-dark);
  outline: none;
}


/*=======================================*/
/*         Adrian Razini Rangel          */
/*=======================================*/