/* ========== GLOBAL RESET ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

:root {
  --blue: #2b59c3;
  --green: #27ae60;
  --yellow: #f1c40f;
  --purple: #8e44ad;
  --light-bg: #f8faff;
  --dark-bg: #121826;
  --text-dark: #1e2a3a;
  --text-light: #e8eefc;
}

/* ========== LOGIN PAGE ========== */
.login-body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #e10091 0%, #00ffebdb 100%);
}

.login-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(30,60,120,0.15);
  width: 100%;
  max-width: 400px;
  padding: 40px 32px;
  margin: 100px 16px;
  animation: fadeIn 0.6s ease;
}

/* extra small screens tweak */
@media (max-width: 450px) {
  .login-card {
    padding: 28px 20px;
    border-radius: 14px;
    align-self: center;
    justify-self: center;
  }
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.login-brand {
  text-align: center;
  margin-bottom: 28px;
}
.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #162171;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0px auto 0px;
  font-size: 30px;
}
.subtitle {
  font-size: 14px;
  color: #6b7280;
}

.login-form label {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 14px;
  color: #1e2a3a;
}
.login-form input {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  border: 1px solid #e0e4f0;
  border-radius: 10px;
  background: #f7f9fc;
  font-size: 15px;
  outline: none;
  transition: border 0.2s ease;
}
.login-form input:focus {
  border-color: var(--blue);
}

.password-group {
  position: relative;
}
.password-group button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.checkbox {
  font-size: 13px;
  color: #4b5563;
}
.forgot-link {
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
}
.forgot-link:hover {
  text-decoration: underline;
}

.btn {
  display: block;
  width: 100%;
  margin-top: 22px;
  padding: 12px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(43,89,195,0.25);
}
.btn-primary:hover {
  background: #244ba2;
}

.register-text {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: #555;
}
.register-text a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}
.register-text a:hover {
  text-decoration: underline;
}




/* =========================================
   SHALAHELPER CRM — DASHBOARD THEME (LabourLink Style)
   ========================================= */

/* GOOGLE FONT */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* RESET & BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

:root {
  --blue: #2b59c3;
  --green: #27ae60;
  --yellow: #f1c40f;
  --red: #e74c3c;
  --light-bg: #f8faff;
  --border: #e6ebf5;
  --text-dark: #1e2a3a;
  --text-light: #6b7280;
}

