/**
 * ============================================================
 * DESIGN TAB CONTROLS (디자인 탭 컨트롤)
 * ============================================================
 *
 * 역할: 디자인 탭의 스타일 커스터마이징 컨트롤
 *
 * 포함:
 * - 버튼블럭 배경색 피커 (.button-color-picker)
 * - 색상 프리셋 (.color-preset-item)
 * - 커스텀 컬러 피커 (.color-custom)
 * - 버튼블럭 모양 선택 (.button-shape-picker)
 * - 적용 모드 라디오 버튼 (.apply-mode-simple)
 * - 모바일 반응형 (@media)
 *
 * 출처:
 * - dashboard-main.css (Lines 2548-2745, 198 lines)
 *
 * 의존성:
 * - 없음 (완전 독립적)
 *
 * 추출 날짜: 2025-11-05
 * 추출자: Claude Code (css-separation-policy.md 준수)
 * ============================================================
 */

/* ========== 새로운 디자인 탭 스타일 ========== */

/* 버튼블럭 배경색 피커 */
.button-color-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.color-preset-item {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-preset-item .color-preview {
    width: 100%;
    height: 60px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.15); /* 🔥 흰색/연한 색 테두리 보임 */
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-preset-item:hover .color-preview {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.color-preset-item.selected .color-preview {
    border-color: #667eea;
    box-shadow: 0 0 0 1px #667eea;
}

/* 커스텀 컬러피커 */
.color-preset-item.color-custom input[type="color"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* 버튼블럭 모양 */
.button-shape-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.shape-option {
    cursor: pointer;
    transition: all 0.2s ease;
}

/* 🔥 아티팩트 추가 CSS */
.color-picker-btn {
    position: relative;
}

.color-picker-btn input[type="color"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.palette-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
            #ff6b6b 0%,
            #f59e0b 20%,
            #10b981 40%,
            #06b6d4 60%,
            #3b82f6 80%,
            #8b5cf6 100%) !important;
    position: relative;
}

.palette-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    opacity: 0.3;
}

.apply-mode-simple {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    padding: 8px 0;
}

.mode-radio-simple {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.mode-radio-simple input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.mode-radio-simple span {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

.mode-radio-simple input[type="radio"]:checked+span {
    color: #1a1a1a;
    font-weight: 600;
}

.shape-box {
    width: 100%;
    height: 50px;
    background: #e5e5e7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shape-box span {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

.shape-option.selected .shape-box span {
    color: #1a1a1a;
    font-weight: 600;
}

/* 안내 텍스트 */
.hint-text {
    display: block;
    margin-top: 8px;
    color: #6c757d;
    font-size: 13px;
    line-height: 1.5;
}

/* 모바일 최적화 */
@media (max-width: 600px) {
    .button-color-picker {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .color-preset-item .color-preview {
        height: 50px;
    }

    .apply-mode-group {
        grid-template-columns: 1fr;
    }

    /* 🔥 버튼 모양 한 줄로 최적화 */
    .button-shape-picker {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .shape-option {
        padding: 8px;
    }

    .shape-box {
        height: 40px;
    }

    .shape-box span {
        font-size: 11px;
    }
}
