* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px;
  }
  
  header {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
  }
  
  header h1 {
    margin: 0;
  }
  
  nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
  
  nav ul li {
    display: inline;
    margin-right: 10px;
  }
  
  nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px;
  }
  
  nav ul li a.active {
    background-color: #555;
    border-radius: 5px;
  }
  
  main {
    max-width: 600px;
    margin: 20px auto;
    padding: 0 20px;
  }

  /* Flash Messages Styling */
  .flash-messages {
    margin-bottom: 20px;
  }

  .flash-message {
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 4px solid;
    font-weight: 500;
  }

  .flash-success {
    background-color: #d4edda;
    color: #155724;
    border-left-color: #28a745;
  }

  .flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
  }

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

  .flash-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
  }
  
  p {
    margin-bottom: 20px;
  }

  h2 {
    color: #333;
    margin-bottom: 15px;
  }

  h3 {
    color: #555;
    margin-bottom: 10px;
    margin-top: 20px;
  }

  .requirements {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
  }

  .requirements ul {
    margin: 0;
    padding-left: 20px;
  }

  .requirements li {
    margin-bottom: 8px;
  }

  .example {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
  }

  .table-container {
    background-color: #fff;
    padding: 15px;
    border-radius: 3px;
    border: 1px solid #ddd;
    overflow-x: auto;
  }

  .csv-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
  }

  .csv-table th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 12px 8px;
    text-align: left;
    border: 1px solid #dee2e6;
    border-bottom: 2px solid #007bff;
  }

  .csv-table td {
    padding: 10px 8px;
    border: 1px solid #dee2e6;
    vertical-align: top;
  }

  .csv-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
  }

  .csv-table tbody tr:hover {
    background-color: #e3f2fd;
  }
  
  form {
    margin-bottom: 20px;
  }

  /* Upload Success Section */
  #autocodeSection {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #28a745;
  }

  .upload-success {
    margin-bottom: 20px;
  }

  .upload-success h3 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 1.2em;
  }

  .upload-success p {
    margin-bottom: 8px;
    color: #495057;
  }

  #autocodeBtn {
    background-color: #28a745;
    font-size: 18px;
    padding: 15px 40px;
    margin-top: 10px;
  }

  #autocodeBtn:hover {
    background-color: #218838;
  }

  #uploadBtn {
    background-color: #007bff;
    margin-top: 10px;
  }

  #uploadBtn:hover {
    background-color: #0056b3;
  }
  
  label {
    display: block;
    margin-bottom: 5px;
  }
  
  input[type="file"],
  select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
  }
  
  button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
  }
  
  button:hover {
    background-color: #0056b3;
  }
  
  footer {
    background-color: #333;
    color: #fff;
    padding: 15px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .footer-section {
    margin: 0;
  }
  
  .footer-section p {
    margin: 0;
    font-size: 14px;
  }
  
  .contact-info a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .contact-info a:hover {
    color: #66BB6A;
    text-decoration: underline;
  }
  
  @media (max-width: 768px) {
    .footer-content {
      flex-direction: column;
      gap: 10px;
      text-align: center;
    }
  }

  /* Download Section Styling */
  #downloadSection {
    background-color: #f8f9fa;
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
  }

  .processing-success h3 {
    color: #28a745;
    margin-bottom: 20px;
    font-size: 24px;
  }

  .processing-success p {
    margin: 10px 0;
    font-size: 16px;
    color: #333;
  }

  .download-container {
    margin-top: 25px;
  }

  .download-btn {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .download-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
  }

  .download-note {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    font-style: italic;
  }
  