/* db-generator.css */

/* 섹션 카드 스타일 */
.section-card {
    margin-top: 1.5rem;
  }
  
  /* 폼 행 스타일 */
  .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .form-row .col {
    flex: 1;
    min-width: 250px;
  }
  
  /* 체크박스 그룹 */
  .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  /* 서브 섹션 스타일 */
  .sub-section {
    padding: 1rem;
    margin-top: 1rem;
    background-color: var(--gray-100);
    border: 1px dashed var(--gray-400);
    border-radius: 4px;
  }
  
  .sub-section h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  /* 버튼 그룹 */
  .button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  /* 결과 컨테이너 */
  .result-container {
    margin-top: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    overflow: hidden;
  }
  
  .result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--gray-200);
    font-weight: 500;
    border-bottom: 1px solid var(--gray-300);
  }
  
  .result-output {
    padding: 1rem;
    background-color: var(--gray-100);
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 0.9rem;
    margin: 0;
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
  }
  
  .copy-btn {
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    font-size: 1rem;
  }
  
  .copy-btn:hover {
    color: var(--primary);
  }
  
  /* CREATE TABLE 고급 모드 스타일 */
  #columnsContainer {
    margin-bottom: 1rem;
  }
  
  .column-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--gray-300);
  }
  
  .column-row:last-child {
    border-bottom: none;
  }
  
  .column-row .column {
    flex: 1;
  }
  
  .column-row .buttons {
    display: flex;
    gap: 0.25rem;
  }
  
  /* UPDATE 필드 행 스타일 */
  .update-field-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--gray-300);
  }
  
  .update-field-row:last-child {
    border-bottom: none;
  }
  
  .update-field-row .column {
    flex: 1;
  }
  
  /* 위험 툴팁 */
  .tooltip.danger .tooltip-text {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
  }
  
  .tooltip.danger .tooltip-text::after {
    border-color: #f8d7da transparent transparent transparent;
  }
  
  /* SQL 힌트 및 예제 스타일 */
  .collapsible {
    cursor: pointer;
  }
  
  .hint-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .hint-section h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--gray-800);
  }
  
  .hint-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
  }
  
  .hint-example {
    position: relative;
    background-color: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    padding: 1rem;
  }
  
  .hint-example h5 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--gray-800);
  }
  
  .code-block {
    background-color: var(--gray-200);
    padding: 0.75rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    overflow-x: auto;
    margin: 0;
    color: var(--gray-800);
  }
  
  .copy-btn-small {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    font-size: 0.9rem;
  }
  
  .copy-btn-small:hover {
    color: var(--primary);
  }
  
  .hint-tips {
    padding-left: 1.5rem;
    margin: 0;
  }
  
  .hint-tips li {
    margin-bottom: 0.5rem;
    color: var(--gray-700);
  }
  
  .hint-tips code {
    background-color: var(--gray-200);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: monospace;
  }
  
  /* 응답형 스타일 */
  @media (max-width: 768px) {
    .form-row {
      flex-direction: column;
    }
    
    .form-row .col {
      width: 100%;
    }
    
    .button-group {
      flex-direction: column;
    }
    
    .button-group button {
      width: 100%;
    }
    
    .hint-examples {
      grid-template-columns: 1fr;
    }
  }