/**
 * NSIA Portal Styles
 */

/* =====================================================
   PAGE WRAPPER - CENTER CONTENT
   ===================================================== */

body.nsia-portal-mode #page-wrapper,
body.nsia-portal-mode .page-wrapper {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Ensure main content area is also centered */
body.nsia-portal-mode .layout-container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

body.nsia-portal-mode main.main-content {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Hide admin elements for portal users */
body.nsia-portal-mode.toolbar-tray-open {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.nsia-portal-mode .toolbar-oriented .toolbar-bar,
body.nsia-portal-mode #toolbar-administration,
body.nsia-portal-mode .toolbar {
  display: none !important;
}

/* Hide admin tabs and local tasks for non-admin users */
body.nsia-portal-mode .tabs,
body.nsia-portal-mode .local-tasks,
body.nsia-portal-mode ul.tabs,
body.nsia-portal-mode nav.tabs {
  display: none !important;
}

/* Hide contextual links */
body.nsia-portal-mode .contextual-region .contextual,
body.nsia-portal-mode .contextual-links-wrapper {
  display: none !important;
}

/* Hide admin action links */
body.nsia-portal-mode .action-links,
body.nsia-portal-mode ul.action-links {
  display: none !important;
}

/* Hide Drupal/Olivero default footer elements */
body.nsia-portal-mode .site-footer__bottom,
body.nsia-portal-mode .powered-by,
body.nsia-portal-mode a[href*="drupal.org"],
body.nsia-portal-mode .site-footer > *:not(.nsia-portal-footer),
body.nsia-portal-mode footer.site-footer .region-footer > *:not(.nsia-portal-footer) {
  display: none !important;
}

/* Remove default footer background when custom footer is present */
body.nsia-portal-mode .site-footer {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Hide RSS feed links */
body.nsia-portal-mode a[type="application/rss+xml"],
body.nsia-portal-mode link[type="application/rss+xml"] {
  display: none !important;
}

/* Hide breadcrumbs for cleaner look */
body.nsia-portal-mode .breadcrumb,
body.nsia-portal-mode nav.breadcrumb {
  display: none !important;
}

/* Clean up system messages positioning */
body.nsia-portal-mode .messages {
  margin-top: 20px;
}

/* Hide main navigation menu items */
body.nsia-portal-mode .menu--main,
body.nsia-portal-mode .region-primary-menu,
body.nsia-portal-mode nav.menu--main,
body.nsia-portal-mode #block-mainnavigation,
body.nsia-portal-mode #block-nsia-theme-main-menu,
body.nsia-portal-mode .block-menu {
  display: none !important;
}

/* Hide header regions that might contain default navigation */
body.nsia-portal-mode .region-header .block-system-branding-block,
body.nsia-portal-mode .region-header .site-logo,
body.nsia-portal-mode .region-header .site-name {
  display: none !important;
}

/* Ensure portal header is always on top */
.nsia-portal-header {
  order: -1;
}

/* Remove any margin/padding from body that might be added by toolbar */
body.nsia-portal-mode {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Hide Quick Links block for portal users */
body.nsia-portal-mode #block-nsiaquicklinks,
body.nsia-portal-mode .block-nsia-quick-links,
body.nsia-portal-mode [data-drupal-selector*="nsia-quick-links"] {
  display: none !important;
}

/* User Navigation */
.nsia-user-nav,
.nsia-anonymous-nav {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  background: #1B9C85;
  padding: 15px 30px;
  border-radius: 8px;
}

.nsia-user-nav li,
.nsia-anonymous-nav li {
  display: inline-block;
}

.nsia-user-nav a,
.nsia-anonymous-nav a {
  color: #FFFFFF;
  text-decoration: none;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nsia-user-nav a:hover,
.nsia-anonymous-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Google OAuth Button */
.social-auth-google {
  margin: 20px 0;
  text-align: center;
}

.google-login-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: #FFFFFF;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  text-decoration: none;
  color: #454F5E;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.google-login-button:hover {
  background: #F8F9FA;
  border-color: #1B9C85;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.google-login-button img {
  width: 24px;
  height: 24px;
}

.login-separator {
  text-align: center;
  margin: 25px 0;
  position: relative;
}

.login-separator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #D4F3D7;
}

.login-separator span {
  background: #FFFFFF;
  padding: 0 15px;
  position: relative;
  color: #454F5E;
  font-weight: 500;
}

/* ========================================
   User Dashboard - Enhanced Styles
   ======================================== */
.nsia-user-dashboard {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Dashboard Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #E2E8F0;
  flex-wrap: wrap;
  gap: 20px;
}

.dashboard-header-content {
  flex: 1;
  min-width: 280px;
}

.dashboard-header h1 {
  color: #0F172A;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-header h1::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 32px;
  background: linear-gradient(135deg, #1B9C85 0%, #0F766E 100%);
  border-radius: 3px;
}

.dashboard-description {
  color: #64748B;
  font-size: 16px;
  margin: 0;
}

.browse-events-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.browse-events-btn svg {
  flex-shrink: 0;
}

/* Dashboard Stats */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: #1B9C85;
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
}

.stat-icon.upcoming-icon {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  color: #059669;
}

.stat-icon.past-icon {
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
  color: #0284C7;
}

.stat-icon.total-icon {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  color: #D97706;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.2;
}

.stat-label {
  font-size: 14px;
  color: #64748B;
  font-weight: 500;
}

/* Dashboard Section */
.dashboard-section {
  margin-bottom: 50px;
}

.section-header {
  margin-bottom: 24px;
}

.dashboard-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0F172A;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 2px solid #E2E8F0;
}

.dashboard-section h2 svg {
  color: #1B9C85;
  flex-shrink: 0;
}

.dashboard-section h2 .count {
  color: #64748B;
  font-size: 18px;
  font-weight: 500;
}

/* Events Grid - Two Columns */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Event Card */
.event-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.event-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-6px);
  border-color: #1B9C85;
}

.event-card.upcoming {
  border-left: 4px solid #1B9C85;
}

.event-card.past {
  border-left: 4px solid #94A3B8;
  background: #FAFAFA;
}

.event-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
}