body {
  background: var(--light-bg);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* =========================================
   HEADER / TOPBAR
   ========================================= */
.topbar {
 background: linear-gradient(135deg, #e10091 0%, #000000  100%);
  color: #fff;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
  gap: 10px;
}
.brand span {
  letter-spacing: 0.5px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.icon-btn {
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
}
.search-bar {
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  outline: none;
}
.user-circle {
  background: #fff;
  color: var(--blue);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 600;
}

/* =========================================
   SIDEBAR
   ========================================= */
.sidebar {
  position: fixed;
  top: 80px;
  left: 0;
  bottom: 0;
  width: 230px;
  background: #fff;
  border-right: 1px solid #e8ebf5;
  padding-top: 20px;
  transition: width 0.3s ease;
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.08);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: #000;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s ease;
}
.nav-item:hover,
.nav-item.active {
 background: linear-gradient(135deg, #e10091 0%, #000000  100%);
  color: #fff;
  margin-bottom: 10px;
  border-radius: 11px;
  margin-right: 10px;
  margin-left: 10px;
  
}
.nav-item i {
  font-size: 18px;
}




/* =========================================
   MAIN CONTENT
   ========================================= */
.main-content {
  margin-left: 230px;
  padding: 90px 30px 50px;
  min-height: 100vh;
  transition: margin 0.3s ease;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.page-header h1 {
  font-size: 22px;
  font-weight: 600;
}

.btn-accent {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-accent:hover {
  background: #1e8c4b;
}

/* =========================================
   DASHBOARD CARDS
   ========================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 10px 25px rgba(30, 58, 138, 0.15);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
}
.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
}
.card-icon.blue { background: var(--blue); }
.card-icon.green { background: var(--green); }
.card-icon.yellow { background: var(--yellow); color: #222; }
.card-icon.red { background: var(--red); }

.card-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.card-info p {
  font-size: 14px;
  color: var(--text-light);
}

/* =========================================
   CHART / DATA SECTION
   ========================================= */
.chart-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}
.chart-card h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  text-align: center;
  padding: 20px;
  color: #777;
  font-size: 14px;
  border-top: 1px solid var(--border);
  background: #fff;
  margin-top: 30px;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 700px) {
  .sidebar {
    position: fixed;
    top: 110px;
    left: 0;
    width: 230px;
    transform: translateX(-100%);
    transition: transform 0.35s ease-in-out;
    z-index: 999;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.08);
  }

  /* 👇 slide-in animation */
  .sidebar.show {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 130px 20px;
  }
}

/* =========================================
   WELCOME CARD / HERO BANNER
   ========================================= */
.welcome-card {
  background: linear-gradient(135deg, var(--primary) 0%, #233d94 60%, #1E3A8A 100%);
  color: #000;
  border-radius: 18px;
  padding: 28px 36px;
  box-shadow: 0 10px 25px rgba(30, 58, 138, 0.15);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: fadeIn 0.6s ease;
}

.welcome-text h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.welcome-text h2 span {
  color: #162171; /* warm yellow accent */
}

.welcome-text p {
  font-size: 15px;
  font-weight: 400;
  color: #000;
}

/* small screens */
@media (max-width: 600px) {
  .welcome-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
  }
  .welcome-text h2 {
    font-size: 18px;
  }
  .welcome-text p {
    font-size: 14px;
  }
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Dropdown */
.lang-select {
  background: #fff;
  color: var(--text-dark);
  font-weight: 500;
  border: none;
  outline: none;
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}
.lang-select:hover {
  background: #f0f4ff;
}

/* Dark Mode Button */
.dark-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 14px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.dark-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* Logout Button */
.logout-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #162171;
  border: none;
  padding: 6px 8px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.logout-btn:hover {
  background: #f0f4ff;
}

/* Responsive fix */
@media (max-width: 600px) {
  .topbar {
    flex-direction: column;
    height: auto;
    padding: 12px;
    gap: 10px;
  }
  .top-actions {
    width: 100%;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px;
    margin-top: 8px;
  }
}



/* Quick action card (Create Post) */
.quick-action.card {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Button inside */
.qa-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
  padding: 10px;
  border-radius: 12px;
  transition: background .15s ease, transform .12s ease;
}
.qa-btn:hover { transform: translateY(-4px); background: linear-gradient(180deg, #fbfcff, #f6f8ff); }

/* icon container */
.qa-icon {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: 0 0 64px;
  font-size: 28px;
  box-shadow: 0 6px 18px rgba(16,185,129,0.14);
}
.qa-icon.blue { background: #163171;}
.qa-icon.green { background: var(--accent); }

/* small plus badge on icon */
.qa-badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(16,185,129,0.12);
  font-size: 14px;
}
.qa-badge.plus { color: #10B981; }

/* text part */
.qa-text strong { display: block; font-size: 15px; color: var(--text-dark); }
.qa-text small { color: var(--text-light); font-size: 13px; }

/* responsive */
@media (max-width: 700px) {
  .qa-icon { width: 56px; height: 56px; flex: 0 0 56px; }
  .qa-badge { width: 18px; height: 18px; font-size: 12px; bottom: -5px; right: -5px; }
}

/* =====================================================
   FILE INFO STRIP INSIDE CREATE POST CARD (FINAL)
   ===================================================== */
.file-info {
     margin-top: 0px;
    border-top: 0px dashed #e3e8f0;
    padding-top: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    font-size: 13px;
    color: var(--text-light);
}

.file-info .allow-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #10b981; /* emerald */
}

.allow-icon {
  font-size: 15px;
}

.file-info span {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: background 0.2s ease, transform 0.2s ease;
}

.file-info span:hover {
  background: #edf2ff;
  transform: translateY(-2px);
}

.file-info i {
  font-style: normal;
  font-size: 15px;
}

.file-info span:nth-child(2) i { color: #ef4444; }  /* PDF - red */
.file-info span:nth-child(3) i { color: #3b82f6; }  /* JPEG - blue */
.file-info span:nth-child(4) i { color: #10b981; }  /* DOC - green */
.file-info span:nth-child(5) i { color: #f59e0b; }  /* XLS - amber */

/* small screens tweak */
@media (max-width: 600px) {
  .file-info { font-size: 12px; gap: 8px; }
  .file-info span { padding: 5px 8px; }
}


/* ==== Post Management Page ==== */
.post-management-container {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  max-width: 1100px;
  margin: 150px auto;
  font-family: "Poppins", sans-serif;
}

.page-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 25px;
  text-align: center;
}

.filter-search {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fafafa;
  font-size: 14px;
}

.search-box {
  display: flex;
  gap: 8px;
}

.search-input {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 220px;
}

.search-btn {
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: 0.2s;
}
.search-btn:hover {
  background: #005b87;
}

.table-wrapper {
  overflow-x: auto;
}

.post-table {
  width: 100%;
  border-collapse: collapse;
}

.post-table th, .post-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.post-table th {
  background: #f9fafb;
  font-weight: 600;
}

.post-table tr:hover {
  background: #f5faff;
}

.status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
}
.status.active {
  background: #e0f7e9;
  color: #159f3d;
}
.status.draft {
  background: #fff5d6;
  color: #a67c00;
}

.action-btns {
  display: flex;
  gap: 6px;
}

.btn {
  border: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 14px;
  transition: 0.2s ease-in-out;
}
.btn-download {
  background: #e0f2ff;
}
.btn-download:hover {
  background: #cbe7ff;
}

.btn-edit {
  background: #fff5e0;
}
.btn-edit:hover {
  background: #ffebbb;
}

.btn-delete {
  background: #ffe0e0;
}
.btn-delete:hover {
  background: #ffc4c4;
}

.btn-view {
  background: #e9e9ff;
}
.btn-view:hover {
  background: #d4d4ff;
}

.btn-report {
  background: #e4f7e7;
}
.btn-report:hover {
  background: #cff3d3;
}

/* Responsive */
/* 📱 Mobile responsive adjustment */
@media (max-width: 768px) {
  .filter-search {
    flex-direction: column;
    align-items: stretch;
  }

  .filters,
  .actions-box {
    flex-direction: column;
    width: 100%;
  }

  .filter-select,
  .filter-date,
  .search-input,
  .search-btn,
  .btn-create {
    width: 100%;
  }

  .date-filter {
    width: 100%;
    justify-content: space-between;
  }

  .search-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .search-box input,
  .search-box button {
    width: 100%;
  }
}



.date-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fafafa;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 6px 10px;
}
.date-filter label {
  font-size: 14px;
  color: #444;
}
.filter-date {
  border: none;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  color: #222;
  outline: none;
}
.filter-date::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(0.3);
}

/* Create Button */
.btn-create {
  background: linear-gradient(135deg, #2b59c3 0%, #27ae60 100%);
  color: #fff;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.2s;
  margin-left: 10px;
}
.btn-create:hover {
  background: #1e40af;
  transform: translateY(-2px);
}

/* Adjust layout for search + button */
.actions-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .actions-box {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-create {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
    margin-top: 8px;
  }
}



.date-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fafafa;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 6px 10px;
}

.date-filter label {
  font-size: 14px;
  color: #444;
}

.filter-date {
  border: none;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  color: #222;
  outline: none;
}

.filter-date::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(0.3);
}


.create-post-container {
  max-width: 900px;
  margin: 120px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  padding: 30px;
  font-family: 'Poppins', sans-serif;
}

.page-title {
  font-size: 1.7rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 25px;
  text-align: center;
}

.create-post-form .form-group {
  margin-bottom: 20px;
}

.create-post-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #374151;
}

.input-field, .textarea-field {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  background: #f9fafb;
  transition: 0.2s;
}

.input-field:focus, .textarea-field:focus {
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.textarea-field {
  min-height: 140px;
  resize: vertical;
}

/* Upload box */
.upload-box {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  background: #f8fafc;
  transition: 0.2s;
}
.upload-box:hover {
  border-color: #3b82f6;
  background: #f0f9ff;
}
.file-input {
  display: none;
}
.upload-label {
  cursor: pointer;
  font-weight: 500;
  color: #2563eb;
  font-size: 15px;
}

/* Submit button */
.btn-submit {
  background: #2563eb;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.btn-submit:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.text-center {
  text-align: center;
}

.back-btn-inline {
  background: #000000;
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  margin-right: 12px;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}
.back-btn-inline:hover {
  background: #1e40af;
  transform: translateY(-1px);
}


@media (max-width: 768px) {
  .btn-create {
    width: 92%;
    text-align: center;
    justify-content: center;
    display: flex;
    margin-top: 8px;
  }
}

/* 📱 Mobile menu button (hamburger icon) */
.mobile-menu-btn {
  display: none; /* hidden by default */
  background: none;
  border: none;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
  margin-right: 10px;
}

/* Only show on mobile */
@media (max-width: 768px) {
  .mobile-menu-btn {
   display: block;
        width: 25%;
        margin-left: -15px;
  }

  .topbar {
    justify-content: space-between;
    padding: 10px 16px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }
}


/* ====== PEEO School Post Status Page ====== */
.post-status-container {
  max-width: 1100px;
  margin: 120px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  padding: 30px;
  font-family: 'Poppins', sans-serif;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 25px;
  text-align: center;
}

/* 🔹 Post Info */
.post-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  justify-content: space-between;
}

.info-box {
  flex: 1;
  min-width: 200px;
}

.info-box label {
  font-weight: 600;
  font-size: 14px;
  color: #374151;
  display: block;
  margin-bottom: 6px;
}

.info-box input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 8px 12px;
  background: #f9fafb;
  font-size: 14px;
  color: #111827;
}

/* 🔍 Filter & Search */
.filter-search {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.filters select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.search-box {
  display: flex;
  gap: 8px;
}

.search-input {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
}

.search-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: 0.2s;
}

.search-btn:hover {
  background: #1e40af;
}

/* 📊 Table */
.table-wrapper {
  overflow-x: auto;
}

.post-table {
  width: 100%;
  border-collapse: collapse;
}

.post-table th, 
.post-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.post-table th {
  background: #f8fafc;
  font-weight: 600;
}

.status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
}

.status.pending {
  background: #fff5d6;
  color: #a67c00;
}

.status.completed {
  background: #e0f7e9;
  color: #159f3d;
}

.btn-revoke {
  background: #ffe0e0;
  color: #991b1b;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-revoke:hover {
  background: #ffc7c7;
}

.good-job {
  color: #16a34a;
  font-weight: 600;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .post-info-row {
    flex-direction: column;
  }
  .filter-search {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    width: 100%;
    flex-direction: column;
  }
  .search-input, .search-btn, .filters select {
    width: 100%;
  }
}


/* ====== School Post Detail Page ====== */
.school-post-container {
  max-width: 1100px;
  margin: 120px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  padding: 30px;
  font-family: 'Poppins', sans-serif;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 25px;
  text-align: center;
}

/* 🔹 School Info Row */
.school-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  justify-content: space-between;
}

