/* NAWACS FUOYE Chapter - Green & White Premium Design System */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&display=swap');

:root {
  --primary-dark: #064e3b;     /* Forest Green */
  --primary: #059669;          /* Emerald Green */
  --primary-light: #10b981;    /* Vibrant Mint */
  --primary-soft: #ecfdf5;     /* Soft Mint Tint */
  --accent-gold: #d97706;      /* Academic Gold/Bronze */
  --accent-gold-light: #fef3c7;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #022c22;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  
  --border-color: #e2e8f0;
  --border-focus: #059669;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(6, 78, 59, 0.08);
  --shadow-lg: 0 10px 25px rgba(6, 78, 59, 0.12);
  --shadow-hover: 0 15px 35px rgba(6, 78, 59, 0.18);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, .brand-font {
  font-family: 'Playfair Display', serif;
  color: var(--primary-dark);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top Banner Bar */
.top-bar {
  background: var(--primary-dark);
  color: #d1fae5;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-bar-info {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.top-bar-info i {
  color: var(--primary-light);
  margin-right: 0.35rem;
}

/* Main Navigation Bar */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 2px solid var(--primary-soft);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.nav-brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-main);
  padding: 0.5rem 0.25rem;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--primary);
  color: white !important;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
  white-space: nowrap;
}

.nav-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(6, 78, 59, 0.3);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-dark);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(6, 78, 59, 0.3);
}

.btn-secondary {
  background: var(--primary-dark);
  color: white;
}

.btn-secondary:hover {
  background: #022c22;
  color: white;
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.btn-light {
  background: white;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.btn-light:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.btn-danger {
  background: #dc2626;
  color: white;
}

.btn-danger:hover {
  background: #991b1b;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.badge-dark {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

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

.badge-info {
  background: #e0f2fe;
  color: #075985;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.94) 0%, rgba(2, 44, 34, 0.97) 100%), url('../../images/2026 conference advert.jpeg') center/cover;
  color: white;
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(52, 211, 153, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(5px);
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.15;
  color: white;
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.hero h1 span {
  color: var(--primary-light);
}

.hero p {
  font-size: 1.15rem;
  color: #a7f3d0;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.hero-card img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius-full);
  border: 4px solid var(--primary-light);
  margin-bottom: 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.hero-card h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.hero-card p {
  color: #a7f3d0;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #022c22 100%);
  color: white;
  padding: 3.5rem 0;
  margin-bottom: 3rem;
}

.page-header h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: #a7f3d0;
  font-size: 1.1rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Cards & Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: #a7f3d0;
}

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

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-footer {
  padding: 1rem 1.75rem;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Event Cards */
.event-card {
  position: relative;
}

.event-banner {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.event-meta i {
  color: var(--primary);
  width: 20px;
}

/* Abstract Detail & Card */
.abstract-card {
  border-left: 4px solid var(--primary);
}

.abstract-meta {
  background: var(--primary-soft);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.abstract-authors {
  font-weight: 700;
  color: var(--primary-dark);
}

.abstract-affiliation {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.85rem;
}

.keywords-tag {
  display: inline-block;
  background: #e2e8f0;
  color: #334155;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  margin-right: 0.35rem;
  margin-top: 0.35rem;
}

/* Forms */
.form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #f8fafc;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.word-count-badge {
  float: right;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Single Abstract Printable Document View */
.abstract-paper {
  background: white;
  border-radius: var(--radius-md);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  position: relative;
}

.abstract-paper-header {
  border-bottom: 2px solid var(--primary-soft);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.abstract-paper-title {
  font-size: 1.85rem;
  color: var(--primary-dark);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.qr-box {
  text-align: center;
  background: var(--primary-soft);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--primary);
  min-width: 140px;
}

.qr-box img {
  width: 120px;
  height: 120px;
  display: block;
  margin: 0 auto 0.5rem;
}

.qr-box span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table th {
  background: var(--primary-dark);
  color: white;
  font-weight: 700;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
}

.table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  vertical-align: middle;
}

.table tbody tr:hover {
  background: var(--primary-soft);
}

/* Alerts */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.alert-info {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
}

/* Admin Dashboard Specific */
.admin-sidebar {
  background: var(--bg-dark);
  color: white;
  min-height: 100vh;
  padding: 2rem 1.25rem;
}

.admin-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2rem;
}

.admin-nav a {
  color: #a7f3d0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.admin-nav a:hover, .admin-nav a.active {
  background: var(--primary);
  color: white;
}

.stat-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: #a7f3d0;
  margin-top: auto;
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer h4 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #a7f3d0;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.85rem;
  color: #6ee7b7;
}

/* Animations & Responsive */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero p {
    margin: 0 auto 2rem;
  }
  .hero-actions {
    justify-content: center;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 2px solid var(--primary);
  }
  .nav-menu.show {
    display: flex;
  }
}

@media print {
  .navbar, .top-bar, .footer, .btn-print-hide {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
  .abstract-paper {
    box-shadow: none;
    border: none;
    padding: 0;
  }
}

/* ==========================================================================
   Modal Dialog System
   ========================================================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 44, 34, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal.show {
  display: flex !important;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 650px;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  min-height: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.modal-dialog.modal-lg {
  max-width: 850px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--primary-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.modal-dialog > form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--primary-dark);
}

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .modal {
    padding: 0.5rem;
  }

  .modal-dialog {
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .modal-header,
  .modal-body {
    padding: 1rem;
  }

  .modal-footer {
    padding: 0.75rem 1rem;
  }
}

/* ==========================================================================
   Compact Mobile-Friendly Abstract List
   ========================================================================== */
.abstract-list-compact {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.abstract-compact-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.abstract-compact-item.has-qr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6rem;
  align-items: center;
  gap: 1rem;
}

.abstract-compact-content {
  min-width: 0;
}

.abstract-compact-qr {
  display: block;
  justify-self: end;
  width: 5.5rem;
  aspect-ratio: 1;
  padding: 0.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
  transition: var(--transition);
}

.abstract-compact-qr:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.abstract-compact-qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.abstract-compact-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.abstract-compact-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.abstract-compact-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
  line-height: 1.4;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.abstract-compact-title a {
  color: var(--primary-dark);
}

.abstract-compact-title a:hover {
  color: var(--primary);
}

.abstract-compact-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.abstract-compact-meta i {
  color: var(--primary);
}

.abstract-compact-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.abstract-compact-body {
  margin-top: 0.75rem;
  padding: 1rem;
  background: var(--bg-main);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-main);
  display: none;
}

.abstract-compact-body.open {
  display: block;
}

/* Pagination Styling */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
  flex-wrap: wrap;
  gap: 1rem;
}

.pagination-summary {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pagination-summary strong {
  color: var(--primary-dark);
  font-weight: 800;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
  align-items: center;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: white;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.page-btn:hover:not(:disabled) {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.page-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 3px 8px rgba(5, 150, 105, 0.22);
  font-weight: 800;
}

.page-btn:focus-visible {
  outline: 3px solid rgba(5, 150, 105, 0.3);
  outline-offset: 2px;
}

.page-ellipsis {
  padding: 0 0.15rem;
  color: var(--text-muted);
  font-weight: 700;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
