/* ================================================================================
   STYLESHEET: forms.css
   CREATED:    2026-03-15
   MODIFIED:   2026-03-15
   PURPOSE:    Add Object page and Edit page form styles
   ================================================================================ */

/* ========== 2026-03-14 - THREE-TIER RESPONSIVE LAYOUT ========== */

/* 2026-03-14 - Three-tier detail responsive layout removed (desktop-only, wide layout only) */
/* ========== 2026-03-04 ADD OBJECT PAGE ========== */
#page-add {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-color, #fafafa);
}
/* 2026-03-07 - Matched to detail-backbar glass style */
/* 2026-03-10 - Topbar matches app standard (var(--app-padding), 44px buttons) */
.add-topbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 72px;
    padding: 14px var(--app-padding);
    background: rgba(250, 250, 252, 0.75);
    backdrop-filter: blur(40px) saturate(1.8);
    -webkit-backdrop-filter: blur(40px) saturate(1.8);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: visible;
}
.add-topbar-title {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
}
.add-btn-cancel,
.add-btn-save {
    min-height: 44px;
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.add-btn-cancel {
    background: #e8e8e8;
    color: #555;
}
.add-btn-save {
    background: #2563eb;
    color: #fff;
}
.add-btn-save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.add-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    width: 100%;
    box-sizing: border-box;
}
/* 2026-03-11 - Horizontal labels: label left, field right */
.add-form-group {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 0 10px;
    align-items: start;
    margin-bottom: 16px;
}
.add-form-group > label {
    grid-column: 1;
    grid-row: 1;
    padding-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}
.add-form-group > *:not(label) {
    grid-column: 2;
}
.add-form-group input,
.add-form-group select,
.add-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: #333;
    box-sizing: border-box;
}
.add-form-group textarea {
    min-height: 80px;
    resize: vertical;
}
.add-form-group input:focus,
.add-form-group select:focus,
.add-form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
/* Image upload area */
.image-upload-area {
    border: 2px dashed #c0c0c0;
    border-radius: 12px;
    padding: 32px 16px;
    text-align: center;
    cursor: pointer;
    background: #f8f9fa;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 16px;
}
.image-upload-area:hover,
.image-upload-area.drag-over {
    border-color: #2563eb;
    background: #eef4ff;
}
.image-upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    color: #999;
}
.image-upload-text {
    font-size: 15px;
    color: #666;
}
.image-upload-hint {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}
/* Image preview grid */
.image-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.image-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
}
.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    padding: 0;
}
/* 2026-03-05 - Add button removed from gallery (moved to dedicated New Object page) */
/* Save progress overlay */
.add-saving-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.add-saving-overlay .spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e0e0e0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.add-saving-text {
    margin-top: 12px;
    font-size: 14px;
    color: #555;
}

/* ========== 2026-03-04 EDIT PAGE ========== */
#page-edit {
    z-index: 5;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: var(--bg-color, #fafafa);
}
/* 2026-03-04 - Stretch edit form so Description fills remaining space */
#editForm {
    display: flex;
    flex-direction: column;
    flex: 1;
}
#editForm .edit-description-group {
    flex: 1;
}
#editForm .edit-description-group textarea {
    min-height: 80px;
}
/* 2026-03-07 - Description popup editor (edit page) */
.edit-desc-preview {
    flex: 1;
    min-height: 60px;
    max-height: 120px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: var(--font-family);
    color: var(--text-primary);
    background: #fff;       /* 2026-03-16 - match other edit field backgrounds */
    border: 1px solid #ccc; /* 2026-03-16 - match other edit field borders */
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    white-space: pre-wrap;
    line-height: 1.5;
}
.edit-desc-preview:empty::before {
    content: 'Tap to add description...';
    color: #bbb;
}
.edit-desc-preview:hover {
    border-color: #ccc;
    background: #f4f4f4;
}
.desc-editor-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 500;
    background: rgba(0, 0, 0, 0.18);
}
.desc-editor-overlay.visible {
    display: block;
}
.desc-editor {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 500px;
    min-width: 320px;
    min-height: 240px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    background: #ffffff;
    border-radius: 18px;
    padding: 0 4px 16px 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    resize: both;
}
.desc-editor-dragbar {
    flex-shrink: 0;
    height: 28px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}