.info-box {
  flex: 1;
  min-width: 200px;
}

.info-box label {
  font-weight: 600;
  font-size: 14px;
  color: #374151;
  display: block;
  margin-bottom: 6px;
}

.info-box input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 8px 12px;
  background: #f9fafb;
  font-size: 14px;
  color: #111827;
}

/* 🔹 Summary Section */
.post-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.summary-box {
  flex: 1;
  min-width: 150px;
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
}

.summary-box span {
  color: #111827;
  font-weight: 700;
}

.summary-box.total {
  border-left: 5px solid #2563eb;
}
.summary-box.completed {
  border-left: 5px solid #16a34a;
}
.summary-box.pending {
  border-left: 5px solid #f59e0b;
}

/* 🔹 Filter & Search */
.filter-search {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.filters select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.search-box {
  display: flex;
  gap: 8px;
}

.search-input {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
}

.search-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: 0.2s;
}

.search-btn:hover {
  background: #1e40af;
}

/* 📊 Table */
.table-wrapper {
  overflow-x: auto;
}

.post-table {
  width: 100%;
  border-collapse: collapse;
}

.post-table th, 
.post-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.post-table th {
  background: #f8fafc;
  font-weight: 600;
}

.status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
}

.status.pending {
  background: #fff5d6;
  color: #a67c00;
}

