/* base64.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 {
    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-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .result-info {
    font-size: 0.85rem;
    color: var(--gray-600);
  }
  
  .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);
  }
  
  /* 이미지 변환 탭 스타일 */
  .image-preview-container {
    margin: 1rem 0;
    background-color: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    overflow: hidden;
  }
  
  .image-preview-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    position: relative;
  }
  
  #imagePreview {
    max-width: 100%;
    max-height: 300px;
    display: none;
  }
  
  #noImageMessage {
    color: var(--gray-600);
    text-align: center;
    padding: 2rem;
  }
  
  .image-info {
    padding: 0.5rem 1rem;
    background-color: var(--gray-200);
    font-size: 0.85rem;
    border-top: 1px solid var(--gray-300);
  }
  
  .image-result {
    max-height: 200px;
  }
  
  /* 체크박스 그룹 */
  .checkbox-group {
    margin-bottom: 1rem;
  }
  
  /* 코드 예제 스타일 */
  .code-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  
  .code-example {
    position: relative;
  }
  
  .code-example h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1rem;
  }
  
  .code-block {
    background-color: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    padding: 1rem;
    font-family: monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    overflow-x: auto;
    margin: 0;
  }
  
  .copy-btn-small {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--gray-200);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .copy-btn-small:hover {
    background-color: var(--gray-300);
  }
  
  /* 정보 카드 스타일 */
  .info-card h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--gray-800);
  }
  
  .info-card h4:first-child {
    margin-top: 0;
  }
  
  .info-card p {
    margin-bottom: 1rem;
    color: var(--gray-700);
  }
  
  .info-card ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
  }
  
  .info-card ul li {
    margin-bottom: 0.25rem;
    color: var(--gray-700);
  }
  
  /* 반응형 조정 */
  @media (max-width: 768px) {
    .tabs {
      flex-wrap: nowrap;
      overflow-x: auto;
    }
    
    .button-group {
      flex-direction: column;
    }
    
    .button-group button {
      width: 100%;
    }
    
    .code-examples {
      grid-template-columns: 1fr;
    }
  }