:root {
  --primary: #4F46E5;
  --primary-hover: #4338ca;
  --secondary: #64748b;
  --success: #10b981;
  --danger: #ef4444;
  --dark: #0f172a;
  --light: #f8fafc;
  --white: #ffffff;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --radius: 0.5rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.5;
  padding: 2rem;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 3rem;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

header p {
  color: var(--secondary);
}

.section {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.btn.primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn.primary:hover {
  background-color: var(--primary-hover);
}

.btn.success {
  background-color: var(--success);
  color: var(--white);
}

.btn.success:hover {
  opacity: 0.9;
}

.btn.danger {
  background-color: var(--danger);
  color: var(--white);
}

.btn.danger:hover {
  opacity: 0.9;
}

.btn.outline {
  background-color: transparent;
  border: 1px solid var(--gray-200);
  color: var(--dark);
}

.btn.outline:hover {
  background-color: var(--gray-200);
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

/* Lists and Cards */
.grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.user-card {
  background: var(--light);
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.user-card h4 {
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.user-card p {
  font-size: 0.85rem;
  color: var(--secondary);
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 1.5rem;
  border-radius: var(--radius);
  position: relative;
  transition: transform 0.2s;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.post-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
  text-transform: capitalize;
}

.post-content p {
  color: var(--gray-500);
  font-size: 0.95rem;
}

.post-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.load-more-container {
  text-align: center;
  margin-top: 2rem;
}