/* ============================================================
   তথাগত সংসদ — Admin Panel
   ডেস্কটপ-অনলি: কোনো media query / mobile view নেই।
   ============================================================ */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-width: 1280px;              /* ডেস্কটপের নিচে স্ক্রল হবে, লেআউট ভাঙবে না */
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'Segoe UI', sans-serif;
  background: #eef2f8;
  color: #0f2440;
}

body { display: flex; flex-direction: column; min-height: 100vh; }

/* ---------------- Header ---------------- */
.admin-header {
  height: 68px;
  padding: 0 34px;
  background: linear-gradient(90deg, #0d2f5c 0%, #164a86 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(13, 47, 92, 0.25);
}

.brand { display: flex; align-items: baseline; gap: 12px; }
.brand-mark { font-size: 22px; font-weight: 700; letter-spacing: 0.3px; }
.brand-sub {
  font-size: 13px;
  font-weight: 500;
  color: #a8c6ea;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.header-right { display: flex; align-items: center; gap: 18px; }
.who { font-size: 14px; color: #cfe0f5; }
.logout-btn {
  padding: 8px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  cursor: pointer;
}
.logout-btn:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------------- Layout ---------------- */
.admin-main { flex: 1; width: 100%; padding: 34px 34px 60px; }

.page { display: none; }
.page.active { display: block; }

.page-head { margin-bottom: 26px; }
.page-head h1 { margin: 6px 0 6px; font-size: 28px; font-weight: 700; color: #0d2f5c; }
.page-head p { margin: 0; font-size: 15px; color: #5b7291; }

.crumb { font-size: 13px; color: #7b91ad; }
.crumb .sep { margin: 0 8px; color: #b6c6d9; }
.link-back {
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #1b62b3;
  background: none;
  border: none;
  cursor: pointer;
}
.link-back:hover { text-decoration: underline; }

.grid { display: grid; gap: 22px; }
.role-grid { grid-template-columns: repeat(3, 1fr); }
.two-col { grid-template-columns: repeat(2, 1fr); }
.three-col { grid-template-columns: repeat(3, 1fr); }

/* ---------------- Cards ---------------- */
.card {
  position: relative;
  padding: 30px 26px 26px;
  background: #fff;
  border: 1px solid #dce6f2;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(16, 44, 78, 0.06);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #9fc4ec;
  box-shadow: 0 12px 26px rgba(16, 44, 78, 0.14);
}
.card.big { padding: 38px 32px 34px; }

.card-title { font-size: 19px; font-weight: 700; color: #0d2f5c; }
.card.big .card-title { font-size: 22px; }
.card-desc { margin-top: 6px; font-size: 14px; line-height: 1.6; color: #6a819c; }
.card-go { margin-top: 18px; font-size: 14px; font-weight: 600; color: #1b62b3; }

/* ---------------- Name list ---------------- */
.name-list {
  background: #fff;
  border: 1px solid #dce6f2;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(16, 44, 78, 0.06);
}
.name-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 26px;
  border-bottom: 1px solid #eef3f9;
  cursor: pointer;
  transition: background 0.12s ease;
}
.name-row:last-child { border-bottom: none; }
.name-row:hover { background: #f4f9ff; }

.avatar {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: #1b62b3;
}
.name-main { flex: 1; }
.name-text { font-size: 16px; font-weight: 600; color: #12294a; }
.name-meta { font-size: 13px; color: #7b91ad; }
.name-count { font-size: 13px; color: #5b7291; white-space: nowrap; }
.name-go { font-size: 14px; font-weight: 600; color: #1b62b3; }

/* ---------------- Table ---------------- */
.table-wrap {
  background: #fff;
  border: 1px solid #dce6f2;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(16, 44, 78, 0.06);
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead th {
  padding: 15px 22px;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  color: #0d2f5c;
  background: #eaf2fc;
  border-bottom: 1px solid #d7e4f3;
}
.data-table tbody td {
  padding: 16px 22px;
  font-size: 15px;
  color: #21395a;
  border-bottom: 1px solid #f0f4fa;
  vertical-align: top;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #f7fbff; }
.col-sl { width: 90px; }
.col-date { width: 200px; }
.act-title { font-weight: 600; color: #12294a; }
.act-detail { margin-top: 3px; font-size: 13px; color: #7b91ad; }

/* ---------------- Login ---------------- */
.login-card {
  width: 420px;
  margin: 60px auto 0;
  padding: 40px 38px 30px;
  background: #fff;
  border: 1px solid #dce6f2;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(16, 44, 78, 0.12);
}
.login-head { text-align: center; margin-bottom: 28px; }
.login-logo { font-size: 26px; font-weight: 700; color: #0d2f5c; }
.login-sub {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #1b62b3;
}
.login-card label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #24456f;
}
.login-card input {
  width: 100%;
  height: 46px;
  margin-bottom: 18px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 15px;
  color: #12294a;
  background: #f8fbff;
  border: 1px solid #cfdcec;
  border-radius: 9px;
  outline: none;
}
.login-card input:focus { border-color: #1b62b3; background: #fff; box-shadow: 0 0 0 3px rgba(27, 98, 179, 0.12); }

.btn-primary {
  width: 100%;
  height: 48px;
  margin-top: 4px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #0d2f5c, #1b62b3);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.btn-primary:hover { filter: brightness(1.08); }

.login-error {
  min-height: 20px;
  margin: -6px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #c62828;
}
.login-note {
  margin-top: 20px;
  padding-top: 16px;
  font-size: 12px;
  text-align: center;
  color: #8fa2b8;
  border-top: 1px solid #eef3f9;
}

/* ---------------- Misc ---------------- */
.empty-box {
  padding: 46px 30px;
  font-size: 15px;
  text-align: center;
  color: #7b91ad;
  background: #fff;
  border: 1px dashed #c9d9ea;
  border-radius: 14px;
}

.admin-footer {
  padding: 16px 34px 24px;
  font-size: 12.5px;
  color: #93a7be;
  text-align: center;
}

.demo-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  color: #1b62b3;
  background: #eaf3ff;
  border-radius: 20px;
  vertical-align: middle;
}

/* ---------------- Post list (পাবলিক সাইটের মতো) ---------------- */
.single-card { max-width: 460px; margin-bottom: 34px; }

.section-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: #0d2f5c;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}

.post-card {
  display: flex;
  flex-direction: column;
  padding: 24px 22px 20px;
  background: #fff;
  border: 1px solid #dce6f2;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(16, 44, 78, 0.06);
}
.post-date { font-size: 13px; font-weight: 600; color: #1b62b3; margin-bottom: 10px; }
.post-headline { margin: 0 0 10px; font-size: 18px; font-weight: 700; color: #0d2f5c; }
.post-body { margin: 0 0 14px; font-size: 14px; line-height: 1.7; color: #5b7291; flex: 1; }
.post-attach {
  margin-bottom: 16px;
  padding-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #1b62b3;
  border-top: 1px solid #eef3f9;
}
.post-attach.muted { color: #9aaec5; font-weight: 500; }

.row-actions { display: flex; gap: 10px; }

/* ---------------- Small buttons ---------------- */
.btn-small {
  padding: 8px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #0d2f5c;
  background: #eaf3ff;
  border: 1px solid #bcd7f2;
  border-radius: 8px;
  cursor: pointer;
}
.btn-small:hover { background: #dbeaff; }
.btn-small.btn-danger {
  color: #b3261e;
  background: #fdecea;
  border-color: #f2c3bf;
}
.btn-small.btn-danger:hover { background: #fbdad6; }

/* ---------------- Form cards ---------------- */
.form-card {
  max-width: 720px;
  margin-bottom: 24px;
  padding: 30px 28px;
  background: #fff;
  border: 1px solid #dce6f2;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(16, 44, 78, 0.06);
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #24456f;
}
.field input[type="text"],
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: #12294a;
  background: #f8fbff;
  border: 1px solid #cfdcec;
  border-radius: 9px;
  outline: none;
}
.field textarea { resize: vertical; line-height: 1.7; }
.field input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: #24456f;
  background: #f8fbff;
  border: 1px dashed #cfdcec;
  border-radius: 9px;
}
.field input:focus, .field textarea:focus {
  border-color: #1b62b3;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(27, 98, 179, 0.12);
}
.field-hint { margin-top: 8px; font-size: 12.5px; color: #7b91ad; }

.btn-inline { width: auto; padding: 0 34px; }

.form-section-actions { display: flex; gap: 12px; }

/* ---------------- Note card ---------------- */
.note-card {
  border: 1px solid #f0cd7a;
  background: #fffdf6;
}
.note-head { margin-bottom: 6px; font-size: 16px; font-weight: 700; color: #0d2f5c; }
.note-help { margin: 0 0 18px; font-size: 13px; color: #8a7752; }
.req { color: #c62828; }

.form-msg { min-height: 20px; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.form-msg.ok { color: #1b7a3e; }
.form-msg.error { color: #c62828; }

/* ---------------- Delete ---------------- */
.btn-danger {
  color: #ffffff !important;
  background: linear-gradient(90deg, #a3271f, #c62828) !important;
  border-color: #a3271f !important;
}
.btn-danger:hover { filter: brightness(1.08); }
.del-summary {
  margin-bottom: 22px;
  padding: 18px 20px;
  background: #f8fbff;
  border: 1px solid #e3ecf6;
  border-radius: 10px;
}
.del-row { padding: 4px 0; font-size: 15px; color: #5b7291; }
.del-row b { color: #12294a; }

/* ---------------- Table action columns ---------------- */
.col-file { width: 230px; }
.col-diff { width: 250px; }
.diff-line { font-size: 13.5px; line-height: 1.6; color: #5b7291; }
.diff-line + .diff-line { margin-top: 5px; }
.diff-none { color: #a9bacd; }
.col-act { width: 110px; }
.data-table td .btn-small { padding: 6px 16px; font-size: 13px; }
