/* Business Plan Generator - Custom Styles */
body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

/* Form styles */
.form-field {
  transition: all 0.2s ease-in-out;
}

.form-field:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-field:hover {
  border-color: #a5b4fc;
}

/* Error states */
.error-field {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.error-field:focus {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

/* Loading spinner */
.loading-spinner {
  border: 4px solid #f3f4f6;
  border-top: 4px solid #4f46e5;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Business plan sections */
.business-plan-section {
  border-left: 4px solid #4f46e5;
  padding-left: 2rem;
  margin: 3rem 0;
  padding-bottom: 2rem;
}

.business-plan-section:not(:last-child) {
  border-bottom: 1px solid #e5e7eb;
}

/* Tables */
.financial-table {
  overflow-x: auto;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.financial-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: white;
}

.financial-table th,
.financial-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.financial-table th {
  background-color: #f9fafb;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #d1d5db;
}

.financial-table tr:hover {
  background-color: #f9fafb;
}

/* Color utilities */
.positive {
  color: #10b981;
  font-weight: 600;
}

.negative {
  color: #ef4444;
  font-weight: 600;
}

/* Gradient backgrounds */
.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Cards and containers */
.hover-card {
  transition: all 0.3s ease;
}

.hover-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Channel selection grid */
input[type="checkbox"] + span {
  transition: all 0.2s ease;
}

input[type="checkbox"]:checked + span {
  color: #4f46e5;
  font-weight: 600;
}

label:has(input[type="checkbox"]) {
  transition: all 0.2s ease;
  cursor: pointer;
}

label:has(input[type="checkbox"]:checked) {
  background-color: #eef2ff;
  border-color: #4f46e5;
}

label:has(input[type="checkbox"]):hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12px;
    color: black !important;
  }
  
  .business-plan-section {
    page-break-inside: avoid;
    margin-bottom: 20px !important;
  }
  
  .financial-table table {
    font-size: 10px !important;
  }
  
  .grid {
    display: block !important;
  }
  
  .grid > div {
    margin-bottom: 10px !important;
    page-break-inside: avoid;
  }
  
  .bg-blue-50, .bg-green-50, .bg-yellow-50, .bg-purple-50, .bg-gray-50 {
    background-color: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
  }
  
  .text-indigo-600, .text-blue-600, .text-green-600, .text-purple-600 {
    color: #374151 !important;
  }
  
  h1, h2, h3 {
    color: #1f2937 !important;
  }
  
  .business-plan-document {
    max-width: none !important;
  }
  
  /* Ensure good page breaks */
  h2 {
    page-break-after: avoid;
  }
  
  table {
    page-break-inside: avoid;
  }
}

/* Responsive design improvements */
@media (max-width: 768px) {
  .business-plan-section {
    padding-left: 1rem;
    border-left-width: 2px;
  }
  
  .financial-table th,
  .financial-table td {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
  
  .grid {
    gap: 1rem !important;
  }
}

/* Animation improvements */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Button improvements */
button {
  transition: all 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:active {
  transform: translateY(0);
}

/* Focus styles for accessibility */
.form-field:focus,
button:focus,
select:focus {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

/* Success states */
.success-field {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}