body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e40af 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  min-height: 100vh;
  margin: 0;
}

.help-text {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-top: 4px;
  font-style: italic;
}

/* Features Section */
.features-section {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(10px);
}

.features-section h3 {
  margin: 0 0 1.5rem 0;
  color: #1e40af;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.feature-text strong {
  display: block;
  color: #333;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.feature-text p {
  margin: 0;
  color: #666;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Form Styling */
form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

/* Modern Upload Zone */
.upload-zone {
  border: 2px dashed #e5e7eb;
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
  margin: 2rem 0;
  border-radius: 16px;
  overflow: hidden;
}

.upload-zone:hover {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.15);
}

.upload-zone.drag-over {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  transform: scale(1.02);
  box-shadow: 0 16px 32px rgba(59, 130, 246, 0.25);
}

.upload-content {
  pointer-events: none;
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.upload-zone h3 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1.25rem;
  font-weight: 600;
}

.upload-zone p {
  margin: 0 0 1rem 0;
  color: #666;
  font-size: 1rem;
}

.upload-link {
  color: #007bff;
  text-decoration: underline;
  cursor: pointer;
}

.upload-hint {
  color: #888;
  font-size: 0.85rem;
  display: block;
  margin-top: 0.5rem;
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* File Preview */
.file-preview {
  margin: 1rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.file-icon {
  font-size: 2rem;
  color: #007bff;
}

.file-details {
  flex: 1;
}

.file-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}

.file-size {
  color: #666;
  font-size: 0.9rem;
}

.remove-file {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.remove-file:hover {
  background: #c82333;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-item {
    padding: 0.75rem;
  }
  
  .upload-zone {
    padding: 2rem 1rem;
  }
  
  .upload-icon {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }
}

.container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 3rem;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
    margin: 0;
  }
}

.logo {
  width: 100px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(30, 64, 175, 0.1);
}

.subtitle {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 2rem;
  line-height: 1.6;
  font-weight: 400;
}



input[type="file"], select, button {
  width: 100%;
  margin: 10px 0;
  padding: 0.5rem;
}

button {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
  text-transform: none;
  letter-spacing: 0.025em;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.4);
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.bank-selection {
  display: flex;
  justify-content: space-around;
  margin: 15px 0;
}

.bank-selection label {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bank-selection img {
  width: 60px;
  height: auto;
  margin-top: 5px;
  border: 2px solid transparent;
  border-radius: 6px;
  transition: border 0.3s ease;
}

.bank-selection input[type="radio"]:checked + img {
  border: 2px solid #007bff;
}

#spinner {
  margin-top: 15px;
  font-style: italic;
  color: #333;
}

/* Debug Mode Styles */
.debug-toggle {
  margin: 2rem 0;
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.debug-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 500;
  color: #1e40af;
}

.debug-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: relative;
  cursor: pointer;
  width: 50px;
  height: 28px;
  background-color: #cbd5e1;
  transition: .4s;
  border-radius: 28px;
  flex-shrink: 0;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  top: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background-color: #3b82f6;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.debug-options {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: left;
  backdrop-filter: blur(10px);
}

.debug-options h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #1e40af;
  font-size: 18px;
  font-weight: 600;
}

.debug-options label {
  display: block;
  margin: 15px 0;
  cursor: pointer;
  font-size: 16px;
  padding: 8px 0;
  line-height: 1.5;
}

.debug-options input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 12px;
  vertical-align: middle;
}

.processing-status {
  background: #e3f2fd;
  border: 1px solid #2196f3;
  border-radius: 8px;
  padding: 25px;
  margin: 20px 0;
}

.processing-status h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #1976d2;
  font-size: 18px;
  font-weight: 600;
}

.status-log {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 20px;
  max-height: 300px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.status-entry {
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 4px;
  background: #f8f9fa;
  border-left: 4px solid #dee2e6;
}

.status-entry.success {
  color: #28a745;
  background: #d4edda;
  border-left-color: #28a745;
}

.status-entry.error {
  color: #dc3545;
  background: #f8d7da;
  border-left-color: #dc3545;
}

.status-entry.warning {
  color: #856404;
  background: #fff3cd;
  border-left-color: #ffc107;
}

.status-entry.info {
  color: #0c5460;
  background: #d1ecf1;
  border-left-color: #17a2b8;
}

.timestamp {
  color: #6c757d;
  font-weight: bold;
  font-size: 12px;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background-color: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #007bff, #0056b3);
  width: 0%;
  transition: width 0.3s ease;
}

.debug-info {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 25px;
  margin: 20px 0;
}

.debug-info h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #856404;
  font-size: 18px;
  font-weight: 600;
}

.debug-log {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
}

.debug-entry {
  margin: 6px 0;
  padding: 8px 12px;
  color: #495057;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 3px solid #007bff;
}

.debug-entry .timestamp {
  color: #6c757d;
  font-weight: bold;
  font-size: 11px;
  margin-right: 8px;
}
