:root {
  --main-color: #0f766e;
  --highlight-color: #14b8a6;
  --error-color: #bc2c1a;
  --warning-color: #ffbc42;
  --background-color: #f6f7f8;
  --text-color: #1f2933;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--background-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  height: 100vh;
}

header, footer {
  background: var(--main-color);
  color: white;
  padding: 15px;
  text-align: center;
  flex-grow: 0;
  flex-shrink: 0;
}

main {
  flex-grow: 1;
  height: 100%;
}

nav a {
  color: white;
  margin: 0 12px;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* ===== Layout ===== */
.container {
  width: 900px;
  margin: 30px auto;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.error {
  color: var(--error-color);
}

/* ===== Posts, Messages, Comments ===== */
.post, .message, .comment {
  border-bottom: 1px solid var(--background-color);
  padding: 12px 0;
}

.post h3 a {
  color: var(--main-color);
  text-decoration: none;
}

.post h3 a:hover {
  text-decoration: underline;
}


button {
  background: var(--highlight-color);
  color: white;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 6px;
  font-weight: bold;
}

button:hover {
  background: #0f766e;
}


input, textarea, select {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
}

textarea {
  resize: vertical;
}


.chat-left {
  background: #e5e7eb;
  padding: 10px 14px;
  border-radius: 12px;
  margin: 6px 0;
  width: 60%;
}

.chat-right {
  background: var(--highlight-color);
  color: white;
  padding: 10px 14px;
  border-radius: 12px;
  margin: 6px 0;
  width: 60%;
  margin-left: auto;
}


a {
  color: var(--main-color);
}

.profile-container {
  max-width: 700px;
  margin: 40px auto;
  text-align: center;
}

.profile-card {
  padding: 20px;
  border: 1px solid #ddd;
  margin-bottom: 20px;
}

.avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #ccc;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-actions .profile-box {
  background: #eee;
  padding: 15px;
  margin: 10px 0;
}

.profile-actions a {
  text-decoration: none;
  font-weight: bold;
  color: #333;
}

.profile-edit button {
  padding: 10px 20px;
  background: var(--highlight-color);
  color: white;
  border: none;
  cursor: pointer;
}

.delete-btn {
  float: right;
}
