.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow: auto;
  /* ALLOWS SCROLLING */
}

.modal-content {
  position: relative;
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  /* LIMIT HEIGHT */
  overflow-y: auto;
  /* MAKES INTERNAL SCROLL */
}

.large-modal {
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
}
  
  .modal-content h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: large;
    color: #333;
    font-weight: 300;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
    font-size: medium;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: small;
  }
  
  .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
  }

    .close-btn {
      all: unset;
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: none;
      border: none;
      font-size: 1rem;
      cursor: pointer;
      color: #333;
    }
  
    /* ===== VIEW CANDIDATE SPECIFIC IMPROVEMENTS ===== */
  
    /* Title spacing */
    .view-title {
      font-size: 1.3rem;
      font-weight: 600;
      margin-bottom: 1.2rem;
      color: #222;
    }
  
    /* Section wrapper */
    .view-section {
      margin: 1.5rem 0;
      padding-bottom: 1rem;
      border-bottom: 1px solid #e5e5e5;
    }
  
    /* Section headings */
    .view-section h3 {
      font-size: 1.05rem;
      font-weight: 500;
      color: #333;
      margin-bottom: 0.6rem;
    }

    
  
    /* Info rows */
    .view-row {
      margin: 0.3rem 0;
      color: #555;
      font-size: 0.95rem;
    }
  
    /* Highlight labels */
    .view-row strong {
      color: #333;
      font-weight: 400;
    }
  
    /* Experience cards */
    .experience-item {
      background: #f8f8fb;
      padding: 12px 14px;
      border-radius: 8px;
      border: 1px solid #e3e3e8;
      margin-bottom: 0.7rem;
    }
  
    /* Button upgrades (ONLY here!) */
    .view-btn {
      margin-top: 1rem;
      width: 100%;
      background: #4b4b7a;
      color: white;
      padding: 0.75rem 1rem;
      border-radius: 6px;
      border: none;
      cursor: pointer;
      font-size: 0.95rem;
      font-weight: 500;
      transition: 0.2s;
    }
  
    .view-btn:hover {
      background-color: rgb(137, 137, 138);
    }