/* hex-converter.css */

/* 탭 메뉴 스타일 */
.tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-300);
    overflow-x: auto;
  }
  
  .tab-btn {
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--gray-600);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
  }
  
  .tab-btn:hover {
    color: var(--primary);
  }
  
  .tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
  }
  
  .tab-content {
    display: none;
  }
  
  .tab-content.active {
    display: block;
  }
  
  /* 버튼 그룹 */
  .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 {
    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.95rem;
    margin: 0;
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
  }
  
  .example-text {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--gray-600);
    background-color: var(--gray-50);
    border-top: 1px solid var(--gray-300);
  }
  
  /* 컬러 변환 스타일 */
  .color-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .color-input-section {
    flex: 1;
    min-width: 250px;
  }
  
  .color-preview-section {
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .color-input-group {
    display: flex;
    gap: 0.5rem;
  }
  
  .color-input-group input[type="color"] {
    width: 40px;
    padding: 0;
    height: 38px;
    cursor: pointer;
  }
  
  .color-preview {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    background-color: #FF5733;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .color-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .result-field {
    font-family: monospace;
    background-color: var(--gray-100);
    cursor: pointer;
  }
  
  .result-field:hover {
    background-color: var(--gray-200);
  }
  
  /* 색상 팔레트 */
  .color-palettes {
    margin-top: 1.5rem;
    border-top: 1px solid var(--gray-300);
    padding-top: 1rem;
  }
  
  .color-palettes h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1rem;
  }
  
  .palette-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .palette-item {
    flex: 1;
    min-width: 200px;
  }
  
  .palette-item label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: normal;
    color: var(--gray-700);
  }
  
  .color-chips {
    display: flex;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
  }
  
  .color-chip {
    flex: 1;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
  }
  
  .color-chip:hover {
    transform: scale(1.05);
    z-index: 1;
  }
  
  /* Hex 덤프 스타일 */
  .hex-dump {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    white-space: pre;
    line-height: 1.5;
  }
  
  .file-info {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--gray-600);
    background-color: var(--gray-50);
    border-top: 1px solid var(--gray-300);
  }
  
  /* 숫자 변환 결과 */
  .conversion-results {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  /* 반응형 조정 */
  @media (max-width: 768px) {
    .tabs {
      flex-wrap: nowrap;
      overflow-x: auto;
    }
    
    .color-row {
      flex-direction: column;
    }
    
    .color-preview-section {
      width: 100%;
      margin-top: 1rem;
    }
    
    .color-preview {
      margin: 0 auto;
    }
    
    .conversion-results {
      grid-template-columns: 1fr;
    }
  }