/* PAGE SPECIFIC STYLES */

/* --- ADMIN DASHBOARD LAYOUT (SAAS STYLE) --- */
body.admin-logged-in {
  overflow: hidden; /* Prevent body scroll, let wrapper handle it */
}

.admin-layout-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background-color: var(--bg-color);
}

.dashboard-sidebar {
  background: rgba(10, 15, 26, 0.95);
  border-right: 1px solid var(--border-color);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 0 24px 32px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 24px;
}

.sidebar-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
  flex-grow: 1;
}

.sidebar-footer {
  padding: 24px;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.dashboard-main {
  padding: 40px;
  overflow-y: auto;
  height: 100vh;
  position: relative;
}

@media (max-width: 900px) {
  .admin-layout-wrapper {
    grid-template-columns: 1fr;
  }
  
  .dashboard-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
  }
  
  .dashboard-main {
    padding: 24px 16px;
    height: auto;
  }
  
  body.admin-logged-in {
    overflow: auto;
  }
}

.admin-dashboard-shell {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-hero-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px 30px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.admin-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-summary-card {
  min-width: 112px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border-color);
  text-align: center;
}

.admin-summary-label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.admin-summary-card strong {
  font-size: 1.25rem;
  color: var(--color-primary);
}

.save-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #10b981;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.12);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.admin-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(10, 20, 30, 0.95);
  color: #f8fafc;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.admin-toast.active {
  display: inline-flex;
  animation: fadeIn 0.25s ease;
}

.admin-tab-nav {
  /* Deprecated for desktop, keep for fallback if needed */
  display: flex;
  gap: 12px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.admin-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  text-align: left;
}

.admin-tab-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.admin-tab-btn.active {
  background: rgba(217, 119, 6, 0.1);
  color: var(--color-primary);
  font-weight: 600;
}

.admin-tab-btn svg {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

.admin-tab-btn.active svg {
  opacity: 1;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.admin-table th,
.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  vertical-align: middle;
}

.admin-table tbody tr {
  transition: background-color 0.15s ease;
}

.admin-table tbody tr:hover {
  background-color: rgba(255,255,255,0.04);
}

.admin-table thead th {
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 2px solid var(--border-color);
}

.admin-actions-cell {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-small {
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-small:hover {
  transform: translateY(-1px);
}

.btn-edit {
  background: rgba(59, 130, 246, 0.14);
  color: #60a5fa;
}

.btn-delete {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
}

.btn-photos {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
}

.form-help {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
  margin-bottom: 0;
}

.empty-state-card {
  padding: 36px 24px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  margin: 10px 0;
}

.empty-state-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  font-size: 1.35rem;
}

.empty-state-card h4 {
  margin: 0 0 8px;
  color: var(--text-primary);
}

.empty-state-card p {
  margin: 0 0 16px;
  color: var(--text-muted);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .admin-hero-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .admin-hero-actions {
    width: 100%;
  }

  .admin-summary-card {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }
}

/* ==========================================
   1. HOME PAGE STYLES (index.html)
   ========================================== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 650px;
  background-color: #0b0f19;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(217, 119, 6, 0.15), transparent 50%),
              linear-gradient(to right, rgba(11, 15, 25, 0.95) 40%, rgba(11, 15, 25, 0.4));
  z-index: 2;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 650px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  color: #ffffff;
}

.hero-title span {
  color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary), #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  color: #cbd5e1; /* Slate 300 */
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-content { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-overlay {
    background: linear-gradient(to bottom, rgba(11, 15, 25, 0.85) 60%, rgba(11, 15, 25, 0.95) 100%);
  }
}

/* Countdown & Culto Banner */
.countdown-banner {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-lg);
}

.countdown-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.countdown-info {
  max-width: 400px;
}

.countdown-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.countdown-live-badge span.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
  display: inline-block;
}

.countdown-timer {
  display: flex;
  gap: 16px;
}

.timer-unit {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  min-width: 80px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.timer-val {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.timer-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 600;
}

@media (max-width: 992px) {
  .countdown-wrap {
    flex-direction: column;
    text-align: center;
  }
  .countdown-timer {
    justify-content: center;
  }
}

/* Real Instagram Feed (Dynamic) */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.instagram-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: block;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
}

.instagram-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: var(--transition-slow);
}

.instagram-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(225, 48, 108, 0.5); /* Instagram brand color */
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 2;
  color: #ffffff;
}

.instagram-item:hover .instagram-overlay {
  opacity: 1;
}

.instagram-item:hover .instagram-image {
  transform: scale(1.08);
}

.instagram-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  border-top-color: #e1306c;
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.insta-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #ffffff;
  color: #e1306c;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  z-index: 3;
  box-shadow: var(--shadow-sm);
}

.insta-caption {
  font-size: 0.85rem;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.insta-stats {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
}

.insta-stats span {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 992px) {
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .instagram-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   2. ABOUT PAGE STYLES (quem-somos.html)
   ========================================== */
.about-hero {
  background-color: var(--bg-tertiary);
  padding: 140px 0 80px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 60px auto 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: var(--border-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  width: 50%;
  padding: 0 40px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--color-primary);
  border: 4px solid var(--bg-primary);
  position: absolute;
  top: 4px;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--color-primary-light);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -8px;
}

.timeline-year {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.timeline-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: inline-block;
  text-align: left;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 45px;
    padding-right: 0;
    margin-bottom: 40px;
  }
  .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
  }
  .timeline-item:nth-child(odd) .timeline-dot, .timeline-item:nth-child(even) .timeline-dot {
    left: 12px;
  }
}

