/* 
 * Slimmed down modal.css
 * General modal styles for the application, with tutorial-specific styles removed
 */

/* Base Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
  }
  
  .modal-content {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
  }
  
  .modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .modal-header h2,
  .modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }
  
  .close-modal,
  .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
  }
  
  .close-modal:hover,
  .modal-close:hover {
    color: #333;
  }
  
  /* Form Actions in Modals */
  .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
  }
  
  /* Legal Content Styles */
  .legal-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
    line-height: 1.6;
  }
  
  .legal-content h3 {
    margin: 20px 0 10px;
    color: #0074d9;
  }
  
  .legal-content p {
    margin-bottom: 15px;
    color: black;
  }
  
  .legal-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
  }
  
  .legal-content li {
    margin-bottom: 8px;
  }
  
  /* Loading Spinner */
  .loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0074d9;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Modal Button Styles */
  .modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
  }
  
  /* Button color variations */
  .modal-btn.primary {
    background-color: #0066cc;
    color: white;
  }
  
  .modal-btn.primary:hover {
    background-color: #0052a3;
  }
  
  .modal-btn.secondary {
    background-color: #888;
    color: white;
  }
  
  .modal-btn.secondary:hover {
    background-color: #666;
  }
  
  .modal-btn.success {
    background-color: #4caf50;
    color: white;
  }
  
  .modal-btn.success:hover {
    background-color: #388e3c;
  }
  
  .modal-btn.danger {
    background-color: #f44336;
    color: white;
  }
  
  .modal-btn.danger:hover {
    background-color: #d32f2f;
  }
  
  /* Mobile Responsiveness */
  @media (max-width: 768px) {
    .modal-content {
      max-width: 90%;
    }
    
    .modal-btn {
      padding: 8px 15px;
      font-size: 14px;
    }
  }
  
  /* Z-Index Layering */
  .utility-buttons-container,
  .utility-buttons-container .button-panel {
    z-index: 1200;
  }
  
  .pdf-overlay {
    z-index: 1100;
  }
  
  .header {
    z-index: 900;
  }