/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Playwrite+AT:ital@0;1&family=Work+Sans:wght@300;400;600&display=swap');

:root {
  --gray: #212B2A;
  --white: #FFFFFF;
  --teal: #21A68D;
  --green: #7DA626;
  --orange: #F69E1D;
}

/* Remove old conflicting styles */

.landing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #fff;
    padding: 20px;
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-section img.logo {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.instructions-section {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
}

.actions-section {
    display: flex;
    gap: 20px;
}

.btn-action {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
}

.btn-action:hover {
    background-color: #45a049;
}

/* .btn-upload {
    background-color: var(--green);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: inline-flex; /* Mantém alinhamento ícone/texto, mas sem ocupar toda a largura 
    align-items: center;
    width: auto; /* Garante que ele não estique 
    flex: 0 0 auto; /* Se estiver dentro de um flex container, impede expansão 
} */

.btn-upload {
    background-color: var(--green);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: right;
    width: fit-content; /* tamanho apenas do conteúdo */
    flex: none;    
    margin-left: 0;
    margin-right: auto;
    display: inline-flex;
}


.btn-upload i {
    margin-right: 8px;
}

.btn-upload:hover {
    background-color: #45a049;
}


body {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  background-color: var(--white);
  color: var(--gray);
  line-height: 1.6;
}

header {
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

.logo {
  font-family: 'Playwrite AT', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 2.5rem;
  color: var(--gray);
}

/* Estilo para a logo na sidebar */
.sidebar .logo {
  font-size: 1.5rem;  /* Tamanho menor */
  width: 80px; /* Ajuste o tamanho da imagem da logo */
  height: auto;  /* Para manter a proporção */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playwrite AT', serif;
  font-style: italic;
  font-weight: 400;
}

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--gray);
  font-weight: 600;
  font-size: 1rem;
}

.hero {
  text-align: center;
  padding: 3rem 2rem 2rem;
  max-width: 800px;
  margin: auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-button {
  background-color: var(--teal);
  color: var(--white);
  text-decoration: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.hero-button:hover {
  background-color: #1a8874;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.feature {
  background-color: #f9f9f9;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature h2 {
  font-family: 'Playwrite AT', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 2.1rem;
  margin-bottom: 0.5rem;
}

.feature h2.teal {
  color: var(--teal);
}

.feature h2.orange {
  color: var(--orange);
}

.feature h2.green {
  color: var(--green);
}

.feature p {
  font-size: 1rem;
  font-weight: 400;
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--gray);
}

/* Responsividade */

/* Para telas pequenas (menos de 768px) */
@media (max-width: 768px) {
    .user-bar {
        height: 50px; /* Reduz a altura da faixa */
        padding: 0 10px; /* Reduz o padding */
    }

    .user-name {
        font-size: 16px; /* Reduz o tamanho da fonte */
    }

    .btn-logout {
        font-size: 14px; /* Reduz o tamanho da fonte do botão */
        padding: 8px 16px; /* Reduz o padding do botão */
    }

    .container {
        flex-direction: column; /* Muda o layout para coluna */
    }

    .sidebar {
        width: 100%; /* Faz a barra lateral ocupar toda a largura */
        height: auto; /* Permite que a altura se ajuste ao conteúdo */
        position: relative; /* Remove o posicionamento fixo */
    }

    .content {
        margin-left: 0; /* Remove a margem para a barra lateral */
    }

    .csv-table {
        font-size: 14px; /* Ajusta o tamanho da fonte da tabela */
    }

    .csv-table th, .csv-table td {
        padding: 8px; /* Reduz o padding das células */
    } 
    .sidebar .logo {
      font-size: 1.2rem;  /* Tamanho ainda menor para telas pequenas */
      width: 60px;
    }

}

/* Para telas extra pequenas (menos de 480px) */
@media (max-width: 480px) {
    .user-name {
        font-size: 14px; /* Reduz ainda mais o tamanho da fonte */
    }

    .btn-logout {
        font-size: 12px; /* Reduz o tamanho da fonte do botão */
        padding: 6px 12px; /* Reduz o padding do botão */
    }

    .csv-table {
        font-size: 12px; /* Ajusta ainda mais o tamanho da fonte da tabela */
    }

    .csv-table th, .csv-table td {
        padding: 6px; /* Reduz o padding das células */
    }
}