/**
 * DVTV フォームプロセッサー フロントエンドCSS
 */

.dvtv-fp-form-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.dvtv-fp-form-wrap h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    color: #0073aa;
}

/* OCRセクション */
.dvtv-fp-ocr-section {
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.dvtv-fp-ocr-section h4 {
    margin-top: 0;
    color: #0066cc;
}

.dvtv-fp-ocr-section input[type="file"] {
    margin-right: 10px;
}

#dvtv-fp-ocr-status {
    margin-top: 15px;
}

/* フォーム */
.dvtv-fp-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.dvtv-fp-field {
    margin-bottom: 20px;
}

.dvtv-fp-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.dvtv-fp-field .required {
    color: #d63638;
}

.dvtv-fp-field input[type="text"],
.dvtv-fp-field input[type="number"],
.dvtv-fp-field input[type="date"],
.dvtv-fp-field select,
.dvtv-fp-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.dvtv-fp-field input:focus,
.dvtv-fp-field select:focus,
.dvtv-fp-field textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* OCRで入力されたフィールド */
.dvtv-fp-ocr-filled {
    background-color: #fffde7 !important;
    border-color: #ffc107 !important;
}

/* 2カラム */
.dvtv-fp-row {
    display: flex;
    gap: 20px;
}

.dvtv-fp-row .dvtv-fp-field {
    flex: 1;
}

/* アクションボタン */
.dvtv-fp-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.dvtv-fp-actions .button {
    padding: 10px 30px;
    font-size: 14px;
}

/* 重複チェック結果 */
.dvtv-fp-duplicate-result {
    margin-top: 20px;
}

.dvtv-fp-duplicate-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    color: #856404;
}

.dvtv-fp-duplicate-warning strong {
    font-size: 16px;
}

.dvtv-fp-duplicate-warning ul {
    margin: 10px 0;
    padding-left: 20px;
}

.dvtv-fp-duplicate-warning li {
    margin-bottom: 8px;
}

.dvtv-fp-duplicate-warning a {
    color: #0066cc;
}

.dvtv-fp-duplicate-ok {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px;
    color: #155724;
}

/* メッセージ */
.dvtv-fp-message {
    margin-top: 20px;
}

.dvtv-fp-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px;
    color: #155724;
}

.dvtv-fp-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px;
    color: #721c24;
}

/* レスポンシブ */
@media (max-width: 600px) {
    .dvtv-fp-row {
        flex-direction: column;
        gap: 0;
    }
    
    .dvtv-fp-actions {
        flex-direction: column;
    }
    
    .dvtv-fp-actions .button {
        width: 100%;
    }
}
