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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #f8f9fa;
}

header {
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  color: white;
  padding: 1rem 0;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

header h1 a {
  color: white;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 600;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2d3748;
}

input[type="url"],
input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
  color: #2d3748;
  background-color: white;
  transition: border-color 0.2s ease;
}

input[type="url"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
  outline: none;
  border-color: #48bb78;
  box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

button,
.btn {
  background: linear-gradient(135deg, #48bb78, #38a169);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

button:hover,
.btn:hover {
  background: linear-gradient(135deg, #38a169, #2f855a);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(72, 187, 120, 0.25);
}

.btn-secondary {
  background: white;
  color: #4a5568;
  border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #f7fafc;
  color: #2d3748;
  border-color: #cbd5e0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-danger {
  background: linear-gradient(135deg, #e53e3e, #c53030);
  border: 2px solid transparent;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #c53030, #9b2c2c);
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.25);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.qr-info,
.qr-display,
.stats-summary,
.analytics-section,
.time-analytics {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.qr-display {
  text-align: center;
}

.qr-image {
  max-width: 200px;
  height: auto;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: black;
  margin-top: 0.5rem;
  font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", monospace;
}

/* FIXED ANALYTICS SECTION - HIGH CONTRAST, READABLE TEXT */
.chart-container {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.chart-container h4 {
  margin-bottom: 1rem;
  color: #2d3748;
  font-weight: 700;
  font-size: 1.2rem;
  border-bottom: 2px solid #48bb78;
  padding-bottom: 0.5rem;
}

.stats-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stats-list li {
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.stats-list li:last-child {
  border-bottom: none;
}

.stats-list li:hover {
  background-color: #f7fafc;
  margin-left: -1rem;
  margin-right: -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 6px;
}

/* HIGH CONTRAST, READABLE TEXT */
.stat-label {
  color: #2d3748;
  font-weight: 600;
  font-size: 1rem;
  flex: 1;
}

/* HIGH CONTRAST VALUE BADGES */
.stat-value {
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  background: #48bb78;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  min-width: 2.5rem;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    monospace;
  box-shadow: 0 2px 4px rgba(72, 187, 120, 0.2);
}

/* No data message */
.no-data {
  color: #4a5568;
  font-style: italic;
  text-align: center;
  padding: 1.5rem;
  background: #f7fafc;
  border-radius: 6px;
  border: 2px dashed #cbd5e0;
  font-weight: 500;
}

.actions {
  margin-top: 2rem;
  padding: 1rem 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #2d3748;
  font-weight: 700;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #48bb78;
  display: flex;
  color: #2d3748;
}

h4 {
  font-size: 1.1rem;
  color: #2d3748;
}

/* Multi-user specific styles */
.user-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-name {
  font-weight: 600;
  color: white;
  font-size: 1rem;
}

.user-role {
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: bold;
}

.user-role.admin {
  background: linear-gradient(135deg, #e53e3e, #c53030);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-link {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.admin-link {
  background: linear-gradient(135deg, #48bb78, #38a169) !important;
  border: 1px solid #2f855a !important;
  font-weight: 600;
}

.admin-link:hover {
  background: linear-gradient(135deg, #38a169, #2f855a) !important;
  box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.stat-label {
  color: #4a5568;
  font-size: 0.875rem;
  font-weight: 500;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.summary-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  text-align: center;
}

.summary-card h3 {
  font-size: 2.5rem;
  margin: 0;
  color: #38a169;
  border: none;
  padding: 0;
}

.summary-card p {
  color: #4a5568;
  font-weight: 500;
  margin-top: 0.5rem;
}

.code-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  border-left: 4px solid #48bb78;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.code-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.code-card.inactive {
  opacity: 0.6;
  border-left-color: #a0aec0;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.code-header h3 {
  color: #2d3748;
  font-family: monospace;
  font-size: 1.1rem;
  border: none;
  padding: 0;
  margin: 0;
}

.code-info p {
  margin: 0.5rem 0;
  color: #4a5568;
  font-size: 0.9rem;
}

.code-info strong {
  color: #2d3748;
}

.code-info a {
  color: #48bb78;
  text-decoration: none;
}

.code-info a:hover {
  text-decoration: underline;
}

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

.status-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.status-badge.active {
  background-color: #c6f6d5;
  color: #22543d;
  border: 1px solid #9ae6b4;
}

.status-badge.inactive {
  background-color: #fed7d7;
  color: #742a2a;
  border: 1px solid #fbb6ce;
}

.role-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
}

.role-badge.admin {
  background-color: #e53e3e;
  color: white;
}

.role-badge.user {
  background-color: #48bb78;
  color: white;
}

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.auth-form {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
  width: 100%;
  max-width: 400px;
}

.auth-form h2 {
  color: #2d3748;
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-links {
  text-align: center;
  margin-top: 1rem;
}

.auth-links a {
  color: #48bb78;
  text-decoration: none;
  font-weight: 600;
}

.auth-links a:hover {
  text-decoration: underline;
}

.danger-zone {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 2px solid #e53e3e;
  border-radius: 8px;
  background-color: #fed7d7;
}

.danger-zone h3 {
  color: #742a2a;
  border: none;
  padding: 0;
  margin-bottom: 1rem;
}

.danger-zone p {
  color: #742a2a;
  margin-bottom: 1rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-nav {
  display: flex;
  gap: 1rem;
}

.admin-nav-link {
  background: linear-gradient(135deg, #48bb78, #38a169);
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.admin-nav-link:hover {
  background: linear-gradient(135deg, #38a169, #2f855a);
  transform: translateY(-1px);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.activity-table,
.users-table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.activity-table table,
.users-table table {
  width: 100%;
  border-collapse: collapse;
}

.activity-table th,
.activity-table td,
.users-table th,
.users-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  color: #2d3748;
}

.activity-table th,
.users-table th {
  background-color: #f7fafc;
  font-weight: 700;
  color: #2d3748;
}

.activity-table tr:hover,
.users-table tr:hover {
  background-color: #f7fafc;
}

.users-table tr.inactive {
  opacity: 0.6;
}

/* Histogram-specific styles */
.histogram-section {
  margin: 2rem 0;
}

.chart-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.view-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.view-btn {
  background: white;
  color: #4a5568;
  border: 2px solid #e2e8f0;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  user-select: none;
}

.view-btn:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
  transform: translateY(-1px);
  color: #2d3748;
}

.view-btn.active {
  background: linear-gradient(135deg, #48bb78, #38a169);
  color: white;
  border-color: #38a169;
  box-shadow: 0 2px 8px rgba(72, 187, 120, 0.25);
}

.view-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.chart-info {
  color: #4a5568;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-info::before {
  content: "📊";
  font-size: 1rem;
}

.chart-wrapper {
  position: relative;
  height: 300px;
  margin-bottom: 1rem;
  border-radius: 6px;
  overflow: hidden;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #4a5568;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Loading states */
.chart-wrapper.loading {
  position: relative;
  opacity: 0.6;
  pointer-events: none;
}

.chart-wrapper.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(248, 249, 250, 0.9);
  z-index: 9;
}

.chart-wrapper.loading::after {
  content: "Loading chart data...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  color: #4a5568;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

/* Alert styles */
.alert {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
}

.alert-error {
  background-color: #fed7d7;
  color: #742a2a;
  border-color: #fbb6ce;
}

.alert-success {
  background-color: #c6f6d5;
  color: #22543d;
  border-color: #9ae6b4;
}

.alert-info {
  background-color: #bee3f8;
  color: #2a4365;
  border-color: #90cdf4;
}

.alert-warning {
  background-color: #faf089;
  color: #744210;
  border-color: #f6e05e;
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  padding: 12px 24px;
  border-radius: 6px;
  color: white;
  font-weight: 500;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  max-width: 300px;
}

.toast-info {
  background: #48bb78;
}

.toast-success {
  background: #38a169;
}

.toast-warning {
  background: #ed8936;
  color: white;
}

.toast-error {
  background: #e53e3e;
}

/* Responsive design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .user-nav {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .nav-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .summary-stats,
  .summary-cards,
  .admin-stats {
    grid-template-columns: 1fr;
  }

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

  .chart-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .view-selector {
    justify-content: center;
  }

  .chart-info {
    text-align: center;
    justify-content: center;
  }

  .chart-wrapper {
    height: 250px;
  }

  .view-btn {
    flex: 1;
    text-align: center;
    min-width: 0;
  }

  .code-actions {
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

  .view-selector {
    flex-direction: column;
    gap: 0.25rem;
  }

  .chart-wrapper {
    height: 200px;
  }

  .chart-container {
    padding: 1rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .toast {
    left: 20px;
    right: 20px;
    max-width: none;
  }
}

/* Focus styles for accessibility */
.view-btn:focus,
button:focus,
.btn:focus,
input:focus,
select:focus {
  outline: 3px solid rgba(72, 187, 120, 0.5);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .view-btn,
  .btn {
    border-width: 2px;
  }

  .view-btn.active {
    border-width: 3px;
  }

  .chart-container,
  .stat-card {
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .view-btn,
  .stat-card,
  .toast,
  .btn,
  .code-card {
    transition: none;
  }

  .chart-wrapper.loading::after {
    animation: none;
  }
}

/* Dark mode improvements (optional, maintaining light theme) */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #f8f9fa;
    color: #1a1a1a;
  }

  /* Force light theme even in dark mode preference */
  .chart-container,
  .stat-card,
  .code-card,
  .auth-form {
    background: white;
    color: #1a1a1a;
  }
}

/* For Payments I Think? */
.create-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.create-section h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.pricing-info {
  margin-bottom: 2rem;
}

.price-highlight {
  margin-bottom: 1rem;
}

.price-amount {
  font-size: 3rem;
  font-weight: bold;
  margin-right: 0.5rem;
}

.price-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

.pricing-description {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.create-qr-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  margin-bottom: 2rem;
}

.create-qr-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-icon {
  font-size: 1.3rem;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.feature-icon {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .create-section {
    padding: 2rem 1rem;
  }

  .price-amount {
    font-size: 2.5rem;
  }

  .features-list {
    grid-template-columns: 1fr;
  }
}

.admin-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.admin-nav-link {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-size: 0.9rem;
}

.admin-nav-link:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  transform: translateY(-1px);
}

.admin-nav-link.active {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #10b981;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admin-header h2 {
  color: #2c3e50;
  margin: 0;
  font-size: 2rem;
  font-weight: bold;
}

@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .admin-nav {
    justify-content: center;
  }

  .admin-nav-link {
    flex: 1;
    text-align: center;
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .admin-nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .admin-nav-link {
    width: 100%;
  }
}

/* CAPTCHA Styling */
.captcha-group {
  margin: 1.5rem 0;
  text-align: center;
}

.g-recaptcha {
  display: inline-block;
  margin: 0 auto;
}

/* Mobile responsive CAPTCHA */
@media (max-width: 480px) {
  .g-recaptcha {
    transform: scale(0.77);
    transform-origin: 0 0;
  }

  .captcha-group {
    margin-left: -10px;
  }
}

/* Error styling for CAPTCHA */
.alert.alert-error {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
  border-radius: 4px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}
