/* style.css */

/* Base */
body {
    font-family: 'Montserrat', sans-serif;
    background: #F2F0F3;
    color: #2C2C2C;
    margin: 0;
    padding: 1rem;
  }
  .container {
    max-width: 600px;
    margin: 0 auto;
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* Heading */
  h1 {
    margin-top: 0;
    color: #5B2966;
    font-weight: 600;
    text-align: center;
  }
  
  /* Form */
  .form-group {
    margin-bottom: 1rem;
  }
  .form-row {
    display: flex;
    gap: 1rem;
  }
  .half {
    flex: 1;
  }
  label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
  }
  input[type="text"],
  input[type="date"],
  input[type="time"],
  textarea,
  input[type="file"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #CCC;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
  }
  .required {
    color: #D54D9B;
  }
  
  /* Buttons */
  button[type="submit"],
  #retry-btn {
    background: #5B2966;
    color: #FFFFFF;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
  }
  button[type="submit"]:hover,
  #retry-btn:hover {
    background: #45224E;
  }
  
  /* Previews */
  .preview {
    background: #F9F9F9;
    border: 1px solid #CCC;
    padding: 0.5rem;
    font-family: monospace;
    font-size: 0.9rem;
    max-height: 200px;
    overflow: auto;
    white-space: pre-wrap;
  }
  
  .truncation-notice {
    font-size: 0.8rem;
    color: #777;
    font-style: italic;
    margin-top: 0.5rem;
  }
  
  .error-message {
    color: #D54D9B;
    font-weight: bold;
  }
  
  /* Excel Preview Table */
  .excel-preview-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
  }
  
  .excel-preview-table th {
    background-color: #5B2966;
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 0.4rem;
  }
  
  .excel-preview-table td {
    padding: 0.4rem;
    border: 1px solid #DDD;
  }
  
  .excel-preview-table tr:nth-child(even) {
    background-color: #F5F5F5;
  }
  
  /* Overlay */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
  }
  
  /* Spinner */
  .fa-spinner-container {
    margin-bottom: 1rem;
  }
  .fa-spinner-container i {
    font-size: 3rem;
    color: #5B2966;
    animation: fa-spin 2s infinite linear;
  }
  @keyframes fa-spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
  /* Result */
  #result {
    margin-top: 1rem;
    text-align: center;
  }
  
  /* Responsive */
  @media (max-width: 600px) {
    .form-row {
      flex-direction: column;
    }
  }
  