/* Layout Components - Extracted from inline-styles.css */
/* Contains: header, footer, containers, grids, admin layouts, sections */

/* Header styles */
.header-fixed {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 24px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-icon-theme {
  padding: 10px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-login {
  padding: 10px 20px;
  background: var(--card);
  border: 2px solid var(--amber-light);
  color: var(--text);
  white-space: nowrap;
  text-decoration: none;
}

/* Footer styles */
.footer {
  padding: 48px 0;
  text-align: center;
  margin-top: 80px;
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-text {
  margin: 0;
  color: var(--text);
  opacity: 0.7;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--amber-light);
}

/* Admin Transactions page styles */
.admin-transactions {
  max-width: 1600px;
  margin: 0 auto;
}

.admin-section-header {
  margin-bottom: 32px;
}

.admin-section-title {
  margin: 0 0 8px 0;
  font-size: 2rem;
  font-weight: 700;
}

.admin-section-subtitle {
  opacity: 0.7;
  margin: 0;
}

.fyra-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #E5E7EB;
  margin-bottom: 24px;
}

.fyra-tab-btn {
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
  margin-bottom: -2px;
}

.fyra-tab-content {
  display: none;
}

.fyra-tab-content.is-visible {
  display: block;
}

.fyra-card {
  margin-bottom: 24px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.filter-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.875rem;
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
}

.filter-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.table-container {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead tr {
  border-bottom: 2px solid #E5E7EB;
}

.admin-table th {
  text-align: left;
  padding: 12px;
  font-weight: 600;
  font-size: 0.875rem;
}

.admin-table th.text-right {
  text-align: right;
}

.admin-table th.text-center {
  text-align: center;
}

.admin-table td {
  padding: 12px;
  font-size: 0.875rem;
}

.admin-table td.text-right {
  text-align: right;
}

.admin-table td.text-center {
  text-align: center;
}

.admin-table td.monospace {
  font-family: monospace;
  color: #6B7280;
}

.admin-table td.nowrap {
  white-space: nowrap;
}

.admin-table td.opacity-70 {
  opacity: 0.7;
}

.at-toggle-checkbox {
  cursor: pointer;
}

.at-amount-cell {
  font-weight: 600;
  color: var(--amber-light);
}

.transaction-row {
  transition: background 0.2s;
}

.transaction-row:not(:last-child) {
  border-bottom: 1px solid #E5E7EB;
}

.transaction-row-border {
  border-bottom: 1px solid #E5E7EB;
}

.transaction-row:hover {
  background: #FFF8E7;
}

.btn-refund:hover {
  opacity: 1 !important;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.75rem;
}

.status-badge.success {
  background: #D1FAE5;
  color: #10B981;
}

.status-badge.pending {
  background: #FEF3C7;
  color: #F59E0B;
}

.status-badge.canceled {
  background: #F3F4F6;
  color: #6B7280;
}

.action-buttons {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.75rem;
}

.btn-refund {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text);
  opacity: 0.8;
}

.btn-refund:hover {
  opacity: 1;
}

/* ===== Admin fundraising (admin/fundraising.ejs) ===== */
.fa-help-top {
  margin-bottom: 8px;
  color: #8086a3;
  font-size: 12px;
}

.fa-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.fa-select-wrap {
  display: flex;
  gap: 8px;
  align-items: end;
  flex: 1;
  min-width: 320px;
}

.fa-select-label {
  flex: 1;
}

.fa-select-actions {
  display: flex;
  gap: 8px;
}

.fa-obs-col {
  flex: 1;
  min-width: 280px;
}

.fa-obs-help {
  margin-bottom: 4px;
  color: #8086a3;
  font-size: 12px;
}

.fa-url-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.fa-url-hidden {
  display: none;
}

.fa-obs-params {
  display: none;
  margin-top: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.fa-obs-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.fa-obs-toggle-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.fa-preview-wrap {
  margin-bottom: 10px;
}

.fa-card-mb {
  margin: 8px 0;
}

.fa-card-title {
  margin: 0 0 8px 0;
}

.fa-prev-root {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
}

.fa-prev-title {
  font-weight: 800;
  margin-bottom: 6px;
  text-align: center;
  color: #ffb36a;
}

.fa-prev-bar {
  position: relative;
  height: 22px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.fa-prev-fill {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 50%;
  background: #6d5efc;
  border-radius: inherit;
}

.fa-prev-inside-title {
  display: none;
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 2px;
  transform: translateX(-50%);
  font-size: 12px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.fa-prev-inside-amount {
  display: none;
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.fa-prev-inside-time {
  display: none;
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  font-size: 12px;
  color: #cfd3ff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.fa-prev-bounds {
  display: none;
  position: relative;
  margin-top: 4px;
  font-size: 11px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.fa-prev-bmin {
  position: absolute;
  left: 6px;
}

.fa-prev-bmax {
  position: absolute;
  right: 6px;
}

.fa-prev-amount {
  margin-top: 6px;
  color: #cfd3ff;
  font-weight: 700;
  text-align: center;
}

.fa-prev-time {
  margin-top: 6px;
  color: #9aa6b2;
  font-size: 12px;
  text-align: center;
}

.fa-tab-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fa-tab-content {
  margin-top: 12px;
}

.empty-state {
  padding: 48px;
  text-align: center;
  opacity: 0.5;
}

.empty-state-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.empty-state-text {
  margin: 0;
}

.modal-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  padding: 0;
  border: none;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 10000;
}

.modal-form {
  padding: 32px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #E5E7EB;
}

.modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #6B7280;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.modal-field {
  margin-bottom: 20px;
}

.modal-field-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.modal-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--card);
  color: var(--text);
  resize: vertical;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.pagination-container {
  margin-top: 16px;
  text-align: center;
}

.pagination {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.pagination-info {
  opacity: 0.7;
}

.at-bulk-actions {
  margin-top: 16px;
}

.at-payout-section-title {
  margin: 0 0 8px 0;
  font-weight: 600;
}

.at-payout-section-desc {
  opacity: 0.7;
  margin: 0 0 24px 0;
}

.at-filter-grid-payout {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-bottom: 24px;
}

.empty-state {
  padding: 48px;
  text-align: center;
  opacity: 0.5;
}

.empty-state-error {
  padding: 48px;
  text-align: center;
  color: #EF4444;
}

.empty-state-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.empty-state-text {
  margin: 0;
}

.payout-amount-cell {
  font-weight: 600;
  color: var(--amber-light);
}

.payout-user-link {
  color: var(--text);
  text-decoration: none;
}

.payout-user-link:hover {
  text-decoration: underline;
}

.payout-user-id {
  font-size: 0.875rem;
  opacity: 0.7;
}

.payout-user-link {
  color: var(--amber-light);
  text-decoration: none;
}

.payout-user-id {
  opacity: 0.6;
}

.status-badge.processing {
  background: #DBEAFE;
  color: #4D9FFF;
}

.status-badge.failed {
  background: #FEE2E2;
  color: #EF4444;
}

/* Home page styles */
.container-center {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--amber-light) 0%, var(--peach-start) 50%, var(--neon-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--text);
  opacity: 0.8;
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero {
  font-size: 1.125rem;
  padding: 18px 48px;
}

.btn-secondary-hero {
  background: var(--card);
  border: 2px solid var(--amber-light);
  color: var(--text) !important;
}

.section-title {
  font-family: var(--font-heading);
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 64px;
}

.cta-section {
  padding: 120px 0;
}

.cta-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 2.5rem);
  margin-bottom: 24px;
}

.cta-text {
  font-size: clamp(1rem, 3vw, 1.25rem);
  margin-bottom: 48px;
  opacity: 0.8;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.demo-visual-relative {
  position: relative;
}

.alert-demo-hidden {
  display: none;
  position: relative;
}

.progress-label-large {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.progress-fill-start {
  width: 0%;
}

.progress-label-small {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--muted);
}

.demo-visual-center {
  text-align: center;
}

/* Personal Dashboard Content Spacer */
.pd-content-spacer {
  height: 52px;
}

