/* Tema Claro - Conteúdos Autombot */

:root {
    --background-color: #f4f4f4;
    --primary-color: #ffffff;
    --secondary-color: #e0e0e0;
    --text-color: #333333;
    --highlight-color: #007bff;
    --button-bg: #007bff;
    --button-text: #ffffff;
    --link-color: #0056b3;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

header {
    background: var(--primary-color);
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

/* LINKS */
a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* BOTÕES PADRÕES */
button,
.menu-btn {
    background: var(--button-bg);
    color: var(--button-text);
    padding: 8px 20px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 0 10px var(--highlight-color);
    transition: all 0.3s ease;
}

button:hover,
.menu-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--highlight-color);
    opacity: 0.95;
}

/* MENU */
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0;
}

nav a {
    text-decoration: none;
}

/* BOTÃO DE TEMA */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    border: 2px solid var(--highlight-color);
    cursor: pointer;
    transition: 0.3s;
}

.theme-toggle:hover {
    box-shadow: 0 0 15px var(--highlight-color);
}

/* MENU LISTADO PADRÃO */
nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

nav ul li a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: bold;
  background-color: var(--highlight-color);
  color: var(--button-text);
  border-radius: 25px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  filter: brightness(1.1);
}


/* DOWNLOADS PAGE - Estilo Responsivo (Tema Claro) */

.downloads-container {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.sidebar {
  background: #f0f0f0;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 180, 255, 0.3);
  height: fit-content;
  position: sticky;
  top: 20px;
  flex: 1 1 180px;
  min-width: 180px;
}

.sidebar button {
  display: block;
  width: 100%;
  margin-bottom: 15px;
  background: #00c6ff;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s ease;
}

.sidebar button:hover {
  transform: scale(1.05);
  background: #00a8d2;
}

.content-area {
  flex: 3 1 300px;
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 180, 255, 0.2);
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

.file-card {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  color: #333;
  border: 1px solid #ddd;
}

.file-card .buttons {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.file-card .info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.file-card img.logo-preview {
  max-height: 60px;
  max-width: 100px;
  margin-right: 15px;
  border-radius: 8px;
}

button.copiado::after {
  content: " \2714";
}

@media (max-width: 768px) {
  .downloads-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    position: static;
  }

  .sidebar button {
    flex: 1 1 45%;
    margin: 0;
  }

  .content-area {
    width: 100%;
  }

  .file-card .info {
    flex-direction: column;
    align-items: flex-start;
  }

  .file-card .buttons {
    justify-content: center;
  }
}

/* Impede rolagem lateral */
body {
  overflow-x: hidden;
}

/* Impede rolagem lateral */
body {
  overflow-x: hidden;
}

/* Corrige largura máxima de elementos principais */
.container,
.downloads-container,
.sidebar,
.content-area,
.file-card {
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}

/* Evita que botões e textos fiquem largos demais */
.file-card .info,
.file-card .buttons {
  flex-wrap: wrap;
  word-break: break-word;
}

.sidebar button,
button {
  max-width: 100%;
}

.file-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--secondary-color);
  color: var(--text-color);
  border: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-card .info {
  flex: 1;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-card .buttons {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
}

.file-card button {
  padding: 6px 12px;
  font-size: 13px;
  white-space: nowrap;
}