.event-card-header {
  padding: 24px 24px 0;
}

.event-card-header h3 {
  color: #0F172A;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
  padding-right: 80px;
}

.event-card.past .event-card-header h3 {
  color: #475569;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 24px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.badge-upcoming {
  background: linear-gradient(135deg, #1B9C85 0%, #0F766E 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(27, 156, 133, 0.25);
}

.badge-attended,
.badge-past {
  background: #F1F5F9;
  color: #64748B;
}

.event-card-body {
  padding: 20px 24px;
  flex-grow: 1;
}

.event-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}

.event-detail:last-child {
  margin-bottom: 0;
}

.detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #F1F5F9;
  border-radius: 8px;
  flex-shrink: 0;
  color: #1B9C85;
}

.detail-icon.success {
  background: #ECFDF5;
  color: #059669;
}

.detail-text {
  padding-top: 6px;
}

.ticket-number {
  display: inline-block;
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 13px;
  color: #047857;
  font-weight: 600;
  margin-top: 2px;
  border: 1px solid #A7F3D0;
}

.status-checked-in {
  color: #059669;
  font-weight: 600;
  padding-top: 6px;
}

.event-card-footer {
  padding: 0 24px 16px;
}

.registration-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94A3B8;
  padding: 12px 16px;
  background: #F8FAFC;
  border-radius: 8px;
}

.registration-label {
  font-weight: 500;
}

.registration-date {
  color: #64748B;
}

.event-card-actions {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
}

.event-card-actions .btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Buttons */
.btn {
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, #1B9C85 0%, #0F766E 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(27, 156, 133, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #178E79 0%, #0D9488 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 156, 133, 0.35);
  color: #FFFFFF;
  text-decoration: none;
}

.btn-secondary {
  background: #FFFFFF;
  color: #1B9C85;
  border: 2px solid #1B9C85;
}

