/* risk-assessment-add.component.scss */

.risk-assessment-add {
    margin-top: 20px;
  }
  
  .risk-assessment-sections {
    margin-bottom: 20px;
  }
  
  .section-container {
    margin-bottom: 2px;
  }
  
  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f2f5fa;
    padding: 15px 20px;
    border: 1px solid #ddd;
    cursor: pointer;
    // transition: background-color 0.2s ease;
    
    &:hover {
      background-color: #e8eef8;
    }
  }
  
  .section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #3060a8;
  }
  
  .toggle-icon {
    font-size: 12px;
    color: #666;
  }
  
  .section-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    // transition: max-height 0.3s ease, padding 0.3s ease;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    
    &.expanded {
      max-height: 2000px; /* Arbitrary large value */
      padding: 20px;
      border-bottom: 1px solid #ddd;
    }
  }
  
  h2.risk-object-heading {
    padding: 10px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    margin: 15px 0;
    font-size: 16px;
    font-weight: 500;
  }
  
  /* Button styling */
  .action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 30px;
  }
  
  .btn-primary {
    background-color: #1976d2;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    
    &:hover {
      background-color: #1565c0;
    }
  }
  
  .btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    
    &:hover {
      background-color: #5a6268;
    }
  }
  
  /* Form field styling */
  .form-group {
    margin-bottom: 15px;
  }
  
  label {
    font-weight: 500;
  }
  
  .form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
  }