/* ====================================================================
   PRANABHOOMI DASHBOARD STYLES - Premium, Modern, Cool UI
   ==================================================================== */

/* Dashboard Layout */
.dashboard-header {
  background: linear-gradient(135deg, var(--crimson) 0%, var(--forest) 55%, var(--forest-light) 100%);
  color: white;
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
}

.dashboard-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 600px;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
  gap: 2rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.user-area {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 0.75rem 1.5rem;
  min-width: 320px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.search-bar:focus-within {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.search-bar input {
  background: transparent;
  border: none;
  color: white;
  width: 100%;
  outline: none;
  font-size: 1rem;
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.notification-bell {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-bell:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: #f59e0b;
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid white;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 500;
}

.user-profile-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  color: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.nav-tab {
  padding: 0.875rem 1.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 25px;
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-tab:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.nav-tab.active {
  background: rgba(255, 255, 255, 0.95);
  color: var(--crimson);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: white;
}

/* Dashboard Content */
.dashboard-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem;
  min-height: calc(100vh - 200px);
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
  animation: fadeInDown 0.35s ease once;
}

.my-posts-mount {
  width: 100%;
}

.my-posts-grid-inner {
  display: block;
  width: 100%;
}

.my-posts-mount .subsection-title {
  margin: 1.5rem 0 0.75rem;
  color: var(--forest);
  font-size: 1.1rem;
}

.my-posts-mount .events-grid.my-posts-cards,
#posts-grid .events-grid.posts-all-grid,
.posts-all-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin-bottom: 0.5rem;
}

.posts-loading-msg,
.posts-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #6b7280;
}

.my-posts-mount .event-card,
#posts-grid .event-card,
.dashboard-content .event-card {
  overflow: visible;
  min-height: auto;
  animation: none;
}

.posts-feed-container,
.my-posts-mount {
  contain: layout style;
}

#section-my-posts.active,
#section-home.active {
  display: block !important;
  visibility: visible;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, rgba(192, 57, 43, 0.08), rgba(30, 58, 138, 0.08));
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(27, 67, 50, 0.1);
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(192, 57, 43, 0.05), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.hero-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 12px rgba(192, 57, 43, 0.2));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-banner h1 {
  font-size: 2.5rem;
  color: var(--forest);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.hero-banner p {
  font-size: 1.1rem;
  color: #4a5568;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: white;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--mist);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(192, 57, 43, 0.05), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  font-size: 3rem;
  opacity: 0.9;
  flex-shrink: 0;
}

.stat-info {
  flex: 1;
}

.stat-info h3 {
  font-size: 2.25rem;
  color: var(--crimson);
  font-weight: 800;
  margin: 0;
}

.stat-info p {
  color: #6b7280;
  margin: 0.25rem 0 0;
  font-weight: 500;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h1 {
  color: var(--forest);
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2rem);
}

/* Events Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.event-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--mist);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.event-card-header {
  padding: 1.5rem 1.5rem 0;
}

.event-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 24px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.badge-blood {
  background: #fee2e2;
  color: #dc2626;
}

.badge-volunteer {
  background: #dbeafe;
  color: #2563eb;
}

.badge-event {
  background: #d1fae5;
  color: #059669;
}

.badge-campaign {
  background: #fef3c7;
  color: #d97706;
}

.badge-poll {
  background: #ede9fe;
  color: #7c3aed;
}

.badge-admin {
  background: #fce7f3;
  color: #db2777;
}

.badge-verified {
  background: #10b981;
  color: white;
}

.badge-pending {
  background: #f59e0b;
  color: white;
}

.event-card-body {
  padding: 1rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-card-body h3 {
  color: var(--forest);
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.4;
}

.event-card-body p {
  color: #6b7280;
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.progress-bar {
  height: 8px;
  background: var(--mist);
  border-radius: 4px;
  margin: 1rem 0 0.5rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--crimson), var(--forest));
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* Activity Feed */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--mist);
  transition: all 0.3s ease;
}

.activity-item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.activity-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-content strong {
  color: var(--forest);
  display: block;
  margin-bottom: 0.25rem;
}

.activity-content p {
  color: #6b7280;
  margin: 0;
  font-size: 0.9rem;
}

/* Organization Card */
.org-card {
  background: white;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--mist);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.org-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-bottom: 1px solid var(--mist);
  background: linear-gradient(135deg, var(--cream), white);
}

.modal-header h2 {
  margin: 0;
  color: var(--forest);
  font-size: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  background: var(--mist);
  color: var(--crimson);
}

.modal-body {
  padding: 2rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--forest);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid var(--mist);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Button Styles */
.btn {
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--crimson), #962d22);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(192, 57, 43, 0.3);
}

