/* ════════════════════════════════════════════════════════════════════
   canvas-ai.css
   Thêm vào wwwroot/css/ và import trong Canvas.razor:
   <link rel="stylesheet" href="css/canvas-ai.css" />
════════════════════════════════════════════════════════════════════ */

/* ── Generate Modal ─────────────────────────────────────────────── */

.gen-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.gen-modal {
    background: var(--bg-primary, #ffffff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.gen-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border, #e5e7eb);
}

.gen-modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #111827);
}

.gen-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-secondary, #6b7280);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.15s;
}
.gen-close-btn:hover { background: var(--bg-hover, #f3f4f6); }
.gen-close-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.gen-step { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 14px; }

.gen-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary, #6b7280);
    display: block;
    margin-bottom: 6px;
}

/* Quality bars */
.gen-quality-section { display: flex; flex-direction: column; gap: 6px; }
.gen-quality-header { display: flex; align-items: center; justify-content: space-between; }
.gen-quality-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
}
.gen-quality-badge.good { background: #dcfce7; color: #15803d; }
.gen-quality-badge.warn { background: #fef9c3; color: #854d0e; }

.gen-quality-bars { display: flex; flex-direction: column; gap: 6px; }
.gen-quality-bar-row {
    display: grid;
    grid-template-columns: 60px 1fr 80px;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary, #6b7280);
}
.gen-bar-track {
    height: 6px;
    background: var(--bg-secondary, #f3f4f6);
    border-radius: 999px;
    overflow: hidden;
}
.gen-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}
.gen-bar-fill.ok { background: #22c55e; }
.gen-bar-fill.low { background: #f59e0b; }
.gen-bar-value { font-size: 11px; text-align: right; }
.gen-quality-hint {
    font-size: 12px;
    color: #b45309;
    background: #fef9c3;
    padding: 6px 10px;
    border-radius: 6px;
}

/* Preview */
.gen-preview-section { display: flex; flex-direction: column; }
.gen-preview-img-wrap {
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
    max-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
}
.gen-preview-img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

/* Textarea */
.gen-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    font-size: 13px;
    resize: none;
    color: var(--text-primary, #111827);
    background: var(--bg-primary, #ffffff);
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.gen-textarea:focus { outline: none; border-color: #6366f1; }

/* Model cards */
.gen-model-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gen-model-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1.5px solid var(--border, #e5e7eb);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.gen-model-card:hover { border-color: #a5b4fc; background: #eef2ff; }
.gen-model-card.selected { border-color: #6366f1; background: #eef2ff; }

.gen-model-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gen-model-icon.openai { background: #000; color: #fff; }
.gen-model-icon.gemini { background: linear-gradient(135deg, #4285F4, #0F9D58); color: #fff; }

.gen-model-info { display: flex; flex-direction: column; gap: 2px; }
.gen-model-name { font-size: 13px; font-weight: 600; color: var(--text-primary, #111827); }
.gen-model-desc { font-size: 11px; color: var(--text-secondary, #6b7280); }

/* Action buttons */
.gen-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }

.gen-btn-cancel {
    padding: 8px 16px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 7px;
    background: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary, #6b7280);
    transition: background 0.15s;
}
.gen-btn-cancel:hover { background: var(--bg-hover, #f3f4f6); }

.gen-btn-generate {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s, opacity 0.15s;
}
.gen-btn-generate:hover:not(:disabled) { background: #4f46e5; }
.gen-btn-generate:disabled { opacity: 0.4; cursor: not-allowed; }

/* Loading step */
.gen-loading-step { align-items: center; text-align: center; padding: 32px 20px; }
.gen-spinner-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gen-spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--bg-secondary, #f3f4f6);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.gen-spinner.sm { width: 20px; height: 20px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.gen-loading-text { font-size: 14px; font-weight: 600; color: var(--text-primary, #111827); }
.gen-loading-sub { font-size: 12px; color: var(--text-secondary, #6b7280); }

.gen-preview-small {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}
.gen-preview-small img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border, #e5e7eb);
}
.gen-result-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 2px dashed #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
}

/* Result step */
.gen-result-step { gap: 14px; }
.gen-result-header { display: flex; align-items: center; }
.gen-result-success, .gen-result-error {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}
.gen-result-success { color: #15803d; }
.gen-result-error { color: #dc2626; }

.gen-compare {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.gen-compare-item { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gen-compare-label { font-size: 11px; font-weight: 600; color: var(--text-secondary, #6b7280); text-align: center; }
.gen-compare-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border, #e5e7eb);
    background: #f9fafb;
}
.gen-compare-arrow { align-self: center; flex-shrink: 0; }

.gen-result-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.gen-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #6366f1;
    color: #fff;
    text-decoration: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s;
}
.gen-btn-download:hover { background: #4f46e5; }
.gen-btn-download.sm { padding: 6px 12px; font-size: 12px; }

.gen-btn-regenerate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: none;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 7px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary, #111827);
    transition: background 0.15s;
}
.gen-btn-regenerate:hover { background: var(--bg-hover, #f3f4f6); }

.gen-btn-delete {
    padding: 6px 12px;
    background: none;
    border: 1px solid #fca5a5;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    color: #dc2626;
    transition: background 0.15s;
}
.gen-btn-delete:hover { background: #fee2e2; }

.gen-error-detail {
    font-size: 12px;
    color: #dc2626;
    background: #fee2e2;
    padding: 8px 12px;
    border-radius: 6px;
    word-break: break-all;
}

/* ── Gallery FAB & Popup ─────────────────────────────────────────── */

.gallery-fab-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 500;
}

.gallery-fab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    background: var(--bg-primary, #ffffff);
    border: 1.5px solid var(--border, #e5e7eb);
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #111827);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transition: box-shadow 0.15s, border-color 0.15s;
    position: relative;
}
.gallery-fab:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.18); border-color: #6366f1; }
.gallery-fab.has-new { border-color: #6366f1; background: #eef2ff; }
.gallery-fab-label { color: var(--text-primary, #111827); }
.gallery-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 10px;
    height: 10px;
    background: #6366f1;
    border-radius: 50%;
    border: 2px solid var(--bg-primary, #fff);
}

.gallery-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 600;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 80px 24px 24px;
}

.gallery-popup {
    background: var(--bg-primary, #ffffff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    width: 520px;
    max-width: 100%;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
}

.gallery-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border, #e5e7eb);
    flex-shrink: 0;
}
.gallery-popup-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #111827);
}
.gallery-count {
    font-size: 11px;
    background: var(--bg-secondary, #f3f4f6);
    color: var(--text-secondary, #6b7280);
    padding: 1px 7px;
    border-radius: 999px;
}
.gallery-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-secondary, #6b7280);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
.gallery-close-btn.sm { font-size: 16px; width: 22px; height: 22px; }
.gallery-close-btn:hover { background: var(--bg-hover, #f3f4f6); }

/* Cost bar (admin) */
.gallery-cost-bar {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border, #e5e7eb);
    flex-shrink: 0;
}
.gallery-cost-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    border-right: 1px solid var(--border, #e5e7eb);
}
.gallery-cost-item:last-child { border-right: none; }
.gallery-cost-label { font-size: 10px; color: var(--text-secondary, #6b7280); text-transform: uppercase; letter-spacing: 0.04em; }
.gallery-cost-value { font-size: 13px; font-weight: 700; color: #6366f1; margin-top: 1px; }

/* Filter bar */
.gallery-filter-bar {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border, #e5e7eb);
    flex-shrink: 0;
}
.gallery-search {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 6px;
    font-size: 12px;
    background: var(--bg-primary, #fff);
    color: var(--text-primary, #111827);
}
.gallery-search:focus { outline: none; border-color: #6366f1; }
.gallery-filter-select {
    padding: 6px 8px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 6px;
    font-size: 12px;
    background: var(--bg-primary, #fff);
    color: var(--text-primary, #111827);
    cursor: pointer;
}
.gallery-refresh-btn {
    padding: 6px 8px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 6px;
    background: none;
    cursor: pointer;
    color: var(--text-secondary, #6b7280);
    transition: background 0.15s;
}
.gallery-refresh-btn:hover { background: var(--bg-hover, #f3f4f6); }

/* Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
    overflow-y: auto;
    flex: 1;
    min-height: 180px;
}

.gallery-card {
    border: 1.5px solid var(--border, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.gallery-card:hover { border-color: #a5b4fc; box-shadow: 0 2px 8px rgba(99,102,241,0.15); }
.gallery-card.selected { border-color: #6366f1; box-shadow: 0 2px 12px rgba(99,102,241,0.25); }
.gallery-card.skeleton { background: var(--bg-secondary, #f3f4f6); min-height: 120px; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.5; } }

.gallery-card-status {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    z-index: 1;
}
.gallery-card-status.completed { background: #dcfce7; color: #15803d; }
.gallery-card-status.failed { background: #fee2e2; color: #dc2626; }
.gallery-card-status.processing { background: #e0e7ff; color: #3730a3; }
.gallery-card-status.pending { background: #fef9c3; color: #854d0e; }

.gallery-card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    background: #f9fafb;
}
.gallery-card-img.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary, #f3f4f6);
}

.gallery-card-info { padding: 6px 8px; }
.gallery-card-prompt {
    font-size: 11px;
    color: var(--text-primary, #111827);
    display: block;
    line-height: 1.3;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gallery-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.gallery-card-model {
    font-size: 10px;
    background: #e0e7ff;
    color: #3730a3;
    padding: 1px 5px;
    border-radius: 4px;
}
.gallery-card-date { font-size: 10px; color: var(--text-secondary, #6b7280); }
.gallery-card-admin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 3px;
}
.gallery-card-user { font-size: 10px; color: var(--text-secondary, #6b7280); }
.gallery-card-cost { font-size: 10px; font-weight: 600; color: #6366f1; }

/* Empty state */
.gallery-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 16px;
    color: var(--text-secondary, #6b7280);
    font-size: 13px;
    font-weight: 500;
}
.gallery-empty-sub { font-size: 11px; font-weight: 400; }

/* Detail panel */
.gallery-detail-panel {
    border-top: 1px solid var(--border, #e5e7eb);
    padding: 12px;
    flex-shrink: 0;
    max-height: 280px;
    overflow-y: auto;
}
.gallery-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary, #111827);
}
.gallery-detail-compare {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.gallery-detail-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.gallery-detail-col img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--border, #e5e7eb);
    background: #f9fafb;
}
.gallery-detail-meta { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; padding: 10px; }
.gallery-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding: 3px 0;
    border-bottom: 1px solid var(--border, #f3f4f6);
    gap: 8px;
}
.gallery-detail-row span:first-child { flex-shrink: 0; }
.gallery-detail-row span:last-child { text-align: right; word-break: break-all; }
.gallery-detail-row.highlight span:last-child { color: #6366f1; font-weight: 700; }
.gallery-detail-row.error span:last-child { color: #dc2626; }

.gallery-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }


/* Provider tabs */
.gen-provider-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    background: var(--bg-secondary, #f3f4f6);
    padding: 3px;
    border-radius: 8px;
}

.gen-provider-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary, #6b7280);
    background: transparent;
    transition: background 0.15s, color 0.15s;
}

    .gen-provider-tab.active {
        background: var(--bg-primary, #ffffff);
        color: var(--text-primary, #111827);
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

/* Model list rows */
.gen-model-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.gen-model-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1.5px solid var(--border, #e5e7eb);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    gap: 8px;
}

    .gen-model-row:hover {
        border-color: #a5b4fc;
        background: #f5f3ff;
    }

    .gen-model-row.selected {
        border-color: #6366f1;
        background: #eef2ff;
    }

.gen-model-row-left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.gen-model-radio {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border, #d1d5db);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s;
}

.gen-model-row.selected .gen-model-radio {
    border-color: #6366f1;
}

.gen-model-radio-dot {
    width: 8px;
    height: 8px;
    background: #6366f1;
    border-radius: 50%;
}

.gen-model-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.gen-model-name-row {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.gen-model-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #111827);
}

.gen-model-desc {
    font-size: 11px;
    color: var(--text-secondary, #6b7280);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gen-model-price {
    font-size: 11px;
    font-weight: 600;
    color: #6366f1;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Tags */
.gen-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

    .gen-tag.best {
        background: #fef3c7;
        color: #92400e;
    }

    .gen-tag.fast {
        background: #d1fae5;
        color: #065f46;
    }

    .gen-tag.legacy {
        background: #f3f4f6;
        color: #6b7280;
    }

/* Quality picker */
.gen-quality-picker {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    background: var(--bg-secondary, #f9fafb);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    margin-bottom: 2px;
}

.gen-sublabel {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary, #6b7280);
}

.gen-quality-options {
    display: flex;
    gap: 6px;
}

.gen-quality-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 7px 6px;
    border: 1.5px solid var(--border, #e5e7eb);
    border-radius: 7px;
    cursor: pointer;
    background: var(--bg-primary, #fff);
    transition: border-color 0.15s, background 0.15s;
}

    .gen-quality-option:hover {
        border-color: #a5b4fc;
        background: #f5f3ff;
    }

    .gen-quality-option.selected {
        border-color: #6366f1;
        background: #eef2ff;
    }

.gen-quality-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary, #111827);
}

.gen-quality-price {
    font-size: 10px;
    color: #6366f1;
    font-weight: 600;
}

/* Cost hint */
.gen-cost-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-secondary, #6b7280);
    background: var(--bg-secondary, #f9fafb);
    padding: 7px 10px;
    border-radius: 6px;
    border: 1px solid var(--border, #e5e7eb);
}

    .gen-cost-hint strong {
        color: #6366f1;
    }

    .gen-cost-hint.success {
        background: #f0fdf4;
        border-color: #bbf7d0;
        color: #15803d;
    }

        .gen-cost-hint.success strong {
            color: #15803d;
        }

/*CSS cho mock badge*/
.gen-mock-badge {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 12px;
    background: #fef9c3;
    border: 1.5px solid #fde047;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #713f12;
}

.gen-mock-hint {
    font-size: 11px;
    color: #92400e;
    font-weight: 400;
}

    .gen-mock-hint code {
        background: #fef08a;
        padding: 1px 4px;
        border-radius: 3px;
        font-family: monospace;
        font-size: 10px;
    }

.gallery-card-model.mock {
    background: #fef9c3;
    color: #713f12;
}

.canvas-workspace.drag-over {
    outline: 3px dashed #6366f1;
    outline-offset: -3px;
    background: rgba(99, 102, 241, 0.04);
}

    .canvas-workspace.drag-over::after {
        content: '📋 Drop image here';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(99, 102, 241, 0.9);
        color: white;
        padding: 12px 24px;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 600;
        pointer-events: none;
        z-index: 100;
        white-space: nowrap;
    }
