.vpajek-root { border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; background: #fff; }
.vpajek-label { display: block; font-size: 13px; color: #374151; margin-bottom: 6px; }
.vpajek-file-row { display: flex; gap: 8px; align-items: center; }
.vpajek-file-status { font-size: 12px; color: #4b5563; }
.vpajek-textarea { width: 100%; min-height: 160px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 12px; padding: 8px; border: 1px solid #e5e7eb; border-radius: 8px; }
.vpajek-options { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 10px 0; flex-wrap: wrap; }
.vpajek-option { display: flex; gap: 10px; align-items: center; }
.vpajek-checkbox { font-size: 13px; color: #111827; display:flex; gap:8px; align-items:center; }
.vpajek-input-search, .vpajek-input-ego, .vpajek-input-basesize { padding: 6px 8px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; }
.vpajek-select { padding: 6px 8px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; }
.vpajek-btn { padding: 8px 12px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; font-size: 13px; }
.vpajek-btn-primary { background: #2563eb; color: white; }
.vpajek-btn-primary:hover { background: #1d4ed8; }
.vpajek-btn-secondary { background: #f3f4f6; color: #111827; border-color: #e5e7eb; }
.vpajek-btn-secondary:hover { background: #e5e7eb; }
.vpajek-canvas { width: 100%; height: 100%; position: relative; border: 1px dashed #e5e7eb; border-radius: 8px; overflow: hidden; }
.vpajek-legend, .vpajek-tip { margin-top: 8px; color: #6b7280; }
.vpajek-custom-panel { margin: 10px 0; padding: 10px; border: 1px solid #e5e7eb; border-radius: 8px; background: #f9fafb; }
.vpajek-row { display: flex; flex-wrap: wrap; gap: 12px; }
.vpajek-col { display: flex; flex-direction: column; gap: 6px; }
/* Tooltip custom (texto com quebras de linha reais) */
.vpajek-tooltip { position: absolute; pointer-events: none; background: rgba(17,24,39,0.95); color: #fff; padding: 8px 10px; border-radius: 8px; font-size: 12px; line-height: 1.35; max-width: 320px; white-space: pre-line; box-shadow: 0 6px 24px rgba(0,0,0,.18); z-index: 20; }
.vpajek-tooltip[hidden] { display: none !important; }
/* Loading overlay */
.vpajek-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.85)); z-index: 15; }
.vpajek-loading[hidden] { display: none !important; }
.vpajek-spinner { width: 28px; height: 28px; border: 3px solid #c7d2fe; border-top-color: #2563eb; border-radius: 50%; animation: vpajek-spin 1s linear infinite; }
@keyframes vpajek-spin { to { transform: rotate(360deg); } }
.vpajek-loading-text { font-size: 13px; color: #1f2937; }
.vpajek-progressbar { width: 60%; max-width: 420px; height: 6px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.vpajek-progressbar-fill { height: 100%; background: #2563eb; width: 0%; transition: width .2s ease; }
/* Color legend */
.vpajek-color-legend { margin-top: 8px; padding: 8px; border: 1px solid #e5e7eb; background: #fbfbfb; border-radius: 8px; color:#374151; }
.vpajek-legend-title { font-weight: 600; margin-bottom: 6px; }
.vpajek-legend-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px 12px; }
.vpajek-legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.vpajek-swatch { width: 14px; height: 14px; border-radius: 3px; border: 1px solid #e5e7eb; }
.vpajek-gradient-wrap { flex: 1; height: 12px; border-radius: 999px; border: 1px solid #e5e7eb; overflow: hidden; }
.vpajek-gradient { width: 100%; height: 100%; }