/* DVTV Data Filter - Style */
:root {
    --dvtv-df-primary: #0ea5e9;
    --dvtv-df-primary-dark: #0284c7;
    --dvtv-df-primary-light: #e0f2fe;
    --dvtv-df-secondary: #64748b;
    --dvtv-df-success: #10b981;
    --dvtv-df-warning: #f59e0b;
    --dvtv-df-danger: #ef4444;
    --dvtv-df-bg: #f8fafc;
    --dvtv-df-bg-card: #ffffff;
    --dvtv-df-text: #1e293b;
    --dvtv-df-text-muted: #64748b;
    --dvtv-df-border: #e2e8f0;
    --dvtv-df-radius: 8px;
    --dvtv-df-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --dvtv-df-transition: all 0.2s ease;
}

.dvtv-df-container { max-width: 1000px; margin: 0 auto; padding: 20px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.dvtv-df-header { margin-bottom: 25px; }
.dvtv-df-header h2 { font-size: 24px; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.dvtv-df-description { color: var(--dvtv-df-text-muted); margin: 0; }

/* カード */
.dvtv-df-card { background: var(--dvtv-df-bg-card); border-radius: var(--dvtv-df-radius); box-shadow: var(--dvtv-df-shadow); margin-bottom: 20px; overflow: hidden; }
.dvtv-df-card-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--dvtv-df-border); background: var(--dvtv-df-bg); }
.dvtv-df-card-header h3 { margin: 0; font-size: 16px; }
.dvtv-df-card-body { padding: 20px; }

/* フォーム */
.dvtv-df-form-group { margin-bottom: 15px; }
.dvtv-df-form-group label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 14px; }
.dvtv-df-input { width: 100%; padding: 10px 12px; border: 1px solid var(--dvtv-df-border); border-radius: var(--dvtv-df-radius); font-size: 14px; box-sizing: border-box; }
.dvtv-df-input:focus { outline: none; border-color: var(--dvtv-df-primary); box-shadow: 0 0 0 3px var(--dvtv-df-primary-light); }
.dvtv-df-help { font-size: 12px; color: var(--dvtv-df-text-muted); margin-top: 5px; }

/* ボタン */
.dvtv-df-btn { display: inline-flex; align-items: center; gap: 5px; padding: 8px 16px; border: none; border-radius: var(--dvtv-df-radius); font-size: 14px; cursor: pointer; transition: var(--dvtv-df-transition); }
.dvtv-df-btn-sm { padding: 5px 10px; font-size: 12px; }
.dvtv-df-btn-primary { background: var(--dvtv-df-primary); color: white; }
.dvtv-df-btn-primary:hover { background: var(--dvtv-df-primary-dark); }
.dvtv-df-btn-secondary { background: var(--dvtv-df-secondary); color: white; }
.dvtv-df-btn-danger { background: var(--dvtv-df-danger); color: white; }
.dvtv-df-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* チェックボックス */
.dvtv-df-checkbox-actions { display: flex; gap: 10px; margin-bottom: 10px; }
.dvtv-df-checkbox-list { max-height: 300px; overflow-y: auto; border: 1px solid var(--dvtv-df-border); border-radius: var(--dvtv-df-radius); padding: 8px; background: var(--dvtv-df-bg); }
.dvtv-df-checkbox-item { display: flex; align-items: center; padding: 6px 10px; margin-bottom: 2px; border-radius: var(--dvtv-df-radius); cursor: pointer; transition: var(--dvtv-df-transition); background: var(--dvtv-df-bg-card); border: 2px solid transparent; }
.dvtv-df-checkbox-item:hover { background: var(--dvtv-df-primary-light); }
.dvtv-df-checkbox-item.checked { background: var(--dvtv-df-primary-light); border-color: var(--dvtv-df-primary); }
.dvtv-df-checkbox-item input { display: none; }
.dvtv-df-checkbox-custom { width: 18px; height: 18px; min-width: 18px; border: 2px solid var(--dvtv-df-border); border-radius: 4px; margin-right: 10px; display: flex; align-items: center; justify-content: center; background: white; flex-shrink: 0; }
.dvtv-df-checkbox-item.checked .dvtv-df-checkbox-custom { background: var(--dvtv-df-primary); border-color: var(--dvtv-df-primary); }
.dvtv-df-checkbox-item.checked .dvtv-df-checkbox-custom::after { content: "✓"; color: white; font-size: 12px; font-weight: bold; }
.dvtv-df-checkbox-text { flex: 1; font-size: 13px; }

/* テーブル */
.dvtv-df-table { width: 100%; border-collapse: collapse; }
.dvtv-df-table th, .dvtv-df-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--dvtv-df-border); }
.dvtv-df-table th { background: var(--dvtv-df-bg); font-weight: 600; font-size: 13px; }
.dvtv-df-table td { font-size: 14px; }
.dvtv-df-table tr:hover { background: #dbeafe; }
.dvtv-df-table code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 13px; }

/* バッジ */
.dvtv-df-badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; background: #f1f5f9; color: var(--dvtv-df-secondary); }
.dvtv-df-badge-success { background: #d1fae5; color: #047857; }
.dvtv-df-badge-secondary { background: #f1f5f9; color: var(--dvtv-df-secondary); }

/* モーダル */
.dvtv-df-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 10000; align-items: center; justify-content: center; }
.dvtv-df-modal-open { display: flex; }
.dvtv-df-modal-content { background: white; border-radius: var(--dvtv-df-radius); max-width: 500px; width: 90%; max-height: 90vh; overflow-y: auto; }
.dvtv-df-modal-large { max-width: 900px; }
.dvtv-df-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--dvtv-df-border); }
.dvtv-df-modal-header h3 { margin: 0; font-size: 18px; }
.dvtv-df-modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--dvtv-df-text-muted); }
.dvtv-df-modal-body { padding: 20px; }
.dvtv-df-modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 15px 20px; border-top: 1px solid var(--dvtv-df-border); background: var(--dvtv-df-bg); }

/* 通知 */
.dvtv-df-notice { position: fixed; top: 20px; right: 20px; padding: 12px 20px; border-radius: var(--dvtv-df-radius); color: white; font-weight: 500; z-index: 10001; animation: dvtvDfSlideIn 0.3s ease; }
.dvtv-df-notice-success { background: var(--dvtv-df-success); }
.dvtv-df-notice-error { background: var(--dvtv-df-danger); }
.dvtv-df-notice-warning { background: var(--dvtv-df-warning); }
@keyframes dvtvDfSlideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* アラート */
.dvtv-df-alert { padding: 15px; border-radius: var(--dvtv-df-radius); margin-bottom: 15px; }
.dvtv-df-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

/* Empty */
.dvtv-df-empty { text-align: center; padding: 30px; color: var(--dvtv-df-text-muted); }