.btn-secondary {
  background: var(--mist);
  color: var(--forest);
  border: 1px solid var(--mist);
}

.btn-secondary:hover {
  background: white;
  border-color: var(--forest);
  transform: translateY(-2px);
}

.btn-secondary.active {
  background: var(--crimson);
  color: white;
  border-color: var(--crimson);
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

/* Card Component */
.card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--mist);
}

/* Dashboard Sidebar (for admin) */
.dashboard-layout {
  display: flex;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.dashboard-sidebar {
  width: 250px;
  flex-shrink: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-nav a {
  padding: 1rem;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--mist);
  color: var(--forest);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--crimson);
  color: white;
  border-color: var(--crimson);
  transform: translateX(4px);
}

.dashboard-main {
  flex: 1;
}

/* KPI Grid (Admin) */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--mist);
  text-align: center;
  transition: all 0.3s ease;
}

.kpi-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.kpi-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--crimson);
  margin: 0;
}

.kpi-label {
  color: #6b7280;
  margin: 0.5rem 0 0;
  font-weight: 500;
}

/* Chart Container */
.chart-container {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--mist);
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table thead {
  background: var(--mist);
}

.data-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--forest);
  border-bottom: 1px solid var(--mist);
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--mist);
}

.data-table tbody tr:hover {
  background: rgba(192, 57, 43, 0.03);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .dashboard-layout {
    flex-direction: column;
  }

  .dashboard-sidebar {
    width: 100%;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-nav a {
    flex: 1;
    min-width: 150px;
  }

  .events-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .dashboard-header {
    padding: 1rem;
  }

  .header-top {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-tabs {
    gap: 0.5rem;
  }

  .nav-tab {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }

  .search-bar {
    display: none;
  }

  .dashboard-content {
    padding: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    padding: 2rem;
  }

  .hero-icon {
    font-size: 3.5rem;
  }

  .hero-banner h1 {
    font-size: 1.75rem;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-card {
    max-width: calc(100% - 2rem);
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .nav-tabs {
    margin-top: 1rem;
  }

  .nav-tab {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }

  .hero-banner {
    padding: 1.5rem;
  }

  .hero-icon {
    font-size: 3rem;
  }

  .hero-banner h1 {
    font-size: 1.25rem;
  }

  .stat-card {
    flex-direction: column;
    text-align: center;
  }

  .modal-header {
    padding: 1.5rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* Org applications inbox (top of My Posts) */
.org-applications-inbox {
  margin-bottom: 1.5rem;
}

.org-applications-inbox-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.org-applications-inbox-card--pending {
  border-color: #fcd34d;
  background: #fffbeb;
}

.org-applications-inbox-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.org-applications-inbox-title {
  margin: 0;
  font-size: 1.15rem;
  color: var(--forest, #1b4332);
}

.org-applications-inbox-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.org-application-inbox-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem 1.15rem;
}

.org-application-inbox-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.org-application-inbox-post {
  display: block;
  font-size: 0.88rem;
  color: #6b7280;
  font-weight: normal;
  margin-top: 0.15rem;
}

/* Post applications (org My Posts) */
.post-applicants-panel {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.post-applicants-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.post-applicants-heading {
  font-size: 1rem;
  color: var(--forest, #1a472a);
  margin: 0;
}

.post-applicants-hint {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: normal;
}

.post-applicants-list--compact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Collapsible applicant row */
.post-applicant-compact {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.post-applicant-compact[open] {
  border-color: #c5d9ce;
  box-shadow: 0 2px 12px rgba(27, 67, 50, 0.08);
}

.post-applicant-compact-summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.post-applicant-compact-summary::-webkit-details-marker {
  display: none;
}

.post-applicant-compact-chevron {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 6px;
  background: #f3f4f6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231b4332' stroke-width='2.5'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform 0.2s, background-color 0.2s;
}

.post-applicant-compact[open] .post-applicant-compact-chevron {
  transform: rotate(90deg);
  background-color: #e8f5e9;
}

.post-applicant-compact-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.post-applicant-compact-name {
  font-size: 0.95rem;
  color: var(--forest, #1b4332);
}

.post-applicant-compact-post {
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 500;
}

.post-applicant-compact-meta {
  font-size: 0.78rem;
  color: #9ca3af;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-applicant-compact-summary .post-app-status {
  flex-shrink: 0;
  margin-left: auto;
}

.post-applicant-compact-body {
  padding: 0 0.85rem 0.85rem;
  border-top: 1px solid #f3f4f6;
  background: #fafbfc;
}

.post-applicant-compact-body .post-applicant-response {
  margin-top: 0.65rem;
}

.post-applicant-compact-body .post-applicant-actions {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

.post-applicant-compact-done {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: #6b7280;
}

.org-applications-inbox-card--collapsible {
  padding: 0;
  overflow: hidden;
}

.org-applications-inbox-card--collapsible > summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f8faf9 0%, #fff 100%);
  border-bottom: 1px solid #e5e7eb;
}

.org-applications-inbox-card--collapsible > summary::-webkit-details-marker {
  display: none;
}

.org-applications-inbox-summary-hint {
  font-size: 0.78rem;
  color: #9ca3af;
  font-weight: normal;
}

.org-applications-inbox-toolbar {
  padding: 0.5rem 1.25rem 0;
  display: flex;
  justify-content: flex-end;
}

.org-applications-inbox-card--collapsible .org-applications-inbox-list {
  padding: 0.75rem 1.25rem 1.25rem;
}

.post-applicants-panel--error {
  background: #fff8f8;
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid #fecaca;
}

.post-applicants-empty {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0;
}

.post-applicants-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-applicant-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.post-applicant-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.post-applicant-details {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  font-size: 0.9rem;
  color: #374151;
}

.post-applicant-details li {
  margin-bottom: 0.35rem;
}

.post-applicant-details a {
  color: var(--forest, #1a472a);
  text-decoration: underline;
}

.post-applicant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-applicant-reject {
  border-color: #fca5a5;
  color: #b91c1c;
}

.post-app-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.post-app-status--pending {
  background: #fef3c7;
  color: #92400e;
}

.post-app-status--shortlisted {
  background: #dbeafe;
  color: #1e40af;
}

.post-app-status--accepted {
  background: #d1fae5;
  color: #065f46;
}

.post-app-status--rejected {
  background: #fee2e2;
  color: #991b1b;
}

.post-apply-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* Application form modal */
.post-apply-modal-card {
  max-width: 640px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.post-apply-modal-card .modal-body {
  overflow-y: auto;
  max-height: calc(92vh - 5rem);
}

.post-apply-lead {
  color: #6b7280;
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.post-apply-form-section {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.post-apply-form-section:last-of-type {
  border-bottom: none;
}

.post-apply-section-title {
  font-size: 0.95rem;
  color: var(--forest, #1b4332);
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.post-apply-form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.5rem;
}

.post-apply-form-actions .btn {
  flex: 1;
}

.post-apply-form-actions .btn-primary {
  flex: 2;
}

.post-applicant-response {
  margin: 0.5rem 0 0.75rem;
}

.post-applicant-response-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--forest, #1b4332);
  margin: 0 0 0.5rem;
}

.post-applicant-response-subtitle {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
  margin: 0.75rem 0 0.35rem;
}

.post-applicant-applied-meta {
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 0.65rem 0 0;
}

.post-applicant-field-empty {
  color: #9ca3af;
  font-style: italic;
}

.post-applicant-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.post-applicant-fields--background {
  grid-template-columns: 1fr;
}

.post-applicant-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.88rem;
}

.post-applicant-field-label {
  font-weight: 600;
  color: #6b7280;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.post-applicant-field-value {
  color: #1f2937;
  word-break: break-word;
}

.post-applicant-field-value a {
  color: var(--forest, #1b4332);
  text-decoration: underline;
}

.post-applicant-message {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
  padding: 0.75rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.post-applicant-message p {
  margin: 0.35rem 0 0;
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

/* Google Forms–style application */
.gform-card {
  border-top: 6px solid var(--crimson, #c0392b);
}

.gform-header {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1rem;
}

.gform-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin: 0 0 0.25rem;
}

.gform-required {
  color: var(--crimson, #c0392b);
}

.gform .form-group {
  margin-bottom: 1.25rem;
}

.gform .form-group label {
  display: block;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.gform input,
.gform select,
.gform textarea {
  width: 100%;
  border: 1px solid #dadce0;
  border-radius: 4px;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gform input:focus,
.gform select:focus,
.gform textarea:focus {
  outline: none;
  border-color: var(--forest, #1b4332);
  box-shadow: 0 0 0 2px rgba(27, 67, 50, 0.15);
}

.gform-actions {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.gform-submit {
  min-width: 120px;
}

.post-apply-success {
  text-align: center;
  padding: 2rem 1rem;
}

.post-apply-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #d1fae5;
  color: #065f46;
  font-size: 2rem;
  line-height: 64px;
  font-weight: 700;
}

.post-apply-success h3 {
  color: var(--forest, #1b4332);
  margin: 0 0 0.5rem;
}

.post-apply-success p {
  color: #6b7280;
  margin: 0 0 1.5rem;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.post-applicants-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