.status.completed {
  background: #e0f7e9;
  color: #159f3d;
}

.btn-revoke {
  background: #ffe0e0;
  color: #991b1b;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-revoke:hover {
  background: #ffc7c7;
}

.good-job {
  color: #16a34a;
  font-weight: 600;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .school-info-row,
  .post-summary-row {
    flex-direction: column;
  }

  .filter-search {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    width: 100%;
    flex-direction: column;
  }

  .search-input, .search-btn, .filters select {
    width: 100%;
  }
}


/* Advanced error alert UI */
.error-box {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8787 100%);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-weight: 500;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}


.admin-info {
  background: #f7f9fc;
  border-left: 4px solid #3b82f6;
  padding: 12px 16px;
  margin-top: 10px;
  border-radius: 8px;
  font-size: 14px;
}
.admin-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.admin-info li {
  margin: 4px 0;
}


/* ========== ALERT BOX (universal) ========== */
.alert-box {
  position: relative;
  padding: 14px 18px 14px 46px;
  border-radius: 10px;
  margin: 18px 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.4s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* base icon */
.alert-box::before {
  content: 'ℹ️';
  position: absolute;
  left: 14px;
  font-size: 18px;
  top: 50%;
  transform: translateY(-50%);
}

/* success */
.alert-box.success {
  background: #ecfdf5;
  border-left: 4px solid #10b981;
  color: #065f46;
}
.alert-box.success::before {
  content: '✅';
}

/* error */
.alert-box.error {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  color: #7f1d1d;
}
.alert-box.error::before {
  content: '❌';
}

/* warning */
.alert-box.warning {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  color: #78350f;
}
.alert-box.warning::before {
  content: '⚠️';
}

/* info */
.alert-box.info {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  color: #1e3a8a;
}
.alert-box.info::before {
  content: 'ℹ️';
}

/* close button */
.alert-box .close-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 18px;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.alert-box .close-btn:hover {
  opacity: 0.6;
}

/* ========== View Modal ========== */
.view-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.view-modal-content {
  background: #fff;
  width: 80%;
  max-width: 700px;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.2);
  position: relative;
  animation: fadeIn 0.3s ease;
}
.close-modal {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}
.close-modal:hover { color: #000; }
@keyframes fadeIn { from{opacity:0;transform:scale(0.9);} to{opacity:1;transform:scale(1);} }
.file-preview-box {
  margin-top: 15px;
  text-align: center;
}
.file-preview-box iframe {
  border: none;
}





/* --- Modern Popup Modal Design --- */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeInBg 0.3s ease;
}