.btn-secondary:hover {
  background: #ECFDF5;
  transform: translateY(-2px);
  color: #0F766E;
  text-decoration: none;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* Empty State */
.dashboard-empty {
  padding: 80px 20px;
}

.empty-state {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border-radius: 50%;
  margin-bottom: 32px;
}

.empty-icon svg {
  color: #1B9C85;
  opacity: 0.7;
}

.empty-state h2 {
  color: #0F172A;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 16px 0;
}

.empty-state p {
  color: #64748B;
  font-size: 16px;
  margin: 0 0 32px 0;
  line-height: 1.7;
}

/* Dashboard Responsive Design */
@media (max-width: 1024px) {
  .dashboard-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nsia-user-dashboard {
    padding: 24px 16px;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .dashboard-header h1 {
    font-size: 26px;
  }

  .browse-events-btn {
    width: 100%;
    justify-content: center;
  }

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

  .stat-card {
    padding: 20px;
  }

  .stat-number {
    font-size: 28px;
  }

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

  .dashboard-section h2 {
    font-size: 20px;
  }

  .event-card-header h3 {
    font-size: 16px;
    padding-right: 0;
  }

  .event-card-badge {
    position: static;
    margin-bottom: 12px;
  }

  .event-card-header {
    flex-direction: column;
  }

  .event-card-actions {
    flex-direction: column;
  }

  .event-card-actions .btn {
    width: 100%;
  }

  .nsia-user-nav,
  .nsia-anonymous-nav {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .stat-icon {
    width: 48px;
    height: 48px;
  }

  .stat-icon svg {
    width: 22px;
    height: 22px;
  }

  .event-card-body {
    padding: 16px 20px;
  }

  .event-card-actions {
    padding: 16px 20px;
  }

  .empty-icon {
    width: 120px;
    height: 120px;
  }

  .empty-icon svg {
    width: 60px;
    height: 60px;
  }
}

/* Dashboard Animation */
@keyframes dashboardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-stats .stat-card {
  animation: dashboardFadeIn 0.5s ease forwards;
  opacity: 0;
}

.dashboard-stats .stat-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-stats .stat-card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-stats .stat-card:nth-child(3) { animation-delay: 0.3s; }

.events-grid .event-card {
  animation: dashboardFadeIn 0.5s ease forwards;
  opacity: 0;
}

.events-grid .event-card:nth-child(1) { animation-delay: 0.15s; }
.events-grid .event-card:nth-child(2) { animation-delay: 0.25s; }
.events-grid .event-card:nth-child(3) { animation-delay: 0.35s; }
.events-grid .event-card:nth-child(4) { animation-delay: 0.45s; }
.events-grid .event-card:nth-child(5) { animation-delay: 0.55s; }
.events-grid .event-card:nth-child(6) { animation-delay: 0.65s; }

/* Fix event image display on single event pages */
.node--type-event.node--view-mode-default .field--name-field-event-image {
  width: 100% !important;
  max-width: 800px !important;
  margin: 0 auto 30px !important;
  display: block !important;
}

.node--type-event.node--view-mode-default .field--name-field-event-image img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Form Loading Overlay */
.nsia-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.nsia-loading-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid #E0E0E0;
  border-top-color: #1B9C85;
  border-radius: 50%;
  animation: nsia-spin 1s linear infinite;
  margin-bottom: 20px;
}

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

.nsia-loading-text {
  font-size: 18px;
  color: #454F5E;
  font-weight: 500;
  text-align: center;
}

/* Disabled form state */
form.is-submitting input,
form.is-submitting button,
form.is-submitting select,
form.is-submitting textarea {
  pointer-events: none;
  opacity: 0.7;
}

form.is-submitting input[type="submit"],
form.is-submitting button[type="submit"] {
  background: #999 !important;
  cursor: not-allowed;
}

/* Event Registration Login Prompt */
.event-registration-login-prompt {
  background: linear-gradient(135deg, #EDF6EE 0%, #D4F3D7 100%);
  border: 2px solid #1B9C85;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(27, 156, 133, 0.15);
}

.event-registration-login-prompt .registration-message {
  font-size: 20px;
  color: #0F172A;
  margin-bottom: 25px;
  font-weight: 500;
}

.event-registration-login-prompt .registration-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.event-registration-login-prompt .button {
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  display: inline-block;
}

.event-registration-login-prompt .button--primary,
.event-registration-login-prompt .login-button {
  background: #1B9C85;
  color: #FFFFFF;
}

.event-registration-login-prompt .button--primary:hover,
.event-registration-login-prompt .login-button:hover {
  background: #178E79;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(27, 156, 133, 0.4);
}

.event-registration-login-prompt .register-button {
  background: #FFFFFF;
  color: #1B9C85;
  border: 2px solid #1B9C85;
}

.event-registration-login-prompt .register-button:hover {
  background: #EDF6EE;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 480px) {
  .event-registration-login-prompt {
    padding: 25px 20px;
  }

  .event-registration-login-prompt .registration-message {
    font-size: 18px;
  }

  .event-registration-login-prompt .registration-buttons {
    flex-direction: column;
  }

  .event-registration-login-prompt .button {
    width: 100%;
  }
}

/* Event Teaser Register Button */
.event-teaser-actions {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #E0E0E0;
}

.event-register-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #1B9C85;
  color: #FFFFFF !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(27, 156, 133, 0.25);
}

.event-register-btn:hover {
  background: #178E79;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 156, 133, 0.35);
  color: #FFFFFF !important;
  text-decoration: none;
}

.event-register-btn:active {
  transform: translateY(0);
}

/* Style for events listing grid */
.view-events .views-row {
  margin-bottom: 30px;
}

.view-events .node--view-mode-teaser {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.view-events .node--view-mode-teaser .node__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.view-events .event-teaser-actions {
  margin-top: auto;
}

/* Free Event Price Badge */
.event-price-free {
  display: inline-block;
  background: linear-gradient(135deg, #1B9C85 0%, #178E79 100%);
  color: #FFFFFF;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(27, 156, 133, 0.3);
}

.field--name-field-event-price .event-price-free {
  margin: 5px 0;
}

/* Event Registration Action Button (on event detail page) */
.event-registration-action {
  background: linear-gradient(135deg, #EDF6EE 0%, #D4F3D7 100%);
  border: 2px solid #1B9C85;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(27, 156, 133, 0.15);
}

.event-registration-action .registration-message {
  font-size: 18px;
  color: #0F172A;
  margin-bottom: 20px;
  font-weight: 500;
}

.event-registration-action .registration-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.event-register-button {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, #1B9C85 0%, #178E79 100%);
  color: #FFFFFF !important;
  text-decoration: none !important;
  border-radius: 10px;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(27, 156, 133, 0.35);
}

.event-register-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(27, 156, 133, 0.5);
  color: #FFFFFF !important;
  text-decoration: none !important;
}

.event-register-button:active {
  transform: translateY(-1px);
}

/* Event Registration Page Summary */
.event-registration-summary {
  background: #FFFFFF;
  border: 2px solid #E0E0E0;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.event-registration-summary .event-title {
  color: #1B9C85;
  font-size: 28px;
  margin: 0 0 20px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #D4F3D7;
}

.event-registration-summary .event-details {
  margin-bottom: 20px;
}

.event-registration-summary .event-details p {
  margin: 10px 0;
  font-size: 16px;
  color: #454F5E;
}

.event-registration-summary .event-details strong {
  color: #0F172A;
  min-width: 80px;
  display: inline-block;
}

.event-registration-summary .back-to-event {
  display: inline-block;
  color: #1B9C85;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.event-registration-summary .back-to-event:hover {
  color: #178E79;
  text-decoration: underline;
}

.event-registration-summary .back-to-event::before {
  content: "\2190 ";
}

/* No Registration Form Message */
.no-registration-form {
  background: #FFF8E1;
  border: 2px solid #FFB300;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
}

.no-registration-form p {
  color: #454F5E;
  font-size: 16px;
  margin: 0;
}

@media (max-width: 480px) {
  .event-registration-action {
    padding: 20px;
  }

  .event-register-button {
    width: 100%;
    padding: 14px 30px;
    font-size: 16px;
  }

  .event-registration-summary {
    padding: 20px;
  }

  .event-registration-summary .event-title {
    font-size: 22px;
  }
}

/* ====== NSIA Portal Footer ====== */
.nsia-portal-footer {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #E2E8F0;
  margin-top: 60px;
  padding: 0;
}

.nsia-portal-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nsia-portal-footer .footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding: 50px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Brand */
.nsia-portal-footer .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nsia-portal-footer .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nsia-portal-footer .footer-logo svg {
  color: #1B9C85;
  width: 40px;
  height: 40px;
}

.nsia-portal-footer .footer-logo-text {
  font-size: 28px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 1px;
}

.nsia-portal-footer .footer-tagline {
  color: #94A3B8;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Footer Links */
.nsia-portal-footer .footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.nsia-portal-footer .footer-links-section h4 {
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nsia-portal-footer .footer-links-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nsia-portal-footer .footer-links-section li {
  margin-bottom: 12px;
}

.nsia-portal-footer .footer-links-section a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nsia-portal-footer .footer-links-section a:hover {
  color: #1B9C85;
  padding-left: 5px;
}

/* Footer Bottom */
.nsia-portal-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0;
  flex-wrap: wrap;
  gap: 20px;
}

.nsia-portal-footer .footer-copyright {
  color: #64748B;
  font-size: 14px;
}

.nsia-portal-footer .footer-social {
  display: flex;
  gap: 15px;
}

.nsia-portal-footer .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #94A3B8;
  transition: all 0.3s ease;
}

.nsia-portal-footer .social-link:hover {
  background: #1B9C85;
  color: #FFFFFF;
  transform: translateY(-3px);
}

.nsia-portal-footer .social-link svg {
  width: 20px;
  height: 20px;
}

/* Footer Responsive */
@media (max-width: 768px) {
  .nsia-portal-footer .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 30px;
  }

  .nsia-portal-footer .footer-brand {
    text-align: center;
    align-items: center;
  }

  .nsia-portal-footer .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .nsia-portal-footer .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
  }
}

@media (max-width: 480px) {
  .nsia-portal-footer {
    margin-top: 40px;
  }

  .nsia-portal-footer .footer-main {
    padding: 30px 0 25px;
  }

  .nsia-portal-footer .footer-links {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
  }

  .nsia-portal-footer .footer-links-section h4 {
    margin-bottom: 15px;
  }

  .nsia-portal-footer .footer-links-section a:hover {
    padding-left: 0;
  }

  .nsia-portal-footer .footer-logo-text {
    font-size: 24px;
  }

  .nsia-portal-footer .footer-copyright {
    font-size: 12px;
  }
}

/* ====== Login/Register Form Enhancements ====== */

/* Forgot Password Link */
.forgot-password-link {
  text-align: right;
  margin-top: -10px;
  margin-bottom: 20px;
}

.forgot-password-link a {
  color: #1B9C85;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-password-link a:hover {
  color: #178E79;
  text-decoration: underline;
}

/* Register/Login Links */
.register-link,
.login-link {
  text-align: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #E0E0E0;
}

.register-link span,
.login-link span {
  color: #666;
  font-size: 14px;
  margin-right: 5px;
}

.register-link a,
.login-link a {
  color: #1B9C85;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.register-link a:hover,
.login-link a:hover {
  color: #178E79;
  text-decoration: underline;
}

/* Password Reset Form Styling */
.password-reset-intro {
  background: #EDF6EE;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  border-left: 4px solid #1B9C85;
}

.password-reset-intro p {
  color: #454F5E;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.back-to-login-link {
  text-align: center;
  margin-top: 25px;
}

.back-to-login-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1B9C85;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-to-login-link a::before {
  content: "\2190";
  font-size: 18px;
}

.back-to-login-link a:hover {
  color: #178E79;
}

/* User Login/Register Form Container Styling */
.user-login-form,
.user-register-form,
.user-pass {
  max-width: 450px;
  margin: 40px auto;
  padding: 40px;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.user-login-form .form-item,
.user-register-form .form-item,
.user-pass .form-item {
  margin-bottom: 20px;
}

.user-login-form .form-item label,
.user-register-form .form-item label,
.user-pass .form-item label {
  display: block;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 8px;
  font-size: 14px;
}

.user-login-form input[type="text"],
.user-login-form input[type="password"],
.user-register-form input[type="text"],
.user-register-form input[type="email"],
.user-register-form input[type="password"],
.user-pass input[type="text"],
.user-pass input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.user-login-form input[type="text"]:focus,
.user-login-form input[type="password"]:focus,
.user-register-form input[type="text"]:focus,
.user-register-form input[type="email"]:focus,
.user-register-form input[type="password"]:focus,
.user-pass input[type="text"]:focus,
.user-pass input[type="email"]:focus {
  border-color: #1B9C85;
  box-shadow: 0 0 0 3px rgba(27, 156, 133, 0.15);
  outline: none;
}

.user-login-form .form-actions,
.user-register-form .form-actions,
.user-pass .form-actions {
  margin-top: 25px;
}

.user-login-form input[type="submit"],
.user-register-form input[type="submit"],
.user-pass input[type="submit"] {
  width: 100%;
  padding: 16px 30px;
  background: linear-gradient(135deg, #1B9C85 0%, #178E79 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(27, 156, 133, 0.3);
}

.user-login-form input[type="submit"]:hover,
.user-register-form input[type="submit"]:hover,
.user-pass input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 156, 133, 0.4);
}

.user-login-form input[type="submit"]:active,
.user-register-form input[type="submit"]:active,
.user-pass input[type="submit"]:active {
  transform: translateY(0);
}

/* Social Auth Google Button */
.social-auth-google {
  margin-bottom: 20px;
}

.google-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  background: #FFFFFF;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.google-login-button:hover {
  background: #F8F9FA;
  border-color: #1B9C85;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.google-login-button img {
  width: 20px;
  height: 20px;
}

/* Login Separator */
.login-separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 25px 0;
}

.login-separator::before,
.login-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #E0E0E0;
}

