
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  color: #333;
}

.projeto-wrapper {
  display: flex;
  // justify-content: center;
 // padding: 2rem 1rem;
  //min-height: 80vh;
  flex-direction: column;
  width: 100%;
}

.projeto-container {
  display: flex;
  width: 100%;
  // max-width: 1200px;
  gap: 2rem;
  background: #fff;
  //box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
  border-radius: 10px;
  padding: 1rem;
}

/* SIDEBAR */
.projeto-sidebar {
  //width: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 20px;
  align-self: flex-start;
}

.projeto-sidebar button {
  padding: 12px 16px;
  background-color: #eaeaea;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  color: #444;
  transition: background-color 0.3s, color 0.3s;
  text-align: left;
  box-shadow: inset 0 0 0 0 transparent;
}

.projeto-sidebar button:hover,
.projeto-sidebar button:focus {
  background-color: #d0d0d0;
  outline: none;
  //box-shadow: inset 3px 0 0 0 #0073aa;
  color: #0073aa;
}

.projeto-sidebar button.active {
  background-color: #0073aa;
  color: white;
  box-shadow: inset 3px 0 0 0 white;
}

/* CONTEÚDO */
.projeto-content {
  flex: 1;
  max-width: 1200px;
}

.projeto-title {
  text-align: center;
 // margin-bottom: 2rem;
  font-size: 2rem;
  color: #222;
}

/* SEÇÕES */
.projeto-section {
  display: none;
  //padding-top: 1rem;
}

.projeto-section.active {
  display: block;
}

/* Imagem projeto */
.projeto-content img {
  border-radius: 8px;
  max-width: 100%;
  //max-height: 350px;
  height: auto;
  display: block;
  margin-bottom: 1rem;
  background-color: #e3e3e3;
  object-fit: cover;
}

/* Listas */
.projeto-section ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem 0;
}

.projeto-section ul li {
  //background: #f0f0f0;
  margin-bottom: 8px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.projeto-section ul li a {
  color: #0073aa;
  text-decoration: none;
}

.projeto-section ul li a:hover {
  text-decoration: underline;
}

/* Botão remover */
.projeto-section form button {
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: auto;
  font-size: 1.1rem;
  color: #cc0000;
  padding: 0 6px;
  transition: color 0.3s;
}

.projeto-section form button:hover {
  color: #ff4444;
}

/* Formulário para adicionar documentos */
form {
 // background: #f7f7f7;
  //border-radius: 8px;
  //padding: 1rem 1.5rem;
  max-width: 480px;
  //margin-top: 1rem;
  //box-shadow: 0 0 10px rgb(0 0 0 / 0.05);
}

form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 12px;
  color: #333;
}

form input[type="text"],
form input[type="file"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

form input[type="text"]:focus,
form input[type="file"]:focus {
  border-color: #0073aa;
  outline: none;
}

form input[type="submit"] {
  margin-top: 16px;
  padding: 12px 20px;
  background-color: #0073aa;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

form input[type="submit"]:hover {
  background-color: #005f8d;
}

/* Mensagens de sucesso e erro */
.message {
  margin: 1rem 0;
  padding: 12px 15px;
  border-radius: 6px;
  font-weight: 600;
 max-width: 480px;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Responsivo */
@media (max-width: 768px) {
  .projeto-container {
    flex-direction: column;
    padding: 1rem;
  }

  .projeto-sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    position: static;
    margin-bottom: 1rem;
  }

  .projeto-sidebar button {
    flex: 1 0 auto;
    text-align: center;
  }
}
