/* public/css/magicremover.css */

.remover-app {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.editor-side {
    flex: 1;
    min-width: 320px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.preview-side {
    flex: 1.5;
    min-width: 340px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.section-label {
    font-size: 1rem;
    color: #2a5298;
    border-left: 4px solid #2a5298;
    padding-left: 10px;
    margin-bottom: 15px;
}

.section-label-gap {
    margin-top: 25px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #444;
    font-size: 0.95rem;
}

.form-group input[type="file"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    box-sizing: border-box;
}

.form-group input[type="range"] {
    width: 100%;
    cursor: pointer;
}

.form-hint {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 4px;
}

.color-picker-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 8px 12px;
    border-radius: 6px;
}

.color-box {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid #94a3b8;
    background-color: #ffffff;
    flex-shrink: 0;
}

#spoit-color-text {
    font-family: monospace;
    font-size: 0.9rem;
    color: #334155;
    flex: 1;
}

.btn-sub {
    padding: 6px 12px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #334155;
    cursor: pointer;
    white-space: nowrap;
}
.btn-sub:hover {
    background: #e2e8f0;
}

.btn-primary-action {
    width: 100%;
    background-color: #2a5298;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(42,82,152,0.3);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary-action:hover {
    background-color: #1e3c72;
}

/* プレビューカード */
.remover-preview-card {
    background: #fff;
    width: 100%;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview-title {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: bold;
}

.canvas-container {
    width: 100%;
    max-height: 450px;
    overflow: auto;
    /* 透過が確認しやすい市松模様背景 */
    background-image: linear-gradient(45deg, #e2e8f0 25%, transparent 25%), 
                      linear-gradient(-45deg, #e2e8f0 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, #e2e8f0 75%), 
                      linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    margin-bottom: 20px;
}

#image-canvas {
    max-width: 100%;
    height: auto;
    cursor: crosshair;
}

.btn-download {
    width: 100%;
    background-color: #0284c7;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(2,132,199,0.3);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-download:hover {
    background-color: #0369a1;
}
.btn-download:disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 768px) {
    .remover-app {
        gap: 20px;
    }
    .editor-side, .preview-side {
        flex: 1 1 100%;
        min-width: 0;
    }
}