/* ========================================
   Early Facebook + Early Internet
   Clean & Organized Version
   ======================================== */

:root {
  /* Classic early Facebook palette */
  --fb-blue: #3b5998;
  --fb-blue-dark: #2d4373;
  --fb-blue-light: #6d84b4;
  --fb-blue-hover: #4c70ba;

  --bg: #edf0f5;                 /* light gray page background */
  --white: #ffffff;
  --border: #d8dfea;
  --border-dark: #b3b3b3;
  --text: #1c1e21;
  --text-muted: #606770;
  --link: #3b5998;
  --link-hover: #2d4373;

  --radius: 3px;                 /* very small radius = early web feel */
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.1);

  --font: "Lucida Grande", "Tahoma", "Segoe UI", Arial, sans-serif;
  --font-size: 13px;
  --line-height: 1.4;
}

/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 13px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--font-size);
  line-height: var(--line-height);
  color: var(--text);
  background-color: var(--bg);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 8px;
  font-weight: bold;
  color: var(--text);
}

h1 { font-size: 18px; }
h2 { font-size: 15px; color: var(--fb-blue); }
h3 { font-size: 13px; }

p {
  margin: 0 0 10px;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--link-hover);
}

/* ===== Layout ===== */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 12px;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== Top Navigation (classic Facebook blue bar) ===== */
.topbar {
  background: var(--fb-blue);
  border-bottom: 1px solid var(--fb-blue-dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 41px;
  padding: 0 12px;
}

.logo {
  font-size: 18px;
  font-weight: bold;
  color: white;
  margin-right: 20px;
  letter-spacing: -0.5px;
}

.nav {
  display: flex;
  gap: 2px;
}

.nav a {
  color: white;
  padding: 11px 12px;
  font-weight: bold;
  font-size: 13px;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  background: var(--fb-blue-dark);
}

/* ===== Main Layout (sidebar + content) ===== */
.main {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  max-width: 980px;
  margin: 0 auto;
}

/* Left Sidebar */
.sidebar {
  width: 200px;
  flex-shrink: 0;
}

.sidebar-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.sidebar-header {
  background: #f2f2f2;
  border-bottom: 1px solid var(--border);
  padding: 7px 10px;
  font-weight: bold;
  font-size: 12px;
  color: var(--text);
}

.sidebar-content {
  padding: 8px 10px;
}

.sidebar-content a {
  display: block;
  padding: 4px 0;
  color: var(--text);
}

.sidebar-content a:hover {
  background: #f5f5f5;
  text-decoration: none;
}

/* Main Content */
.content {
  flex: 1;
  min-width: 0;
}

/* ===== Boxes / Cards (classic Facebook style) ===== */
.box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 15px;
  box-shadow: var(--shadow);
}

.box-header {
  background: #f2f2f2;
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  font-weight: bold;
  font-size: 13px;
  color: var(--fb-blue);
}

.box-body {
  padding: 12px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 4px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  color: white;
  background: var(--fb-blue);
  border: 1px solid var(--fb-blue-dark);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
}

.btn:hover {
  background: var(--fb-blue-hover);
  text-decoration: none;
}

.btn-secondary {
  background: #f2f2f2;
  color: var(--text);
  border-color: var(--border-dark);
}

.btn-secondary:hover {
  background: #e8e8e8;
}

/* ===== Forms ===== */
.input,
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 5px 8px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  background: white;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  outline: none;
}

.input:focus,
input:focus,
textarea:focus {
  border-color: var(--fb-blue);
}

/* ===== Profile / Status style ===== */
.status {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.status:last-child {
  border-bottom: none;
}

.status-name {
  font-weight: bold;
  color: var(--fb-blue);
}

.status-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 6px;
}

/* ===== Footer ===== */
.footer {
  margin-top: auto;
  padding: 15px 0;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--white);
}

.footer a {
  color: var(--text-muted);
  margin: 0 6px;
}

/* ===== Utility ===== */
.text-muted { color: var(--text-muted); }
.text-blue { color: var(--fb-blue); }
.mb-1 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 12px; }
.mt-2 { margin-top: 12px; }

.clearfix {
  display: flow-root;
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
  .main {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .topbar-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 8px 12px;
  }

  .nav {
    width: 100%;
    margin-top: 6px;
  }
}