.login-separator span {
  padding: 0 15px;
  color: #999;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

/* Hide Drupal default descriptions on auth forms */
.user-login-form .description,
.user-register-form .description,
.user-pass .description {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
}

/* Form responsive */
@media (max-width: 480px) {
  .user-login-form,
  .user-register-form,
  .user-pass {
    margin: 20px 15px;
    padding: 25px 20px;
  }

  .forgot-password-link {
    text-align: center;
    margin-top: 0;
  }
}

/* ====== Sold Out Event Styling ====== */
.event-sold-out {
  background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
  border: 2px solid #EF4444;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  margin-top: 30px;
}

.sold-out-badge {
  display: inline-block;
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  color: #FFFFFF;
  padding: 10px 24px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
  margin-bottom: 15px;
}

.sold-out-message {
  color: #991B1B;
}

.sold-out-message p {
  margin: 10px 0 0;
  font-size: 16px;
  color: #7F1D1D;
}

/* Availability Info */
.availability-info {
  display: block;
  color: #059669;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 15px;
  padding: 8px 16px;
  background: #ECFDF5;
  border-radius: 8px;
  display: inline-block;
}

/* Event Teaser Sold Out Badge */
.event-teaser-sold-out {
  margin-top: 15px;
}

.event-teaser-sold-out .sold-out-badge {
  font-size: 12px;
  padding: 6px 14px;
}

/* Low Availability Warning */
.low-availability {
  color: #D97706;
  background: #FEF3C7;
}

.low-availability::before {
  content: "\26A0 ";
}

/* ====== Event Edit Button Styling ====== */
.event-admin-actions {
  margin-bottom: 20px;
  padding: 15px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 8px;
}

.event-edit-button,
.event-edit-btn {
  display: inline-block;
  background: #1B9C85;
  color: #FFFFFF !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.event-edit-button:hover,
.event-edit-btn:hover {
  background: #178E79;
  color: #FFFFFF !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 156, 133, 0.3);
}

.event-teaser-actions .event-edit-btn {
  margin-right: 10px;
}

/* ========================================
   Guest Discount Styles
   ======================================== */

/* Discount Banner */
.discount-banner {
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
  border: 1px solid #A5D6A7;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 15px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.discount-icon {
  background: #2E7D32;
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
}

.discount-message {
  color: #1B5E20;
  font-weight: 600;
  font-size: 15px;
  flex: 1;
}

.discount-tier-details {
  width: 100%;
  margin-top: 5px;
  padding-top: 10px;
  border-top: 1px dashed #81C784;
  color: #2E7D32;
  font-size: 13px;
}

/* Price Breakdown */
.price-breakdown-wrapper {
  background: #FAFAFA;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
}

.price-breakdown-wrapper .breakdown-title {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #424242;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.breakdown-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #EEEEEE;
}

.breakdown-item:last-child {
  border-bottom: none;
}

.breakdown-label {
  color: #616161;
  font-size: 14px;
}

.breakdown-price {
  font-weight: 600;
  color: #424242;
}

.breakdown-price .original-price {
  text-decoration: line-through;
  color: #9E9E9E;
  margin-right: 8px;
  font-weight: normal;
}

.breakdown-price .discounted-price {
  color: #2E7D32;
  font-weight: bold;
}

.breakdown-price .discount-badge {
  background: #E8F5E9;
  color: #2E7D32;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  margin-left: 8px;
  font-weight: 600;
}

/* Savings Display */
.savings-display {
  background: #E8F5E9;
  color: #2E7D32;
  padding: 10px 15px;
  border-radius: 6px;
  margin-top: 10px;
  text-align: center;
  font-size: 15px;
}

.savings-display strong {
  font-weight: 700;
}

/* Original Total (strikethrough) */
.original-total {
  text-align: right;
  margin-top: 5px;
  font-size: 13px;
}

/* Guest Discount Badge in Form */
.guest-discount-badge {
  background: #E8F5E9;
  color: #2E7D32;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 10px;
}

/* Enhanced Total Display */
.payment-total .total-display {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.payment-total #total-amount {
  font-size: 28px;
  color: #FFFFFF;
  font-weight: 800;
}

/* =====================================================
   REGISTRATION FORM - INSTALLMENT SECTION
   ===================================================== */

.installment-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}

.installment-section .section-title {
  color: #0369a1;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 600;
}

/* New Payment Option Card Styles */
.installment-section .payment-option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.installment-section .payment-option-card:hover {
  border-color: #1B9C85;
  box-shadow: 0 2px 8px rgba(27, 156, 133, 0.15);
}

.installment-section .payment-option-card:has(input:checked) {
  border-color: #1B9C85;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.installment-section .payment-option-card input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: #1B9C85;
  flex-shrink: 0;
}

.installment-section .payment-option-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  cursor: pointer;
}