.desc-editor-dragbar:active { cursor: grabbing; }
.desc-editor-dragbar::after {
    content: '';
    width: 36px; height: 4px;
    background: #d8d8d8;
    border-radius: 2px;
}
.desc-editor-textarea {
    flex: 1;
    min-height: 0;
    width: 100%;
    padding: 14px 20px 14px 16px;
    font-size: 14px;
    font-family: var(--font-family);
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-bottom: 1px solid #e8e8e8;
    border-radius: 0;
    outline: none;
    resize: none;
    overflow-y: auto;
    line-height: 1.6;
    box-sizing: border-box;
}
.desc-editor-textarea::placeholder { color: #bbb; }
.desc-editor-textarea::-webkit-scrollbar { width: 5px; }
.desc-editor-textarea::-webkit-scrollbar-track {
    background: transparent;
    margin-top: 14px; margin-bottom: 4px;
}
.desc-editor-textarea::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 3px;
}
.desc-editor-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 20px 0 16px;
    gap: 16px;
}
.desc-editor-btn {
    padding: 6px 4px;
    font-size: 14px;
    font-weight: 400;
    font-family: var(--font-family);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: opacity 0.15s ease;
}
.desc-editor-btn:hover { opacity: 0.7; }
.desc-editor-btn.cancel { color: #ccc; }
.desc-editor-btn.cancel:hover { color: #888; }
.desc-editor-btn.done {
    color: var(--accent-color);
    font-weight: 600;
}
/* 2026-03-04 - Edit page image list with drag-to-reorder */
.edit-images-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.edit-image-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    background: #f9f9f9;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: grab;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.edit-image-item:active {
    cursor: grabbing;
}
.edit-image-item.dragging {
    opacity: 0.3;
}
.edit-image-item.drag-over {
    border-top-color: var(--accent-color, #2563eb);
}
.edit-image-item .drag-handle {
    color: #bbb;
    font-size: 16px;
    flex-shrink: 0;
    user-select: none;
}
.edit-image-item img {
    height: 80px;
    width: auto;
    border-radius: 4px;
    pointer-events: none;
}
.edit-image-delete {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    color: #ccc;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.edit-image-delete:hover {
    color: #e53e3e;
    background: rgba(229, 62, 62, 0.08);
}
.edit-image-item .edit-img-caption {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    color: #555;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 4px 6px;
    font-family: inherit;
    outline: none;
}
.edit-image-item .edit-img-caption:focus {
    border-color: #2563eb;
}
.edit-image-item .edit-img-caption::placeholder {
    color: #bbb;
    font-style: italic;
}
/* 2026-03-16 - Editable caption input below preview image */
.edit-viewer-caption {
    width: 100%;
    max-width: 400px;
    text-align: center;
    font-size: 12px;
    color: #555;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 4px 8px;
    margin-top: 6px;
    font-family: inherit;
    outline: none;
    background: transparent;
}
.edit-viewer-caption:hover {
    border-color: #e0e0e0;
}
.edit-viewer-caption:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.edit-viewer-caption::placeholder {
    color: #bbb;
    font-style: italic;
}
/* 2026-03-10 - Edit page image upload area */
.edit-image-upload {
    margin-top: 12px;
}
.edit-image-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    color: #999;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.edit-image-dropzone:hover {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.03);
    color: #666;
}
.edit-image-dropzone.drag-over {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.06);
}
.edit-image-dropzone span:first-of-type {
    font-size: 14px;
    font-weight: 500;
}
.edit-image-dropzone-hint {
    font-size: 12px;
    color: #bbb;
}
.edit-image-progress-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}
.edit-image-progress-fill {
    height: 100%;
    background: #2563eb;
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s;
}
.edit-image-progress-text {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    display: block;
}
/* 2026-03-04 - Edit page tab bar (mirrors detail page tab style) */
/* 2026-03-10 - Edit tab buttons enlarged to 44px Apple HIG minimum */
.edit-tab-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0 14px;
}
.edit-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #b0b0b0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.edit-tab-btn:hover {
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.04);
}
.edit-tab-btn.active {
    background: rgba(0, 0, 0, 0.05);
    color: var(--accent-color);
}
.edit-tab-btn svg {
    width: 19px;
    height: 19px;
}
.edit-tab-panel {
    display: none;
}
.edit-tab-panel.active {
    display: block;
}
/* 2026-03-12 - Two-pane Images tab layout */
#editTabImages.active {
    display: flex;
    gap: 16px;
}
#editForm.edit-images-expanded {
    max-width: 900px;
}
.edit-images-viewer {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}
.edit-images-viewer img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
}
.edit-images-sidebar {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    max-height: 520px;
}
.edit-images-sidebar .edit-image-item {
    padding: 4px 6px;
    gap: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
}
.edit-images-sidebar .edit-image-item.selected {
    border-color: var(--accent-color);
    background: rgba(107, 129, 144, 0.06);
}
.edit-images-sidebar .edit-image-item img {
    height: 50px;
    width: auto;
    border-radius: 3px;
}
.edit-images-sidebar .edit-img-caption {
    display: none;
}
.edit-images-sidebar .edit-image-dropzone {
    padding: 12px;
}
.edit-images-sidebar .edit-image-dropzone span:first-of-type {
    font-size: 12px;
}
.edit-images-sidebar .edit-image-dropzone-hint {
    display: none;
}
/* 2026-03-17 - Shadow/Midtone tone sliders (replaced exposure stepper) */
.edit-tone-controls {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    padding: 0 4px;
}
.edit-tone-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.edit-tone-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #888;
    min-width: 62px;
    text-align: right;
    user-select: none;
    -webkit-user-select: none;
}
.edit-tone-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: #e0e0e0;
    outline: none;
    cursor: pointer;
}
.edit-tone-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--accent-color, #6B8190);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.edit-tone-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--accent-color, #6B8190);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.edit-tone-value {
    font-size: 11px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    min-width: 24px;
    text-align: right;
    color: #999;
}
/* 2026-03-14 - Edit images responsive @media removed (desktop-only) */
/* 2026-03-09 - Added margin-bottom so delete/archive button can scroll to mid-page */
.edit-delete-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    margin-bottom: 50vh;
}
.edit-delete-btn {
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #dc2626;
    border: 1px solid #dc2626;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.edit-delete-btn:hover {
    background: #fef2f2;
}
.edit-delete-confirm {
    display: none;
    margin-top: 12px;
    padding: 16px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
}
/* 2026-03-09 - Confirm layout with thumbnail */
.edit-delete-confirm-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.edit-delete-confirm-thumb {
    width: 160px;
    height: 160px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
}
.edit-delete-confirm-info {
    flex: 1;
    min-width: 0;
}
.edit-delete-confirm p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #991b1b;
    font-weight: 500;
}
.edit-delete-confirm-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 12px;
}
.edit-delete-confirm-btns button {
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}
.edit-confirm-yes {
    background: #dc2626;
    color: #fff;
}
.edit-confirm-yes:hover { background: #b91c1c; }
.edit-confirm-no {
    background: #e5e7eb;
    color: #374151;
}
.edit-confirm-no:hover { background: #d1d5db; }
/* 2026-03-04 - Dynamic attributes editor on edit page */
.attribute-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 8px;
}
.attribute-row select,
.attribute-row input,
.attribute-row textarea {
    width: auto;
}
/* 2026-03-11 - Match attribute label select to combo-trigger style */
.attribute-label-select {
    width: 30%;
    min-width: 100px;
    flex-shrink: 0;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #f5f5f7;
    color: #333;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 32px;
}
.attribute-label-input {
    width: 30%;
    min-width: 100px;
    flex-shrink: 0;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: #333;
}
.attribute-label-select:focus,
.attribute-label-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.attribute-value {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: #333;
    min-height: 38px;
    resize: vertical;
}
.attribute-value:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
/* 2026-03-11 - Attribute value autocomplete suggestions */
.attr-value-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
}
.attr-value-wrap .attribute-value {
    width: 100%;
}
.attr-suggest-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 180px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 20;
}
.attr-suggest-panel.visible { display: block; }
.attr-suggest-item {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    color: #333;
}
.attr-suggest-item:hover,
.attr-suggest-item.highlighted {
    background: #f0f4ff;
    color: #2563eb;
}
.attr-suggest-empty {
    padding: 8px 12px;
    font-size: 13px;
    color: #999;
    font-style: italic;
}
.attribute-delete-btn {
    width: 32px;
    height: 36px;
    border: none;
    background: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.attribute-delete-btn:hover {
    color: #dc2626;
    background: #fef2f2;
}
.attribute-add-row {
    padding: 8px 12px;
    color: #2563eb;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
}
.attribute-add-row:hover {
    background: #eff6ff;
}
/* 2026-03-04 - Orphan creator dialog overlay */
.orphan-creator-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
}
.orphan-creator-overlay.active { display: flex; }
.orphan-creator-dialog {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 340px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.orphan-creator-dialog p {
    margin: 0 0 16px 0;
    font-size: 15px;
    color: #333;
    line-height: 1.4;
}
.orphan-creator-dialog .creator-name {
    font-weight: 600;
}
.orphan-creator-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.orphan-creator-btns button {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}
.orphan-btn-keep {
    background: #2563eb;
    color: #fff;
}
.orphan-btn-keep:hover { background: #1d4ed8; }
.orphan-btn-discard {
    background: #e5e7eb;
    color: #374151;
}
.orphan-btn-discard:hover { background: #d1d5db; }

/* 2026-03-13 - Category delete confirmation modal */
.catmgr-delete-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
}
.catmgr-delete-overlay.active { display: flex; }
.catmgr-delete-dialog {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.catmgr-delete-dialog .catmgr-delete-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    margin: 0 auto 16px;
}
.catmgr-delete-dialog h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 8px;
}
.catmgr-delete-dialog p {
    margin: 0 0 6px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}
.catmgr-delete-dialog .catmgr-delete-warn {
    font-size: 13px;
    color: #dc2626;
    font-weight: 500;
    margin: 12px 0 20px;
}
.catmgr-delete-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.catmgr-delete-btns button {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font-family);
}
.catmgr-delete-confirm {
    background: #dc2626;
    color: #fff;
}
.catmgr-delete-confirm:hover { background: #b91c1c; }
.catmgr-delete-cancel {
    background: #e5e7eb;
    color: #374151;
}
.catmgr-delete-cancel:hover { background: #d1d5db; }

/* 2026-03-17 - Share link modal */
.share-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
}
.share-overlay.active { display: flex; }
.share-dialog {
    background: #fff;
    border-radius: 14px;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}
.share-header {
    padding: 18px 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.share-body { padding: 16px 20px; }
.share-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: #f7f7f8;
    border-radius: 10px;
    border: 1px solid #e5e5e7;
}
.share-card-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    background: #eee;
    flex-shrink: 0;
}
.share-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.share-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.share-card-meta {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.share-note {
    margin-top: 14px;
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}
.share-actions {
    display: flex;
    gap: 10px;
    padding: 0 20px 18px;
    justify-content: flex-end;
}
.share-btn-cancel,
.share-btn-copy {
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-family);
}
.share-btn-cancel {
    background: #e5e7eb;
    color: #374151;
}
.share-btn-cancel:hover { background: #d1d5db; }
.share-btn-copy {
    background: var(--accent-color, #6B8190);
    color: #fff;
}
.share-btn-copy:hover { opacity: 0.9; }
