/* ===== Global ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI Historic", "Segoe UI", Helvetica, Arial, sans-serif;
  background-color: #f2f4f7;
}

/* ===== Layout ===== */
.container {
  display: flex;
  flex-wrap: nowrap;
}

/* ===== Top Menu Bar ===== */
.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 56px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  z-index: 1000;
}

.topbar .menu {
  display: flex;
  gap: 15px;
}

/* ===== Hamburger ===== */
.hamburger {
  font-size: 24px;
  cursor: pointer;
  display: none;
  margin-right: 10px;
}

/* ===== Sidebar ===== */
.sidebar {
  width: 25%;
  padding: 16px;
  margin-top: 60px;
  background-color: #f2f4f7;
  transition: left 0.3s ease;
}

.sidebar a {
  display: block;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
}

.sidebar a:hover {
  background-color: #e4e6eb;
}

/* ===== Timeline ===== */
.timeline {
  width: 50%;
  padding: 16px;
  margin-top: 60px;
}

/* ===== Right Bar ===== */
.rightbar {
  width: 25%;
  padding: 16px;
  margin-top: 60px;
  background-color: #f2f4f7;
}

/* ===== Card (Post + Create Post) ===== */
.card {
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08),
              0 2px 4px rgba(0,0,0,0.06);
  margin-bottom: 16px;
}

/* ===== Inputs ===== */
textarea,
input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid #ccd0d5;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

textarea:focus,
input:focus {
  border-color: #1877f2;
}

/* ===== Buttons ===== */
button.post-btn {
  background-color: #1877f2;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
  width: 100%;
}

button.post-btn:hover {
  background-color: #166fe5;
}

/* Post Action Buttons ("Like", "Comment") */
.card .action-btn {
  background-color: transparent;
  color: #65676b;
  border: none;
  padding: 4px 8px;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 8px;
}

.card .action-btn:hover {
  background-color: rgba(0,0,0,0.05);
}

/* ===== Responsive (Mobile) ===== */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .topbar .menu {
    display: none;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100%;
    background-color: #ffffff;
    z-index: 2000;
    padding: 16px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  }
  .sidebar.active {
    left: 0;
  }
  .timeline {
    width: 100%;
  }
  .rightbar {
    display: none;
  }
}

/* ===== Create Post Editor ===== */
.create-post-card [contenteditable] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  min-height: 80px;
}

#create-post input[type="file"] {
  display: block;
}

#create-post #image-preview img {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 8px;
}

/* ===== Register Page Styles ===== */
.register-container {
  background: #ffffff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 400px;
  width: 90%;
  margin: 60px auto;
}

.register-container h1 {
  margin-bottom: 10px;
  font-size: 24px;
  text-align: center;
  color: #111;
}

.register-container p.description {
  font-size: 14px;
  color: #65676b;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

.register-container form input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid #ccd0d5;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.register-container form input:focus {
  border-color: #1877f2;
}

.register-container form button {
  width: 100%;
  padding: 12px;
  background-color: #1877f2;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.register-container form button:hover {
  background-color: #166fe5;
}

.register-container .terms {
  font-size: 12px;
  color: #65676b;
  margin-top: 12px;
  line-height: 1.4;
}

.register-container .terms a {
  color: #1877f2;
  text-decoration: none;
}

.register-container .terms a:hover {
  text-decoration: underline;
}

.register-container .bottom-text {
  font-size: 13px;
  color: #65676b;
  text-align: center;
  margin-top: 16px;
}

.register-container .bottom-text a {
  color: #1877f2;
  text-decoration: none;
  margin-left: 4px;
}

.register-container .bottom-text a:hover {
  text-decoration: underline;
}

/* ===== Login Page Styles ===== */
.login-container {
  background: #ffffff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  margin: 60px auto;
}

.login-container h2 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 16px;
  color: #111;
}

.login-container p.description {
  font-size: 14px;
  color: #65676b;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

.login-container input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid #ccd0d5;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.login-container input:focus {
  border-color: #1877f2;
}

.login-container button {
  width: 100%;
  padding: 12px;
  background-color: #1877f2;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.login-container button:hover {
  background-color: #166fe5;
}

.login-container .bottom-text {
  font-size: 13px;
  color: #65676b;
  text-align: center;
  margin-top: 16px;
}

.login-container .bottom-text a {
  color: #1877f2;
  text-decoration: none;
  margin-left: 4px;
}

.login-container .bottom-text a:hover {
  text-decoration: underline;
}