.installment-section .payment-option-label .option-title {
  font-weight: 600;
  color: #1f2937;
  font-size: 15px;
}

.installment-section .payment-option-label .option-amount {
  font-size: 18px;
  font-weight: 700;
  color: #1B9C85;
}

.installment-section .payment-option-card:has(input:checked) .option-title {
  color: #166534;
}

/* Legacy radio item styles (for backwards compatibility) */
.installment-section .radio-item:not(.payment-option-card) {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.installment-section .radio-item:not(.payment-option-card):hover {
  border-color: #1B9C85;
}

.installment-section .radio-item:not(.payment-option-card) input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #1B9C85;
}

.installment-section .radio-item:not(.payment-option-card) input[type="radio"]:checked + label {
  color: #1B9C85;
  font-weight: 600;
}

.installment-options {
  margin-top: 15px;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.installment-options label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #374151;
}

.installment-options select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}

.installment-options select:focus {
  outline: none;
  border-color: #1B9C85;
  box-shadow: 0 0 0 3px rgba(27, 156, 133, 0.15);
}

.installment-preview-content {
  background: #E3F2FD !important;
  padding: 12px !important;
  border-radius: 6px !important;
  margin-top: 10px !important;
  border-left: 3px solid #1976D2;
}

.installment-preview-content p {
  margin: 0;
}

