body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: linear-gradient(135deg, #4cb8ff 0%, #1976d2 100%);
  min-height: 100vh;
  color: #fff;
}

/* Password Overlay Styles */
.password-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4cb8ff 0%, #1976d2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.password-container {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 90%;
}

.password-container h2 {
  color: #1976d2;
  margin: 0 0 16px 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.password-container p {
  color: #666;
  margin: 0 0 24px 0;
  font-size: 1rem;
}

.password-field {
  width: 100%;
  padding: 16px;
  border: 2px solid #e3f2fd;
  border-radius: 12px;
  font-size: 1.1rem;
  margin-bottom: 16px;
  text-align: center;
  color: #1976d2;
  font-weight: 600;
  box-sizing: border-box;
}

.password-field:focus {
  outline: none;
  border-color: #4cb8ff;
}

.password-button {
  width: 100%;
  background: linear-gradient(90deg, #4cb8ff 0%, #1976d2 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.password-button:hover {
  background: #1565c0;
}

.password-error {
  color: #d32f2f;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 12px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px 10px 16px;
}

.main-content {
  display: flex;
  gap: 40px;
  justify-content: space-between;
}

.left-panel {
  flex: 1 1 0;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.right-panel {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
}

h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.subtitle {
  font-size: 1.1rem;
  color: #e3f2fd;
  margin-bottom: 16px;
}

.dropdown-label {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.dropdown {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #1976d2;
  background: #e3f2fd;
  font-weight: 600;
  box-sizing: border-box;
}

.problem-input {
  width: 100%;
  border-radius: 16px;
  border: none;
  padding: 12px;
  font-size: 1.1rem;
  color: #1976d2;
  background: #e3f2fd;
  margin-bottom: 8px;
  resize: vertical;
  box-sizing: border-box;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(90deg, #4cb8ff 0%, #1976d2 100%);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 16px 0;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.2s;
  box-sizing: border-box;
}
.submit-btn:hover {
  background: #1565c0;
}

.processing {
  width: 100%;
  background: linear-gradient(90deg, #4cb8ff 0%, #1976d2 100%);
  color: #b3e5fc;
  border-radius: 16px;
  padding: 16px 0;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #b3e5fc;
  border-top: 3px solid #1976d2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.excuse-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 16px 0 4px 0;
}

.excuse-output {
  width: 100%;
  border-radius: 16px;
  border: none;
  padding: 12px;
  font-size: 1.1rem;
  color: #1976d2;
  background: #e3f2fd;
  resize: vertical;
  box-sizing: border-box;
}

.excuse-image {
  width: 100%;
  max-width: 640px;
  border-radius: 24px;
  display: block;
}

.error-toast {
  position: relative;
  margin-top: 16px;
  background: #d32f2f;
  color: #fff;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;
  opacity: 0.95;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: opacity 0.3s;
}

@media (max-width: 900px) {
  .main-content {
    flex-direction: column;
    gap: 24px;
  }
  .right-panel {
    justify-content: flex-start;
    margin-top: 16px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 8px 2px 4px 2px;
  }
  .main-content {
    gap: 12px;
  }
  .left-panel, .right-panel {
    max-width: 100%;
  }
  h1 {
    font-size: 2rem;
  }
  .excuse-image {
    max-width: 100%;
    margin-top: 12px;
  }
}

/* Tip section */
.tip-section {
  margin: 30px auto 10px auto;
  text-align: center;
  max-width: 1200px;
  padding: 0 20px;
}

.tip-button {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  transition: all 0.3s ease;
  animation: tipPulse 2s infinite;
}

.tip-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

@keyframes tipPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Tip amount section */
.tip-amount-section {
  margin: 20px 0;
}

.tip-amount-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.tip-amount-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  text-align: center;
  transition: border-color 0.3s ease;
}

.tip-amount-input:focus {
  outline: none;
  border-color: #4285f4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.tip-error {
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
  font-weight: 500;
}

/* Payment Dialog Styles */
.payment-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.payment-container {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  border-radius: 24px;
  padding: 32px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.payment-container h2 {
  margin: 0 0 16px 0;
  font-size: 1.8rem;
  text-align: center;
}

.payment-container p {
  margin: 0 0 24px 0;
  font-size: 1.1rem;
  text-align: center;
  opacity: 0.9;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.payment-button {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 16px 24px;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}

.payment-button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.qr-section, .copy-section {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(8px);
}

.qr-section h3, .copy-section h3 {
  margin: 0 0 16px 0;
  font-size: 1.2rem;
  text-align: center;
}

#qr-code-container {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

#qr-canvas {
  border-radius: 12px;
  background: white;
  padding: 12px;
  width: 256px;
  height: 256px;
  display: block;
}

.copy-option {
  margin-bottom: 16px;
}

.copy-option:last-child {
  margin-bottom: 0;
}

.copy-option label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0.8;
}

.copy-option textarea,
.copy-option input {
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 8px;
  font-family: monospace;
  resize: none;
}

.copy-option input {
  height: 60px; /* Add extra height for Lightning address */
}

.copy-option button {
  background: #4caf50;
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.copy-option button:hover {
  background: #45a049;
}

.payment-status {
  text-align: center;
  margin: 24px 0;
  min-height: 40px;
}

.payment-status > div {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px;
  border-radius: 12px;
}

#payment-waiting {
  background: rgba(255, 193, 7, 0.2);
  border: 2px solid rgba(255, 193, 7, 0.5);
  color: #fff3c4;
}

#payment-success {
  background: rgba(76, 175, 80, 0.2);
  border: 2px solid rgba(76, 175, 80, 0.5);
  color: #c8e6c9;
}

#payment-timeout {
  background: rgba(244, 67, 54, 0.2);
  border: 2px solid rgba(244, 67, 54, 0.5);
  color: #ffcdd2;
}

.dialog-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.cancel-button {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.cancel-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Mobile responsiveness for payment dialogs */
@media (max-width: 600px) {
  .payment-container {
    padding: 24px 16px;
    margin: 16px;
    width: calc(100% - 32px);
  }
  
  .payment-methods {
    flex-direction: column;
    gap: 16px;
  }
  
  .qr-section, .copy-section {
    padding: 16px;
  }
  
  #qr-canvas {
    max-width: 200px;
    height: auto;
  }
}

/* Legal Footer */
.legal-footer {
  text-align: center;
  padding: 20px;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #666;
  background: rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
} 