/* Add to top of existing styles.css */
html,
body {
  height: 100%;
}

body {
  min-height: 100vh;
  padding: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #0f172a;
  line-height: 1.6;
}

/* Two-column layout */
.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 20px;
  padding: 0 20px;
}

/* Three-column layout */
.three-column-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 20px;
}

/* Responsive adjustments for three-column layout */
@media (max-width: 1200px) {
  .three-column-layout {
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 16px;
  }
}

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

  .info-column {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

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

  .two-column-layout {
    grid-template-columns: 1fr;
  }

  .info-column {
    grid-column: 1;
    display: block;
  }

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

/* Login page specific styles */
.login-form-container {
  max-width: 100%;
}

.login-form-container .card {
  background: #ffffff;
  border: none;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

/* Custom BurritoBot Logo Styling */
.brand-logo {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  transition: transform 0.2s ease;
}

.logo-container:hover {
  transform: scale(1.02);
}

/* Burrito Icon */
.burrito-icon {
  position: relative;
  width: 40px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.burrito-wrap {
  width: 36px;
  height: 20px;
  background: linear-gradient(45deg, #d2691e 0%, #f4a460 50%, #daa520 100%);
  border-radius: 18px;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 2px solid #cd853f;
}

.burrito-wrap::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 3px;
  right: 3px;
  height: 2px;
  background: #8b4513;
  border-radius: 2px;
  opacity: 0.6;
}

.burrito-wrap::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 3px;
  right: 3px;
  height: 2px;
  background: #8b4513;
  border-radius: 2px;
  opacity: 0.6;
}

.burrito-filling {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 12px;
  background: linear-gradient(90deg, #228b22 0%, #ff6347 30%, #ffd700 60%, #228b22 100%);
  border-radius: 6px;
  opacity: 0.8;
}

/* Logo Text */
.logo-text {
  display: flex;
  align-items: baseline;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.brand-name {
  font-size: 24px;
  color: #4299e1;
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-suffix {
  font-size: 24px;
  color: #f38020;
  background: linear-gradient(135deg, #f38020 0%, #e53e3e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo-container {
    gap: 10px;
    padding: 6px 12px;
  }

  .burrito-icon {
    width: 36px;
    height: 22px;
  }

  .burrito-wrap {
    width: 32px;
    height: 18px;
  }

  .burrito-filling {
    width: 24px;
    height: 10px;
  }

  .brand-name,
  .brand-suffix {
    font-size: 22px;
  }
}

.demo-data-link {
  color: #4299e1;
  text-decoration: none;
  font-size: 14px;
}

.demo-data-link:hover {
  text-decoration: underline;
}

.demo-panel .card {
  height: 100%;
  background: #ffffff;
  border: none;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

/* Handle nested demo panel structure */
.demo-panel .demo-content h4 {
  font-size: 1.1rem;
  font-weight: 500;
  color: #1a202c;
  margin-bottom: 0.75rem;
}

.demo-panel .demo-description p,
.demo-panel .demo-instructions p {
  font-size: 0.875rem;
  color: #4a5568;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.demo-panel .demo-description,
.demo-panel .demo-instructions {
  margin-bottom: 1.5rem;
}

.demo-panel .form-features-section {
  margin-bottom: 1rem;
}

.demo-panel .form-features-section h4 {
  font-size: 1.1rem;
  font-weight: 500;
  color: #1a202c;
  margin-bottom: 0.75rem;
}

.instruction-steps {
  padding-left: 20px;
}

.instruction-steps li {
  margin-bottom: 12px;
  line-height: 1.5;
  color: #4a5568;
  font-size: 0.875rem;
}

/* Info Column Styling */
.info-column {
  background: transparent;
}

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

.info-section .card {
  border: none;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: #ffffff;
  padding: 1.25rem;
}

.info-section .card h4 {
  font-size: 1.1rem;
  font-weight: 500;
  color: #1a202c;
  margin-bottom: 1rem;
}

.info-section .card h5 {
  font-size: 1rem;
  font-weight: 500;
  color: #1a202c;
  margin-bottom: 0.75rem;
}

.info-section .card-body {
  padding: 0.75rem;
}

.device-info-grid {
  display: grid;
  gap: 0.5rem; /* Reduced from 1rem */
}

.mb-3 {
  margin-bottom: 0.75rem !important; /* Reduced from 1rem */
}

.section-container {
  margin-bottom: 20px;
}

.section-container .divider {
  margin: 1.25rem 0;
  border-top: 1px solid #e9ecef;
}

.info-grid {
  display: grid;
  gap: 0.75rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-item strong {
  color: #4a5568;
  font-weight: 500;
}

.info-item .value {
  color: #1a202c;
  font-weight: 500;
}

.section-container h5 {
  margin-bottom: 16px;
  color: #1a202c;
  font-size: 1.1rem;
  font-weight: 500;
}

.info-grid {
  display: grid;
  gap: 12px;
}

.info-item {
  margin-bottom: 12px;
}

.info-item strong {
  display: block;
  margin-bottom: 4px;
  color: #4a5568;
  font-size: 0.875rem;
}

.info-item .detail-value {
  color: #1a202c;
  font-size: 0.875rem;
  font-weight: 500;
}

.info-item .badge {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 4px 8px;
  margin-left: 8px;
}

.divider {
  margin: 20px 0;
  border-top: 1px solid #e9ecef;
}


.info-section .card-header {
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-section .card-header h4,
.info-section .card-header h5 {
  margin: 0;
  color: #1a202c;
  font-size: 1.1rem;
}

.info-section .card-body {
  padding: 1.25rem;
}

/* Device info styling */
.device-info-grid {
  display: grid;
  gap: 1rem;
}

.device-info-section .detail-value {
  color: #1e293b;
  font-weight: 500;
}

.device-badge-container {
  display: flex;
  justify-content: flex-start;
  padding: 0.75rem;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  border-radius: 12px;
  font-size: 12px;
}

.new-device-badge {
  background-color: #10b981;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
  margin-left: 8px;
}

.visit-count-container {
  display: flex;
  align-items: center;
}

#device-ephemeral-id {
  word-break: break-all;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  font-family: monospace;
  font-size: 0.875rem;
  background-color: #f8f9fa;
  padding: 0.5rem;
  border-radius: 4px;
  max-width: 100%;
  overflow: visible;
}

/* Email complexity styling */
.email-complexity-section .progress {
  height: 8px;
  background-color: #e9ecef;
}

/* Complexity badges */
.badge.complexity-very-low {
  background-color: #dc3545;
  color: white;
}

.badge.complexity-low {
  background-color: #fd7e14;
  color: white;
}

.badge.complexity-normal {
  background-color: #198754;
  color: white;
}

.badge.complexity-high {
  background-color: #0d6efd;
  color: white;
}

/* Progress bar colors */
.progress-bar.complexity-very-low {
  background-color: #dc3545;
}

.progress-bar.complexity-low {
  background-color: #fd7e14;
}

.progress-bar.complexity-normal {
  background-color: #198754;
}

.progress-bar.complexity-high {
  background-color: #0d6efd;
}

.container {
  padding-top: 80px; /* Increased padding to create space after fixed nav */
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

/* Form container */
.signup-form-container {
  background: transparent;
  padding: 0;
}

/* Utility classes */
.d-none {
  display: none !important;
}

.d-flex {
  display: flex !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.text-center {
  text-align: center !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.py-3 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.text-break {
  word-break: break-word !important;
}

.font-monospace {
  font-family: monospace !important;
}

/* This section should be kept from the original styles.css file */
.analyze-link-container {
  text-align: right;
  margin-top: 8px;
  margin-bottom: 16px;
}

.analyze-btn {
  color: #4299e1;
  text-decoration: none;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}

.analyze-btn:hover {
  background-color: #f1f3f4;
  color: #1a73e8;
  text-decoration: none;
}

/* Animation for content update */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

/* Spinner styles */
.spinner-border {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  vertical-align: text-bottom;
  border: 0.2em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border .75s linear infinite;
}

@keyframes spinner-border {
  to { transform: rotate(360deg); }
}

/* Status message styling */
.error-message {
  padding: 10px;
  margin-top: 15px;
  border-radius: 4px;
  color: #842029;
  background-color: #f8d7da;
  border: 1px solid #f5c2c7;
}

.error-message.show {
  display: block;
}

/* Alert styling */
.alert {
  position: relative;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

.alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}

/* Make the Turnstile widget centered */
.cf-turnstile {
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

/* Checkout button styling */
.checkout-button {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #4299e1;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.checkout-button:hover {
  background-color: #3182ce;
}

.checkout-button:disabled {
  background-color: #a0aec0;
  cursor: not-allowed;
}

/* Form section styling */
.form-section {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #4a5568;
}

.form-control {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 4px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: #495057;
  background-color: #fff;
  border-color: #a3bffa;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.25);
}

/* Form actions */
.form-actions-centered {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.reset-link, .demo-link {
  color: #4299e1;
  text-decoration: none;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
}

.reset-link:hover, .demo-link:hover {
  background-color: #f1f3f4;
  color: #1a73e8;
  text-decoration: none;
}

/* Top Navigation Bar - Add to your styles.css file */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  height: 50px;
  background-color: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  box-sizing: border-box;
}

.logo-section {
  display: flex;
  align-items: center;
  height: 100%;
}

.cloudflare-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.divider {
  width: 1px;
  height: 24px;
  background-color: #e5e7eb;
  margin: 0 16px;
}

.burrito-text {
  font-weight: 500;
  color: #1d1e20;
  font-size: 16px;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-action-link {
  color: #6b7280;
  font-size: 18px;
  text-decoration: none;
  transition: color 0.2s;
}

.user-action-link:hover {
  color: #1d1e20;
}

/* Adjust the container to account for the top-nav */
.container {
  padding-top: 60px; /* Increased padding to create space after fixed nav */
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

.plan-badge {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: #f38020;
  color: white;
}


/* Adjust the domain info bar to connect visually with the top-nav */
.domain-info-bar {
  border-top: none;
  border-radius: 0;
  margin-top: 0;
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .top-nav {
    padding: 0 16px;
  }

  .burrito-text {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .top-nav {
    padding: 0 12px;
  }

  .burrito-text {
    display: none;
  }

  .divider {
    display: none;
  }
}

/* Form styling */
.form-floating {
  position: relative;
}

/* Real OTP contextual help styling */
#real-otp-help {
  color: #0d6efd;
  font-size: 0.875rem;
  margin-top: -0.5rem;
  padding: 0.375rem 0.75rem;
  background-color: #f8f9fa;
  border-left: 3px solid #0d6efd;
  border-radius: 0.25rem;
}

#real-otp-help i {
  color: #0d6efd;
}