:root {
  --primary: #2563eb;
  --bg-dark: #0f172a;
  --card-bg: #1e293b;
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #334155;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  min-height: 100vh;
}

.navbar {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
}

.nav-links a, .nav-links button {
  color: var(--text-light);
  text-decoration: none;
  margin-left: 1rem;
  background: none;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
}

.container {
  max-width: 650px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.input-group {
  margin-bottom: 1rem;
}

.input-group input, .input-group textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #0f172a;
  color: white;
}

.btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
}

.btn:hover {
  opacity: 0.9;
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 0.75rem;
}

.post-img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 0.75rem;
}

.post-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.95rem;
}

.action-btn.active {
  color: #ef4444;
}

/* মোবাইল ফ্রেন্ডলি পোস্ট এডিট ও ডিলিট বাটন */
.post-menu {
  display: flex;
  gap: 6px;
  align-items: center;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-icon.edit-btn {
  color: #60a5fa;
}

.btn-icon.delete-btn {
  color: #f87171;
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.8rem 1rem;
  }
  .brand {
    font-size: 1.25rem;
  }
  .btn-icon {
    padding: 4px 7px;
    font-size: 0.75rem;
  }
}