.modal-content {
  background: linear-gradient(145deg, #ffffff, #f9fafb);
  border-radius: 16px;
  padding: 28px 32px;
  width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  position: relative;
  animation: slideIn 0.35s ease;
}

.modal-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
  text-align: center;
  letter-spacing: 0.5px;
}

.close-btn {
  position: absolute;
  right: 16px;
  top: 14px;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  border: 1px solid #d1d5db;
}
.close-btn:hover {
  color: #111827;
  background: #e5e7eb;
  transform: rotate(90deg);
}

/* --- Detail Layout --- */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  margin-top: 5px;
}
.detail-grid div {
  font-size: 14px;
  line-height: 1.6;
  color: #111827;
}
.detail-grid strong {
  color: #374151;
  font-weight: 600;
  display: inline-block;
  min-width: 130px;
}

.detail-grid div:nth-child(odd) {
  background: #f9fafb;
  padding: 6px 8px;
  border-radius: 8px;
}
.detail-grid div:nth-child(even) {
  background: #f3f4f6;
  padding: 6px 8px;
  border-radius: 8px;
}

/* --- Logo Styling --- */
.logo-thumb {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  margin-top: 6px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.logo-thumb:hover {
  transform: scale(1.05);
}

/* --- Scrollbar --- */
.modal-content::-webkit-scrollbar {
  width: 8px;
}
.modal-content::-webkit-scrollbar-thumb {
  background: #9ca3af;
  border-radius: 8px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* --- Animations --- */
@keyframes fadeInBg {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* --- Mobile Responsive --- */
@media (max-width: 600px) {
  .modal-content {
    width: 100%;
    padding: 22px;
    border-radius: 12px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid strong {
    display: block;
    margin-bottom: 2px;
  }
}





/* --- Form Field Styling for Update Modal --- */
.detail-grid input[type="text"],
.detail-grid input[type="email"],
.detail-grid input[type="tel"],
.detail-grid input[type="number"],
.detail-grid select,
.detail-grid textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  background: #f9fafb;
  color: #111827;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
  box-sizing: border-box;
}

.detail-grid input:focus,
.detail-grid select:focus,
.detail-grid textarea:focus {
  outline: none;
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

/* labels match the view style */
.detail-grid label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
  display: block;
}

/* textarea sizing */
.detail-grid textarea {
  resize: vertical;
  min-height: 80px;
}

/* --- Buttons in same modal theme --- */
.btn-save {
  background: linear-gradient(90deg, #4f46e5, #6366f1);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(99,102,241,0.25);
}

.btn-save:hover {
  background: linear-gradient(90deg, #4338ca, #4f46e5);
  transform: translateY(-1px);
}

.btn-cancel {
  background: #f3f4f6;
  color: #111827;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background: #e5e7eb;
}

/* buttons container */
.btn-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}





