/* SINGLE SHORTCODE */
.gpl-vu-frontend:not(.gpl-vu-bulk-row) { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.gpl-vu-frontend:not(.gpl-vu-bulk-row) .gpl-vu-label { margin: 0 5px 0 0; display: inline-block; font-weight: 600; }
.gpl-vu-frontend:not(.gpl-vu-bulk-row) .gpl-vu-input { width: 120px; display: inline-block; margin: 0; }
.gpl-vu-frontend:not(.gpl-vu-bulk-row) .gpl-vu-col-input, .gpl-vu-frontend:not(.gpl-vu-bulk-row) .gpl-vu-col-action { display: inline-block; width: auto; }

/* BULK CONTAINER */
.gpl-vu-bulk-app { width: 100%; max-width: 100%; margin: 0; background: #fff; border: 1px solid #ccd0d4; padding: 15px; border-radius: 4px; box-sizing: border-box; overflow-x: auto; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
body.gpl-vu-body-lock { overflow: hidden; }
.gpl-vu-bulk-app.fullscreen { position: fixed; top: 32px; left: 0; width: 100vw; height: calc(100vh - 32px); z-index: 99999; margin: 0; border-radius: 0; border: none; box-shadow: none; overflow-y: auto; overflow-x: auto; }

/* TOOLBAR */
.gpl-vu-toolbar { display: flex; justify-content: space-between; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #eee; flex-wrap: wrap; gap: 10px; }
.gpl-vu-search-wrap { display: flex; align-items: center; width: 40%; min-width: 250px; }
#gpl-vu-search { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; }
#gpl-vu-loader { margin-left: 10px; color: #666; font-style: italic; white-space: nowrap; }
.gpl-vu-actions { display: flex; align-items: center; }
.gpl-vu-actions button { margin-left: 10px; }

/* GRID */
.gpl-vu-header-row, .gpl-vu-bulk-row { display: grid; grid-template-columns: minmax(200px, var(--w-title)) var(--w-ver) var(--w-status); align-items: center; gap: 15px; min-width: 600px; }
.gpl-vu-header-row.with-url, .gpl-vu-bulk-row.with-url { grid-template-columns: minmax(200px, var(--w-title)) var(--w-ver) minmax(300px, var(--w-url)) var(--w-status); min-width: 900px; }
.gpl-vu-header-row.with-thumb:not(.with-url), .gpl-vu-bulk-row.with-thumb:not(.with-url) { grid-template-columns: var(--w-thumb) minmax(200px, var(--w-title)) var(--w-ver) var(--w-status); }
.gpl-vu-header-row.with-thumb.with-url, .gpl-vu-bulk-row.with-thumb.with-url { grid-template-columns: var(--w-thumb) minmax(200px, var(--w-title)) var(--w-ver) minmax(300px, var(--w-url)) var(--w-status); }
.gpl-vu-header-row { font-weight: 700; background: #f3f3f3; padding: 12px 15px; border-bottom: 1px solid #ccc; }
.gpl-vu-bulk-row { padding: 10px 15px; border-bottom: 1px solid #eee; background: #fff; }
.gpl-vu-bulk-row:nth-child(even) { background-color: #fcfcfc; }
.gpl-vu-bulk-row:hover { background-color: #f0f0f1; }

/* ELEMENTS */
.gpl-vu-th { position: relative; height: 100%; display: flex; align-items: center; overflow: hidden; }
.gpl-vu-resizer { position: absolute; right: -10px; top: 0; width: 20px; height: 100%; cursor: col-resize; user-select: none; z-index: 10; }
.gpl-vu-resizer::after { content: ''; position: absolute; left: 50%; top: 20%; bottom: 20%; width: 1px; background: #ccc; }
.gpl-vu-th:hover .gpl-vu-resizer::after { background: #2271b1; width: 2px; }
.gpl-vu-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; border: 1px solid #ddd; }
.gpl-vu-no-thumb { display: inline-block; width: 40px; height: 40px; background: #f0f0f1; border-radius: 4px; }

/* INPUTS & VALIDATION */
.gpl-vu-input { width: 100%; padding: 6px; border: 1px solid #ccc; border-radius: 3px; box-sizing: border-box; }
.gpl-vu-input.gpl-error { border-color: #f44336; background-color: #ffebee; } /* RED */
.gpl-vu-input.gpl-warning { border-color: #ff9800; background-color: #fff3e0; } /* ORANGE */

.gpl-vu-title-input { font-weight: 600; color: #2c3338; }
.gpl-vu-col-name { display: flex; align-items: center; overflow: hidden; }
.gpl-vu-col-name a { text-decoration: none; color: #2271b1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gpl-vu-col-name .gpl-id { display: block; font-size: 0.8em; color: #aaa; margin-left: 5px; }
.gpl-vu-col-action { text-align: right; }
.gpl-vu-save { padding: 5px 15px; font-size: 13px; cursor: pointer; }
.gpl-vu-bulk-row.dirty { background-color: #fff9c4 !important; }
.gpl-vu-bulk-row.saved { background-color: #e8f5e9 !important; }

/* PAGINATION */
.gpl-vu-pagination { margin-top: 20px; width: 100%; display: flex; justify-content: center; }
.gpl-vu-pagination ul { display: flex !important; flex-direction: row !important; justify-content: center; padding: 0; margin: 0; list-style: none !important; }
.gpl-vu-pagination li { display: block; margin: 0 3px; }
.gpl-vu-pagination .page-numbers { display: inline-block; padding: 6px 12px; border: 1px solid #ddd; background: #fff; border-radius: 3px; color: #2271b1; text-decoration: none; cursor: pointer; }
.gpl-vu-pagination .current { background: #2271b1; color: #fff; border-color: #2271b1; cursor: default; }

/* MODAL & TOAST */
.gpl-vu-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 100000; display: flex; align-items: center; justify-content: center; visibility: hidden; opacity: 0; transition: opacity 0.2s; }
.gpl-vu-modal-overlay.open { visibility: visible; opacity: 1; }
.gpl-vu-modal { background: #fff; width: 600px; max-width: 95%; border-radius: 6px; box-shadow: 0 10px 25px rgba(0,0,0,0.3); display: flex; flex-direction: column; max-height: 90vh; }
.gpl-vu-modal-header { padding: 15px 20px; background: #f3f3f3; border-bottom: 1px solid #ddd; font-weight: bold; font-size: 16px; }
.gpl-vu-change-list { flex: 1; overflow-y: auto; padding: 0; margin: 0; list-style: none; }
.gpl-vu-change-list li { padding: 12px 20px; border-bottom: 1px solid #eee; }
.gpl-vu-modal-footer { padding: 15px 20px; text-align: right; border-top: 1px solid #eee; background: #fff; border-radius: 0 0 6px 6px; }
.gpl-vu-modal-footer button { margin-left: 10px; }
.gpl-vu-val-new { color: #2271b1; font-weight: bold; }
.gpl-vu-change-item-title { font-weight: 600; font-size: 14px; color: #333; }
.gpl-vu-progress-wrap { height: 4px; background: #eee; width: 100%; display: none; }
.gpl-vu-progress-bar { height: 100%; background: #2271b1; width: 0%; transition: width 0.1s; }
#gpl-vu-toast { visibility: hidden; min-width: 200px; background: #333; color: #fff; text-align: center; border-radius: 4px; padding: 12px 20px; position: fixed; right: 30px; bottom: 30px; z-index: 99999; opacity: 0; transition: 0.3s; font-size: 14px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
#gpl-vu-toast.show { visibility: visible; opacity: 1; bottom: 50px; }
#gpl-vu-toast.success { background: #4CAF50; }
#gpl-vu-toast.error { background: #f44336; }
/* Add to existing CSS */
.gpl-val-old { color: #999; text-decoration: line-through; }
.gpl-val-new { color: #2271b1; font-weight: bold; }
.gpl-badge { background: #eee; padding: 2px 6px; border-radius: 3px; font-size: 11px; }