/* Diagnostic Analyzer Tool Style - Based on user's preferred color scheme */

/* Base Elements */
body {
    background-color: #f8f9fa;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }
  
  /* Header Styling */
  .bg-orange {
    background-color: #ff7404 !important;
  }
  
  .card-header {
    border-bottom: 0;
    color: #fff;
    padding: 1.5rem;
  }
  
  /* Card Styling */
  .card {
    border-color: #ff7404;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    
  }
  
  .card-body {
    padding: 2rem;
  }

  
  
  .card.bg-light {
    background-color: #fff;
    border: 1px solid #dee2e6;
  }
  
  /* Form Elements - Improved Layout */
  @media (min-width: 992px) {
    .container {
        max-width: 960px;
        padding: 0 20px;
    }
    
    .form-control, .form-select {
        max-width: 100%;
        width: 100%;
    }
  }
  
  .form-control, .form-select {
    border-radius: 4px;
    border-color: #ced4da;
  }
  
  .form-control:focus, .form-select:focus {
    border-color: #ff7404;
    box-shadow: 0 0 0 0.25rem rgba(255, 116, 4, 0.25);
  }
  
  .form-label {
    font-weight: 500;
    color: #000;
    margin-bottom: 0.5rem;
  }
  
  textarea.form-control {
    min-height: 150px;
    resize: vertical;
  }
  
  /* Buttons */
  .btn-primary {
    background-color: #ff7404;
    border-color: #ff7404;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
  }
  
  .btn-primary:hover, .btn-primary:focus {
    background-color: #e06604;
    border-color: #e06604;
    color: #fff;
  }

  .btn-primary:disabled, .btn-primary.loading {
    background-color: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
  }
  
  .btn-outline-secondary {
    color: #495057;
    border-color: #ced4da;
  }
  
  .btn-outline-secondary:hover {
    background-color: #495057;
    border-color: #495057;
    color: #fff;
  }

  .btn-outline-secondary:disabled, .btn-outline-secondary.loading {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
    cursor: not-allowed;
  }
  
  /* Text Formatting */
  h3.h5 {
    font-weight: 600;
    color: #000;
    margin-bottom: 1rem;
  }
  
  /* Pre-formatted text */
  pre {
    white-space: pre-wrap;
    font-size: 0.9rem;
    color: #000;
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
  }
  
  /* Links */
  a {
    color: #ff7404;
  }
  
  a:hover {
    color: #e06604;
  }
  
  /* Spacing Improvements */
  .mb-4 {
    margin-bottom: 2rem !important;
  }
  
  .mb-5 {
    margin-bottom: 3rem !important;
  }
  
  .mt-5 {
    margin-top: 3rem !important;
  }
  
  /* File Input Styling */
  .form-control[type="file"] {
    padding: 0.375rem 0.75rem;
  }
  
  /* Loading State */
  .loading .spinner-border {
    display: inline-block !important;
  }
  
  .loading #analyzeBtn {
    opacity: 0.7;
    cursor: not-allowed;
  }
  
  /* Enhanced List Styling */
  ul {
    padding-left: 1.5rem;
  }
  
  li {
    margin-bottom: 0.5rem;
  }
  
  /* Responsive Adjustments for Better Layout on All Devices */
  @media (max-width: 767.98px) {
    .card-body {
        padding: 1.25rem;
    }
    
    .card-header {
        padding: 1.25rem;
    }
    
    .container {
        padding: 0 12px;
    }
  }
  
  /* Header Title and Description */
  .display-6 {
    font-size: 2rem;
    font-weight: 300;
  }
  
  .lead {
    font-size: 1.1rem;
    font-weight: 300;
  }
  
  /* Submit Button Full-Width on Mobile */
  @media (max-width: 576px) {
    .d-grid .btn {
        padding: 0.75rem;
    }
  }
  
  /* Keep Footer at Bottom */
  html, body {
    height: 100%;
  }
  
  #wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  main {
    flex: 1;
  }


/* Page break for PDF/print via html2pdf.js */
.pdf-page-break {
    display: block;
    height: 0;
    page-break-before: always;
    break-before: page;
  }

/* Center all pages */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Spinner for loading state */
.spinner-border {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  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); }
}
