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

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

/* カード */
.dvtv-uac-card { background: var(--dvtv-bg-card); border-radius: var(--dvtv-radius); box-shadow: var(--dvtv-shadow); margin-bottom: 20px; overflow: hidden; }
.dvtv-uac-card-header { padding: 15px 20px; border-bottom: 1px solid var(--dvtv-border); background: var(--dvtv-bg); }
.dvtv-uac-card-header h3 { margin: 0; font-size: 16px; }
.dvtv-uac-card-body { padding: 20px; }

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

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

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

/* テーブル */
.dvtv-uac-table { width: 100%; border-collapse: collapse; }
.dvtv-uac-table th, .dvtv-uac-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--dvtv-border); }
.dvtv-uac-table th { background: var(--dvtv-bg); font-weight: 600; font-size: 13px; }
.dvtv-uac-table td { font-size: 14px; }

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

/* モーダル */
.dvtv-uac-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-uac-modal-open { display: flex; }
.dvtv-uac-modal-content { background: white; border-radius: var(--dvtv-radius); max-width: 600px; width: 90%; max-height: 90vh; overflow-y: auto; }
.dvtv-uac-modal-large { max-width: 800px; }
.dvtv-uac-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--dvtv-border); }
.dvtv-uac-modal-header h3 { margin: 0; font-size: 18px; }
.dvtv-uac-modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--dvtv-text-muted); }
.dvtv-uac-modal-body { padding: 20px; }
.dvtv-uac-modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 15px 20px; border-top: 1px solid var(--dvtv-border); background: var(--dvtv-bg); }

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

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