.pastors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.pastor-card {
  text-align: center;
}

.pastor-avatar-wrap {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 24px auto;
  border: 4px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
}

.pastor-card:hover .pastor-avatar-wrap {
  border-color: var(--color-primary);
  transform: scale(1.04);
}

.pastor-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pastor-role {
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .pastors-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   3. MINISTRIES & CELLS STYLES (ministerios.html)
   ========================================== */
.cells-filter-section {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 40px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  align-items: flex-end;
}

@media (max-width: 768px) {
  .filter-grid { grid-template-columns: 1fr; }
}

.cell-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cell-meta-list {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cell-meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cell-meta-item svg {
  color: var(--color-primary);
  width: 18px;
  height: 18px;
}

.no-cells-found {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* ==========================================
   4. MESSAGES STYLES (mensagens.html)
   ========================================== */
.featured-message-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 60px;
  box-shadow: var(--shadow-md);
}

.video-player-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #000000;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.video-player-container video {
  width: 100%;
  height: 100%;
}

.video-overlay-play {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 15, 25, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10;
}

.video-overlay-play:hover {
  background-color: rgba(11, 15, 25, 0.3);
}

.video-play-btn {
  width: 72px;
  height: 72px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  box-shadow: 0 0 0 10px rgba(217, 119, 6, 0.2);
  transition: var(--transition-fast);
}

.video-overlay-play:hover .video-play-btn {
  transform: scale(1.1);
  background-color: var(--color-primary-hover);
  box-shadow: 0 0 0 16px rgba(217, 119, 6, 0.3);
}

.featured-message-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 992px) {
  .featured-message-card { grid-template-columns: 1fr; }
}

.audio-bar-player {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-progress-bar {
  flex-grow: 1;
  height: 6px;
  background-color: var(--border-color);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
}

.audio-progress-current {
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 100%;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
}

.audio-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 75px;
}

/* ==========================================
   5. CONTRIBUTIONS STYLES (contribuir.html)
   ========================================== */
.giving-options-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.giving-card {
  padding: 40px;
}

.iban-box {
  background-color: var(--bg-tertiary);
  border: 1px dashed var(--color-primary);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 24px 0;
  position: relative;
  overflow: hidden;
}

.iban-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.iban-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.iban-value {
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.copy-btn:hover {
  color: var(--color-primary-hover);
  transform: scale(1.02);
}

.mbway-wrap {
  text-align: center;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: var(--radius-md);
}

.mbway-phone {
  font-size: 1.5rem;
  font-weight: 800;
  color: #d81b60; /* MBWay Pink/Redish color */
  margin: 16px 0;
  font-family: var(--font-title);
}

.qr-code-placeholder {
  width: 160px;
  height: 160px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  margin: 20px auto;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

@media (max-width: 992px) {
  .giving-options-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   6. CONTACT PAGE STYLES (contacto.html)
   ========================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 50px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  display: flex;
  gap: 20px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-text-box h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.contact-text-box p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.map-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: 100%;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.map-container {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-tertiary);
  margin-top: 16px;
  position: relative;
  z-index: 1; /* ensure it stays under navbar dropdowns */
}

@media (max-width: 992px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ==========================================
   7. ADMIN PANEL STYLES (admin.html)
   ========================================== */
.admin-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 12px 20px;
  cursor: pointer;
  transition: var(--transition-fast);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px; /* overlap border-bottom */
}

.admin-tab-btn:hover, .admin-tab-btn.active {
  color: var(--text-primary);
}

.admin-tab-btn.active {
  border-bottom-color: var(--color-primary);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-secondary);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.admin-table th {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  font-weight: 700;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background-color: rgba(15, 23, 42, 0.01);
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-small.btn-edit {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-small.btn-edit:hover {
  background-color: var(--border-color);
  transform: translateY(-1px);
}

.btn-small.btn-delete {
  background-color: rgba(220, 38, 38, 0.08);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.1);
}

.btn-small.btn-delete:hover {
  background-color: #dc2626;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.admin-actions-cell {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ==========================================
   8. RESPONSIVE / MOBILE OVERRIDES
   ========================================== */
@media (max-width: 992px) {
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-layout-wrapper {
    grid-template-columns: 200px 1fr;
  }
}

@media (max-width: 768px) {
  .instagram-grid {
    grid-template-columns: 1fr;
  }
  
  /* Make sidebar horizontal scrollable on mobile */
  .admin-layout-wrapper {
    grid-template-columns: 1fr;
  }
  
  .dashboard-sidebar {
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
    z-index: 10;
  }

  .sidebar-brand {
    margin-bottom: 16px;
  }
  
  .sidebar-nav-menu {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    border-bottom: none;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  .sidebar-nav-menu::-webkit-scrollbar {
    display: none;
  }

  .sidebar-nav-menu .admin-tab-btn {
    white-space: nowrap;
    padding: 8px 16px;
    margin-bottom: 0;
  }

  .dashboard-main {
    padding: 20px 16px;
  }

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