/* JSON 포맷터 스타일 */

/* 코드 입출력 스타일 */
.code-textarea {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    tab-size: 2;
  }
  
  .output-container {
    background-color: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    min-height: 100px;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--gray-800);
  }
  
  /* 옵션 그룹 */
  .option-group {
    margin: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
  }
  
  .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
  }
  
  .radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
  }
  
  .form-radio {
    margin-right: 0.5rem;
  }
  
  /* 버튼 그룹 */
  .button-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
  }
  
  .button-group .btn {
    flex: 1;
  }
  
  @media (max-width: 576px) {
    .button-group .btn {
      flex: 0 0 100%;
      margin-bottom: 0.5rem;
    }
  }
  
  /* 에러 메시지 */
  .error-msg {
    color: var(--danger);
    font-size: 0.85rem;
    margin-left: 1rem;
    animation: fadeIn 0.3s ease;
  }
  
  /* 트리 뷰어 스타일 */
  .tree-container {
    background-color: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    padding: 1rem;
    min-height: 100px;
    max-height: 500px;
    overflow-x: auto;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .tree-container ul {
    list-style-type: none;
    margin-left: 0.5rem;
    padding-left: 1rem;
    border-left: 1px dotted var(--gray-400);
  }
  
  .tree-container li {
    margin: 0.2rem 0;
    padding: 0.2rem 0;
  }
  
  .tree-container .toggle {
    cursor: pointer;
    position: relative;
    padding-left: 1.2rem;
    font-weight: 600;
    color: var(--primary);
  }
  
  .tree-container .toggle::before {
    content: "▶";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.2s;
    font-size: 0.7rem;
    color: var(--gray-700);
  }
  
  .tree-container .toggle.expanded::before {
    transform: translateY(-50%) rotate(90deg);
  }
  
  .tree-container .key {
    color: var(--primary);
    font-weight: 600;
  }
  
  .tree-container .string {
    color: #008000;
  }
  
  .tree-container .number {
    color: #0000ff;
  }
  
  .tree-container .boolean {
    color: #b22222;
  }
  
  .tree-container .null {
    color: #808080;
    font-style: italic;
  }
  
  /* JSON 구조 예시 */
  code {
    background-color: var(--gray-200);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
  }
  
  /* 유틸리티 클래스 */
  .float-right {
    float: right;
    margin-left: 0.5rem;
  }
  
  .btn-icon {
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: var(--transition);
  }
  
  .btn-icon:hover {
    color: var(--primary);
    background-color: rgba(0, 0, 0, 0.05);
  }
  
  /* 애니메이션 */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  /* 정보 카드 스타일 */
  .info-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 2rem 0;
    overflow: hidden;
    transition: var(--transition);
    border-left: 4px solid var(--accent);
  }
  
  .info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  }
  
  .info-card-header {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
  }
  
  .info-card-header i {
    margin-right: 0.75rem;
    font-size: 1.3rem;
  }
  
  .info-card-body {
    padding: 0;
  }
  
  .info-card-content {
    padding: 1.5rem;
  }
  
  .info-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
  }
  
  .info-col-layout {
    display: flex;
    gap: 1.5rem;
  }
  
  .info-col {
    flex: 1;
  }
  
  .info-box {
    background-color: var(--gray-100);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    height: 100%;
  }
  
  .info-box h5 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
  }
  
  .info-box h5 i {
    margin-right: 0.5rem;
  }
  
  .info-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .info-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
  }
  
  .info-list li:before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
  }
  
  /* 반응형 스타일 */
  @media (max-width: 768px) {
    .info-col-layout {
      flex-direction: column;
      gap: 1rem;
    }
    
    .option-group {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.75rem;
    }
  }