/* ── LLM Providers page ─────────────────────────────────────────────────────── */ .pv-page { display: flex; flex-direction: column; height: 100%; width: 100%; max-width: 100%; } .pv-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; min-height: 54px; border-bottom: 1px solid var(--bs-border-color); background: var(--bs-tertiary-bg); flex-shrink: 0; gap: 12px; } .pv-title { margin: 0; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; } .pv-header-right { display: flex; align-items: center; gap: 10px; } .pv-header-count { font-size: 0.76rem; font-weight: 500; color: var(--bs-secondary-color); } /* ── Card list ── */ .pv-card-list { padding: 16px 20px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 10px; } /* ── Single card ── */ .pv-card { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; transition: border-color 0.15s, box-shadow 0.15s; } .pv-card:hover { border-color: color-mix(in srgb, var(--pv-color, #0d6efd) 50%, var(--bs-border-color)); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06); } /* ── Row 1: icon + name + badge + count + actions ── */ .pv-card-row1 { display: flex; align-items: center; gap: 10px; } .pv-card-icon { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; } .pv-card-name { font-weight: 600; font-size: 0.9rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pv-card-type-badge { font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.2em 0.6em; border-radius: 4px; flex-shrink: 0; white-space: nowrap; color: var(--pv-color, #0d6efd); background: color-mix(in srgb, var(--pv-color, #0d6efd) 12%, transparent); } .pv-card-count { font-size: 0.74rem; font-weight: 500; color: var(--bs-secondary-color); flex-shrink: 0; white-space: nowrap; display: flex; align-items: center; gap: 3px; } .pv-card-actions { display: flex; gap: 2px; flex-shrink: 0; margin-left: auto; } .pv-btn-icon { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: none; background: transparent; color: var(--bs-secondary-color, #9ca3af); border-radius: 6px; cursor: pointer; font-size: 0.85rem; transition: all 0.1s; } .pv-btn-icon:hover { background: var(--bs-tertiary-bg, #f0f2f5); color: var(--bs-body-color, #374151); } .pv-btn-edit:hover { color: var(--bs-primary, #0d6efd); background: var(--bs-primary-bg-subtle, #eef2ff); } .pv-btn-delete:hover { color: var(--bs-danger, #dc3545); background: var(--bs-danger-bg-subtle, #fef0f0); } /* ── Row 2: description ── */ .pv-card-row2 { padding-left: 44px; } .pv-card-desc { font-size: 0.82rem; color: var(--bs-secondary-color); line-height: 1.4; } /* ── Row 3: tags (API key, base URL, date) ── */ .pv-card-row3 { display: flex; align-items: center; gap: 8px; padding-left: 44px; flex-wrap: wrap; } .pv-card-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.74rem; font-weight: 500; padding: 0.2em 0.6em; border-radius: 5px; white-space: nowrap; } .pv-card-tag i { font-size: 0.7rem; } .pv-tag-ok { background: color-mix(in srgb, var(--bs-success, #22c55e) 12%, transparent); color: var(--bs-success, #16a34a); } .pv-tag-missing { background: color-mix(in srgb, var(--bs-warning, #eab308) 12%, transparent); color: var(--bs-warning, #ca8a04); } .pv-tag-url { background: var(--bs-tertiary-bg, #f0f2f5); color: var(--bs-secondary-color, #6b7280); max-width: 260px; overflow: hidden; } .pv-card-url-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pv-tag-date { background: var(--bs-tertiary-bg, #f0f2f5); color: var(--bs-secondary-color, #6b7280); } /* ── Empty state ── */ .pv-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 20px; color: var(--bs-secondary-color, #9ca3af); gap: 8px; flex: 1; } .pv-empty i { font-size: 2rem; opacity: 0.4; } .pv-empty p { margin: 0; font-size: 0.9rem; } /* ── Modal ── */ .pv-modal { width: 100%; max-width: 480px; max-height: calc(100vh - 100px); overflow-y: auto; padding: 1.5rem; } .pv-modal-header { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1rem; margin-bottom: 1.25rem; } .pv-modal-close { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: none; background: transparent; color: var(--bs-secondary-color); border-radius: 6px; margin-left: auto; cursor: pointer; font-size: 1.1rem; } .pv-modal-close:hover { background: var(--bs-tertiary-bg); color: var(--bs-body-color); } .pv-modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 0.5rem; border-top: 1px solid var(--bs-border-color); } /* ── Mobile ── */ @media (max-width: 600px) { .pv-header { padding: 10px 14px; min-height: 50px; } .pv-card-list { padding: 10px 12px; gap: 8px; } .pv-card { padding: 12px; gap: 6px; } .pv-card-row1 { gap: 7px; } .pv-card-icon { width: 30px; height: 30px; font-size: 0.9rem; } .pv-card-actions { gap: 0; } .pv-btn-icon { width: 28px; height: 28px; font-size: 0.8rem; } .pv-card-row2 { padding-left: 37px; } .pv-card-row3 { padding-left: 37px; gap: 6px; } .pv-card-tag { font-size: 0.7rem; } .pv-tag-url { max-width: 180px; } }