/* ------------------------------ */
/* GLOBAL */
/* ------------------------------ */

body {
    font-family: Arial, sans-serif;
    background: #ffffff;
    margin: 0;
    padding: 0;
    color: #0F1E48;
  }
  
  .hidden {
    display: none !important;
  }
  
  h1 {
    font-weight: 700;
    color: #0F1E48;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
  }
  
  /* ------------------------------ */
  /* LOGO */
  /* ------------------------------ */
  
  .logo-box {
    text-align: center;
    margin-top: 25px;
  }
  
  .logo-box img {
    width: 170px;
  }
  
  /* ------------------------------ */
  /* MODE BUTTONS */
  /* ------------------------------ */
  
  .button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
    margin: 20px;
  }
  
  .button-grid button {
    background: rgb(232, 52, 111);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.1s ease;
  }
  
  .button-grid button:hover {
    background: rgb(210, 40, 95);
    transform: translateY(-2px);
  }
  
  .button-grid button:active {
    transform: translateY(0px);
  }
  
  /* ------------------------------ */
  /* COLLAPSIBLES */
  /* ------------------------------ */
  
  .collapsible {
    margin: 20px;
    border-radius: 6px;
    background: #F5F5F5;
    border-left: 4px solid rgb(232, 52, 111);
  }
  
  .collapsible-header {
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    background: #ffffff;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
  }
  
  .collapsible-header:hover {
    background: #f0f0f0;
  }
  
  .collapsible-content {
    padding: 15px;
    line-height: 1.55;
    white-space: pre-wrap;
    display: none;
  }
  
  .collapsible.open .collapsible-content {
    display: block;
  }
  
  /* ------------------------------ */
  /* TEXTAREA */
  /* ------------------------------ */
  
  #user-input {
    width: calc(100% - 50px);
    margin: 20px 25px;
    padding: 15px;
    height: 220px;
    border-radius: 6px;
    border: 1px solid #CCC;
    font-size: 15px;
    line-height: 1.45;
  }
  
  /* ------------------------------ */
  /* GENERATE BUTTON */
  /* ------------------------------ */
  
  .generate-btn {
    background: #0F1E48;
    color: white;
    padding: 14px 22px;
    border-radius: 6px;
    border: none;
    margin-left: 25px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .generate-btn:hover {
    background: #172a63;
  }
  
  /* Spinner */
  .spinner {
    width: 18px;
    height: 18px;
    border: 3px solid #ffffff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  /* ------------------------------ */
  /* OUTPUT */
  /* ------------------------------ */
  
  .output-box {
    background: #ffffff;
    border: 1px solid #DDD;
    padding: 20px;
    margin: 25px;
    border-radius: 6px;
    white-space: pre-wrap;
    font-size: 15px;
    line-height: 1.55;
  }
  
  /* ------------------------------ */
  /* COPY BUTTON */
  /* ------------------------------ */
  
  .copy-btn {
    background: #0F1E48;
    color: white;
    padding: 12px 20px;
    margin-left: 25px;
    margin-bottom: 30px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
  }
  
  .copy-btn:hover {
    background: #172a63;
  }
  
  /* ------------------------------ */
  /* MODAL */
  /* ------------------------------ */
  
  .modal {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: rgba(15, 30, 72, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 330px;
    text-align: center;
  }
  
  .modal-content input {
    width: 90%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #CCC;
    margin-bottom: 10px;
  }
  
  .modal-content button {
    background: #0F1E48;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .modal-content button:hover {
    background: #172a63;
  }
  
  .error {
    color: red;
    margin-top: 10px;
  }
  