/* CSS Additions for Forms */

.flex-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.flex-label label {
    margin-bottom: 0;
}

.sub-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.image-upload-box {
    aspect-ratio: 1;
    border: 2px dashed #ccc;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    overflow: hidden;
}

.image-upload-box input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.image-upload-box .placeholder {
    font-size: 24px;
    color: #999;
}

.preview-thumb {
    width: 100%;
    height: 100%;
    position: relative;
}

.preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sns-item {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.sns-row {
    display: flex;
    gap: 8px;
}

.sns-row select {
    flex: 1;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-icon {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
}

.btn-icon:hover {
    color: #d32f2f;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

.toggle-check {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

/* Cute Slider */
.cute-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 8px;
    border-radius: 4px;
    background: #eee;
    outline: none;
    transition: background 0.2s;
}

.cute-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.cute-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.cute-slider:active::-webkit-slider-thumb {
    transform: scale(0.95);
}

/* Position Control Grid */
.pos-control {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pos-label {
    font-size: 12px;
    font-weight: bold;
    color: #666;
}

.pos-grid {
    display: grid;
    grid-template-columns: repeat(3, 30px);
    grid-template-rows: repeat(3, 30px);
    gap: 2px;
}

.pos-btn {
    width: 100%;
    height: 100%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #999;
}

.pos-btn:hover {
    background: #f0f0f0;
}

.pos-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}