.installment-preview-content p:first-child {
  font-weight: 600;
  color: #1565C0;
}

.installment-preview-content p:last-child {
  font-size: 13px;
  color: #666;
  margin-top: 5px;
}

/* =====================================================
   INSTALLMENT PAYMENT PLANS SECTION
   ===================================================== */

.installment-plans-section {
  margin-top: 40px;
}

.installment-plans-section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.installment-plans-section .section-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1B5E4F;
  margin: 0;
}

.installment-plans-section .section-header h2 svg {
  color: #1B9C85;
}

.installment-plans-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.installment-plan-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 24px;
  border-left: 4px solid #1B9C85;
  transition: box-shadow 0.2s ease;
}

.installment-plan-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.installment-plan-card.status-completed {
  border-left-color: #28a745;
  background: linear-gradient(135deg, #f8fff9 0%, #fff 100%);
}

.installment-plan-card.status-cancelled {
  border-left-color: #6c757d;
  opacity: 0.8;
}

.installment-plan-card.status-failed {
  border-left-color: #dc3545;
  background: linear-gradient(135deg, #fff8f8 0%, #fff 100%);
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.plan-title {
  flex: 1;
}

.plan-title h3 {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}

.plan-status {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.plan-status.status-active {
  background: #e3f9f4;
  color: #1B9C85;
}

.plan-status.status-completed {
  background: #d4edda;
  color: #155724;
}

.plan-status.status-cancelled {
  background: #e9ecef;
  color: #495057;
}

.plan-status.status-failed {
  background: #f8d7da;
  color: #721c24;
}

.plan-summary {
  text-align: right;
}

.plan-total {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1B9C85;
}

.plan-frequency {
  display: block;
  font-size: 13px;
  color: #6c757d;
  margin-top: 4px;
}

.plan-progress {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.progress-label {
  font-weight: 500;
  color: #333;
}

.progress-amount {
  font-size: 13px;
  color: #6c757d;
}

.progress-bar-container {
  background: #e9ecef;
  border-radius: 8px;
  height: 12px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  background: linear-gradient(90deg, #1B9C85 0%, #28a745 100%);
  height: 100%;
  border-radius: 8px;
  transition: width 0.5s ease;
}

.progress-percent {
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: #1B9C85;
  margin-top: 8px;
}

.next-payment-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fff3cd;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #856404;
}

.next-payment-info svg {
  flex-shrink: 0;
}

/* Payment History Toggle */
.payment-history {
  border-top: 1px solid #eee;
  padding-top: 16px;
  margin-bottom: 16px;
}

.payment-history-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #1B9C85;
  border-radius: 6px;
  transition: background 0.2s;
}

.payment-history-toggle:hover {
  background: #f0f9f7;
}

.payment-history-toggle svg {
  transition: transform 0.2s ease;
}

.payment-history.expanded .payment-history-toggle svg {
  transform: rotate(180deg);
}

.payment-history-list {
  display: none;
  margin-top: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
}

.payment-history.expanded .payment-history-list {
  display: block;
}

.payment-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}

.payment-item:last-child {
  border-bottom: none;
}

.payment-item.status-paid {
  background: #f8fff9;
}

.payment-item.status-failed {
  background: #fff8f8;
}

.payment-number {
  font-weight: 500;
  color: #333;
  min-width: 100px;
}

.payment-amount {
  font-weight: 600;
  color: #1B9C85;
  min-width: 80px;
}

.payment-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  min-width: 80px;
}

.payment-item.status-paid .payment-status {
  color: #28a745;
}

.payment-item.status-pending .payment-status {
  color: #ffc107;
}

.payment-item.status-failed .payment-status {
  color: #dc3545;
}

.payment-date {
  font-size: 12px;
  color: #6c757d;
  margin-left: auto;
}

.plan-footer {
  border-top: 1px solid #eee;
  padding-top: 12px;
}

.plan-created {
  font-size: 12px;
  color: #6c757d;
}

/* Responsive adjustments for installment plans */
@media (max-width: 768px) {
  .plan-header {
    flex-direction: column;
  }

  .plan-summary {
    text-align: left;
  }

  .plan-total {
    font-size: 1.25rem;
  }

  .progress-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .payment-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .payment-date {
    margin-left: 0;
  }
}
