* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 250px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-item {
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 15px;
  color: #333;
  text-decoration: none;
}

.menu-item:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: translateX(5px);
}

.menu-item.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.menu-item i {
  font-size: 20px;
  width: 25px;
}

/* Main Content */
.main-content {
  margin-left: 250px;
  padding: 30px;
}

.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 30px;
  border-radius: 20px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header h1 {
  color: #333;
  font-size: 28px;
}

.auth-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-secondary {
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Create Post Section */
.create-post {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.create-post-input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  font-size: 16px;
  margin-bottom: 15px;
  transition: all 0.3s;
}

.create-post-input:focus {
  outline: none;
  border-color: #667eea;
}

.post-type-selector {
  display: none;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 15px;
}

.post-type-selector.active {
  display: flex;
}

.post-type-option {
  padding: 20px;
  background: white;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.post-type-option:hover {
  border-color: #667eea;
  transform: scale(1.02);
}

.post-type-option h3 {
  color: #667eea;
  margin-bottom: 8px;
}

.post-type-option p {
  color: #666;
  font-size: 14px;
}

/* Posts Feed */
.posts-feed {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.post-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.post-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.user-info h3 {
  color: #333;
  font-size: 16px;
}

.user-info p {
  color: #999;
  font-size: 13px;
}

.post-badge {
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-plantio {
  background: #d4edda;
  color: #155724;
}

.badge-denuncia {
  background: #f8d7da;
  color: #721c24;
}

.badge-comunidade {
  background: #d1ecf1;
  color: #0c5460;
}

.post-content {
  margin: 20px 0;
}

.post-content h2 {
  color: #333;
  margin-bottom: 10px;
  font-size: 20px;
}

.post-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.post-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 20px 0;
}

.post-image {
  width: 100%;
  height: 250px;
  border-radius: 15px;
  object-fit: cover;
}

.post-map {
  width: 100%;
  height: 250px;
  border-radius: 15px;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.post-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  margin: 15px 0;
}

.workflow-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin: 10px 0;
}

.status-nao-resolvido {
  background: #fff3cd;
  color: #856404;
}

.status-progresso {
  background: #cce5ff;
  color: #004085;
}

.status-resolvido {
  background: #d4edda;
  color: #155724;
}

.post-actions {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: #666;
  font-size: 15px;
  transition: all 0.3s;
}

.action-btn:hover {
  background: #f0f0f0;
  color: #667eea;
}

.action-btn.liked {
  color: #e74c3c;
}

@media (max-width: 768px) {
  .sidebar {
    width: 70px;
  }

  .sidebar .logo,
  .menu-item span {
    display: none;
  }

  .main-content {
    margin-left: 70px;
  }

  .post-media {
    grid-template-columns: 1fr;
  }
}
