/* Reset and base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f5f5f5;
}

.checkout-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 40px;
}

h1, h2 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
}

.plan {
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  min-width: 200px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
}

.plan:hover {
  background-color: #e9ecef;
  border-color: #0073aa;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#plans-container {
  text-align: center;
  margin: 30px 0;
}

#firebaseui-auth-container {
  background: white;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin: 30px auto;
  max-width: 400px;
}

#checkout-page-container {
  text-align: center;
}

.paddle-checkout {
  margin: 10px auto;
  width: 100%;
  max-width: none;
  border: none;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  /* RESPONSIVE HEIGHT: Ensure enough space for Paddle content */
  min-height: 400px; /* Desktop minimum */
}

/* Mobile: More height for stacked cards and touch targets - REDUCED by 100px */
@media screen and (max-width: 768px) {
  .paddle-checkout {
    min-height: 750px; 
  }
}

/* Small mobile: Maximum height for tiny screens - REDUCED by 100px */
@media screen and (max-width: 480px) {
  .paddle-checkout {
    min-height: 900px; 
  }
}

.paddle-checkout iframe {
  width: 100% !important;
  border: none !important;
  overflow: hidden !important;
  background: transparent !important;
  display: block !important;
}

#app-container {
  min-height: 800px; /* INCREASED from 500px for desktop signin button */
}

/* Mobile: More app container height - REDUCED by ~100px */
@media screen and (max-width: 768px) {
  #app-container {
    min-height: 800px; /* REDUCED from 900px */
  }
}

@media screen and (max-width: 480px) {
  #app-container {
    min-height: 1000px; /* REDUCED from 1100px */
  }
}

/* Loading spinner */
.loading {
  text-align: center;
  padding: 40px;
  font-size: 18px;
  color: #666;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
  padding: 20px;
  border-radius: 5px;
  margin: 20px 0;
  text-align: center;
}

.success {
  background-color: #d4edda;
  color: #155724;
  padding: 20px;
  border-radius: 5px;
  margin: 20px 0;
  text-align: center;
}
