/* 색상 변환기 스타일 - mockup-generator 디자인 언어 차용 (violet/pink 테마) */
.color-tool {
    --tool-primary: #7c3aed;
    --tool-bg: #f5f3ff;
    --tool-gradient: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
}

/* 히어로 */
.color-hero {
    background: var(--tool-gradient);
    border-radius: 16px;
    padding: 36px 32px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
}
.color-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}
.color-hero::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -60px;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}
.color-hero h1 {
    font-size: 28px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    margin: 10px 0 6px;
}
.color-hero p {
    opacity: 0.85;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

/* 에디터 카드 */
.editor-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    overflow: hidden;
}
.editor-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f5;
}
.editor-title {
    font-weight: 700;
    font-size: 14px;
    color: #343a40;
}
.editor-title i {
    color: var(--tool-primary);
}
.size-badge {
    font-size: 12px;
    font-weight: 600;
    color: #868e96;
    background: #f1f3f5;
    padding: 3px 10px;
    border-radius: 20px;
}
.editor-body {
    padding: 18px;
}

/* 버튼 */
.btn-action {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 9px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.btn-action:hover {
    border-color: var(--tool-primary);
    color: var(--tool-primary);
    background: var(--tool-bg);
}
.btn-action-primary {
    background: var(--tool-gradient);
    border: none;
    color: #fff;
}
.btn-action-primary:hover {
    background: var(--tool-gradient);
    border: none;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.3);
}

/* 색상 미리보기 (기능 보존: 사이즈/전환) */
.color-preview {
    width: 100%;
    max-width: 480px;
    height: 180px;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
    transition: background-color 0.15s ease;
}

/* 입력 필드 (기능 보존: number 스피너/포커스/그룹 텍스트) */
.color-converter-tool input[type="number"]::-webkit-inner-spin-button,
.color-converter-tool input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}
.color-converter-tool input[type="number"] {
    -moz-appearance: textfield;
}
.color-converter-tool .form-control:focus,
.color-converter-tool .form-select:focus {
    box-shadow: none;
    border-color: var(--tool-primary);
}
.color-converter-tool .input-group-text {
    font-weight: 600;
    min-width: 32px;
    justify-content: center;
}

/* CSS 코드 블록 (기능 보존: catppuccin 다크 테마, JS innerHTML 색상과 정합) */
.css-code-block {
    background-color: #1e1e2e;
    color: #cdd6f4;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}

/* 팔레트 스와치 (기능 보존: JS가 생성하는 .color-swatch 레이아웃/외곽선) */
.color-converter-tool .color-swatch {
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
}

/* 서포트 카드 */
.support-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    overflow: hidden;
}
.support-card .card-hd {
    padding: 14px 18px;
    font-weight: 700;
    font-size: 15px;
    border-bottom: 1px solid #f1f3f5;
}
.support-card .card-bd {
    padding: 18px;
}
.support-subtitle {
    font-size: 15px;
    font-weight: 700;
    color: #343a40;
    margin: 18px 0 10px;
}

/* 아코디언 */
.color-converter-tool .accordion-button:not(.collapsed) {
    background-color: var(--tool-bg);
    color: var(--tool-primary);
    box-shadow: none;
}
.color-converter-tool .accordion-button:focus {
    box-shadow: none;
}

/* 반응형 */
@media (max-width: 768px) {
    .color-hero { padding: 28px 20px; border-radius: 12px; }
    .color-hero h1 { font-size: 22px; }
    .color-preview { height: 140px; }
}
