/* General Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7fb;
    color: #333;
    line-height: 1.6;
    padding: 20px;
  }
  
  /* Container */
  .container {
    max-width: 900px;
    margin: 30px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  /* Header */
  header {
    text-align: center;
    margin-bottom: 30px;
  }
  
  header h1 {
    color: #0056b3;
    font-size: 2.5em;
    margin-bottom: 10px;
  }
  
  .tagline {
    font-size: 1.1em;
    color: #666;
  }
  
  /* Main Sections */
  main section {
    margin-bottom: 40px;
  }
  
  .form-section {
    background-color: #f9fbfd;
    padding: 20px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
  }
  
  input[type="password"],
  input[type="text"],
  input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccd0d5;
    border-radius: 4px;
    font-size: 1em;
  }
  
  input[type="file"] {
    padding: 5px;
  }
  
  .password-toggle-group {
    display: flex;
    align-items: center;
  }
  
  .toggle-label {
    margin-left: 10px;
    cursor: pointer;
    font-weight: normal;
    color: #555;
  }
  
  button {
    background-color: #007bff;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
  }
  
  button:hover {
    background-color: #0056b3;
  }
  
  button:disabled {
    background-color: #ccd0d5;
    cursor: not-allowed;
  }
  
  small {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #777;
  }
  
  a {
    color: #007bff;
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  /* Status, Results, Preview, and Error Areas */
  .status-section,
  .results-section,
  .preview-section,
  .error-section {
    background-color: #f9fbfd;
    padding: 20px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
  }
  
  #status-log,
  #error-message {
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
    background-color: #fff;
    padding: 10px;
    border: 1px solid #ccd0d5;
    border-radius: 4px;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9em;
  }
  
  /* Loader */
  .loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Download Links */
  #download-links {
    list-style: none;
    padding: 0;
  }
  
  #download-links li {
    background-color: #fff;
    padding: 10px;
    border: 1px solid #ccd0d5;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  #download-links a {
    font-weight: bold;
  }
  
  /* Preview Section */
  .preview-section {
    background-color: #f4f7fb;
    border: 1px solid #d0d5da;
    padding: 20px;
    border-radius: 8px;
  }
  
  #preview-content .preview-item {
    background-color: #fff;
    border: 1px solid #ccd0d5;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
  }
  
  #preview-content h3 {
    color: #0056b3;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 15px;
  }
  
  .markdown-preview pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccd0d5;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9em;
  }
  
  /* Footer */
  footer {
    text-align: center;
    padding: 20px 10px;
    border-top: 1px solid #eaeaea;
    margin-top: 40px;
    color: #555;
    font-size: 0.9em;
  }
  
  footer p {
    margin-bottom: 10px;
  }
  
  footer .social-icons a {
    margin: 0 8px;
    color: #555;
    font-size: 1.5em;
    transition: color 0.3s ease;
  }
  
  footer .social-icons a:hover {
    color: #007bff;
  }
  
