body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f4f6f8;
  color: #333;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  padding: 10px 20px;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.logo a {
  text-decoration: none;
  color: #0070f3;
  font-weight: bold;
  font-size: 20px;
}

.search input {
  padding: 5px 10px;
  width: 200px;
}

.admin-link a {
  text-decoration: none;
  color: #0070f3;
}

/* LAYOUT */
.main-layout {
  display: flex;
  margin-top: 70px;
  padding: 20px;
  gap: 20px;
}

.content-area {
  display: flex;
  width: 100%;
}

.posts {
  flex: 3;
}

.sidebar {
  flex: 1;
  background: #fff;
  padding: 15px;
  border-left: 1px solid #ddd;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin: 8px 0;
}

.sidebar a {
  color: #0070f3;
  text-decoration: none;
}

.sidebar a:hover {
  text-decoration: underline;
}

/* POSTS */
.post {
  background: white;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.post h3 {
  margin-top: 0;
  color: #0070f3;
}

/* CODE */
pre {
  background: #f0f0f0;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
}

.copy-btn {
  margin-bottom: 5px;
  background: #007bff;
  color: white;
  padding: 5px 10px;
  border: none;
  cursor: pointer;
}
.copy-btn:hover {
  background: #0056b3;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .main-layout,
  .content-area {
    flex-direction: column;
  }

  .sidebar {
    border-left: none;
    border-top: 1px solid #ddd;
  }

  .search input {
    width: 100px;
  }
}
