/* General Styles */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(to bottom, #eef2f7, #d7e3fc);
    margin: 0;
    padding: 20px;
    color: #333;
  }
  
  /* Container */
  .container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15);
    animation: fadeIn 1s ease-in-out;
  }
  
  /* Headings */
  h1 {
    font-size: 2.8rem;
    color: #0056b3;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
    border-left: 4px solid #0056b3;
    padding-left: 10px;
  }
  
  /* File Upload */
  .file-input {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  input[type="file"] {
    border: 2px dashed #aaa;
    border-radius: 6px;
    padding: 10px;
    background-color: #f9f9f9;
    width: 100%;
    outline: none;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
  }
  
  input[type="file"]:hover {
    border-color: #0056b3;
  }
  
  /* Radio Buttons */
  .radio-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #555;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
  }
  
  .radio-group label input {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .radio-group label:hover {
    color: #0056b3;
    font-weight: bold;
  }
  
  /* Textarea */
  textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: linear-gradient(to bottom, #ffffff, #f9f9f9);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
  
  textarea:focus {
    border-color: #0056b3;
    box-shadow: 0 0 8px rgba(0, 86, 179, 0.5);
  }
  
  /* Buttons */
  button {
    display: inline-block;
    background: linear-gradient(to right, #007bff, #0056b3);
    color: white;
    padding: 12px 20px;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s ease;
  }
  
  button:hover {
    transform: translateY(-2px);
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to right, #0056b3, #003f80);
  }
  
  button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
  }
  
/* Ensure the AI response container doesn't overflow */
.summary-section {
    background-color: #f1faff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #cce4ff;
    margin-top: 20px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    max-width: 100%; /* Ensure the section respects the container width */
    overflow: auto; /* Add scrolling if content overflows */
  }
  
  /* Style the <pre> tag */
  #ai-response {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: #333;
    white-space: pre-wrap; /* Preserve formatting but wrap long lines */
    line-height: 1.5;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    max-width: 100%; /* Prevent overflow beyond container */
    word-wrap: break-word; /* Break long words to avoid overflow */
    overflow-x: auto; /* Horizontal scrolling for very long unbreakable lines */
    box-sizing: border-box; /* Include padding in width calculations */
  }
  
  
  /* Tooltips */
  .tooltip {
    cursor: help;
    color: #0056b3;
    font-size: 1rem;
    text-decoration: underline dotted;
    position: relative;
  }
  
  .tooltip:hover::after {
    content: attr(title);
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }
  
  /* Animations */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: scale(0.95);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  /* Checkbox Group */
  .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .checkbox-group label {
    background: #eef2f7;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
  }
  
  .checkbox-group label:hover {
    background: #d7e3fc;
    border-color: #0056b3;
  }
  