/* ── CSS Reset & Variables ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0d0f1a;
    --bg-2: #13162a;
    --bg-3: #1c2040;
    --bg-card: #181c34;
    --bg-card-hover: #1f2445;
    --border: rgba(255,255,255,0.07);
    --border-bright: rgba(255,255,255,0.14);

    --accent: #6C63FF;
    --accent-2: #4ECDC4;
    --accent-3: #FF6B6B;
    --accent-4: #FFE66D;

    --text: #e8ecf8;
    --text-muted: #8892b0;
    --text-dim: #4a526e;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);

    /* Organ colors */
    --oral: #FF6B6B;
    --oropharynx: #FF8E53;
    --nasopharynx: #FFD93D;
    --hypopharynx: #6BCB77;
    --larynx: #4D96FF;
    --salivary: #C77DFF;
    --thyroid: #4ECDC4;
    --others: #8892b0;

    font-size: 14px;
}

body {
    font-family: 'Pretendard', 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}

/* ── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Header ────────────────────────────────────────────────────────────── */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(13,15,26,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1600px; margin: 0 auto;
    padding: 12px 24px;
    display: flex; align-items: center; justify-content: space-between;
}

.header-brand { display: flex; align-items: center; gap: 12px; }
.brand-icon { width: 36px; height: 36px; flex-shrink: 0; }

.brand-title {
    font-size: 1.25rem; font-weight: 700;
    background: linear-gradient(135deg, #6C63FF, #4ECDC4);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.brand-sub { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.03em; }

.header-actions { display: flex; gap: 8px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: var(--radius-sm);
    font-size: 0.875rem; font-weight: 500; cursor: pointer;
    border: none; transition: all 0.2s ease;
    white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #8B83FF);
    color: #fff;
    box-shadow: 0 2px 12px rgba(108,99,255,0.4);
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(108,99,255,0.6);
}
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-ghost {
    background: var(--bg-3); color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-bright); }

.btn-sm { padding: 6px 12px; font-size: 0.8125rem; }

/* ── Main Layout ────────────────────────────────────────────────────────── */
.main {
    max-width: 1600px; margin: 0 auto;
    padding: 24px 24px 48px;
    display: flex; flex-direction: column; gap: 20px;
}

/* ── Stat Cards ─────────────────────────────────────────────────────────── */
.stats-section { overflow-x: auto; }

.stat-cards {
    display: flex; gap: 12px;
    flex-wrap: wrap;
    min-width: max-content;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 20px;
    min-width: 140px;
    display: flex; flex-direction: column; gap: 4px;
    transition: all 0.2s ease;
    cursor: default;
    position: relative; overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--organ-color, var(--accent));
    opacity: 0.8;
}
.stat-card:hover { transform: translateY(-2px); border-color: var(--border-bright); }

.stat-label {
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--text-muted);
}
.stat-value { font-size: 1.6rem; font-weight: 700; color: var(--text); line-height: 1; }
.stat-sub { font-size: 0.72rem; color: var(--text-dim); }

.loading-skeleton {
    background: linear-gradient(90deg, var(--bg-card), var(--bg-3), var(--bg-card));
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Filter Bar ─────────────────────────────────────────────────────────── */
.filter-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.filter-bar {
    display: flex; align-items: center;
    gap: 10px; flex-wrap: wrap;
}

.search-wrap { position: relative; flex: 1; min-width: 200px; }
.search-icon {
    position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; color: var(--text-dim);
    pointer-events: none;
}
.input-search {
    width: 100%;
    padding: 8px 12px 8px 34px;
    background: var(--bg-2); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 0.875rem; font-family: inherit;
    transition: border-color 0.2s;
}
.input-search:focus { outline: none; border-color: var(--accent); }

.input-select, .input-text, .input-date {
    padding: 8px 12px;
    background: var(--bg-2); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 0.875rem; font-family: inherit;
    transition: border-color 0.2s;
}
.input-select:focus, .input-text:focus, .input-date:focus {
    outline: none; border-color: var(--accent);
}
.input-select { cursor: pointer; }
.input-select option { background: var(--bg-2); }
.input-date { color-scheme: dark; }
.date-sep { color: var(--text-dim); font-size: 0.875rem; }

/* ── Table Section ──────────────────────────────────────────────────────── */
.table-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.table-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}

.result-info { font-size: 0.8125rem; color: var(--text-muted); }

.per-page-wrap label {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.8125rem; color: var(--text-muted);
}

.input-select-sm {
    padding: 4px 8px;
    background: var(--bg-2); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-xs);
    font-size: 0.8125rem; cursor: pointer;
}
.input-select-sm option { background: var(--bg-2); }

.table-container { overflow-x: auto; }

.data-table {
    width: 100%; border-collapse: collapse;
    font-size: 0.8125rem;
}

.data-table th {
    padding: 10px 14px;
    background: var(--bg-2);
    color: var(--text-muted); font-weight: 600;
    text-align: left; white-space: nowrap;
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase;
    user-select: none;
}

.data-table th.sortable { cursor: pointer; }
.data-table th.sortable:hover { color: var(--text); }
.data-table th.sort-asc::after { content: ' ↑'; color: var(--accent); }
.data-table th.sort-desc::after { content: ' ↓'; color: var(--accent); }

.data-table td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}

.data-table tr { transition: background 0.15s; }
.data-table tr:hover td { background: var(--bg-card-hover); cursor: pointer; }
.data-table tr:last-child td { border-bottom: none; }

.th-no { width: 48px; }
.th-organ { white-space: nowrap; }
.th-assess { min-width: 200px; max-width: 280px; }

.cell-assess {
    max-width: 240px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.cell-no { color: var(--text-dim); font-size: 0.75rem; }
.cell-name { font-weight: 600; }
.cell-id { font-family: 'Inter', monospace; font-size: 0.78rem; color: var(--text-muted); }
.cell-date { font-family: 'Inter', monospace; font-size: 0.78rem; white-space: nowrap; }

/* Organ badges */
.organ-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem; font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.organ-oral-cavity     { background: rgba(255,107,107,0.15); color: #FF6B6B; border: 1px solid rgba(255,107,107,0.3); }
.organ-oropharynx      { background: rgba(255,142,83,0.15);  color: #FF8E53; border: 1px solid rgba(255,142,83,0.3); }
.organ-nasopharynx     { background: rgba(255,217,61,0.15);  color: #FFD93D; border: 1px solid rgba(255,217,61,0.3); }
.organ-hypopharynx     { background: rgba(107,203,119,0.15); color: #6BCB77; border: 1px solid rgba(107,203,119,0.3); }
.organ-larynx          { background: rgba(77,150,255,0.15);  color: #4D96FF; border: 1px solid rgba(77,150,255,0.3); }
.organ-salivary-gland  { background: rgba(199,125,255,0.15); color: #C77DFF; border: 1px solid rgba(199,125,255,0.3); }
.organ-thyroid-gland   { background: rgba(78,205,196,0.15);  color: #4ECDC4; border: 1px solid rgba(78,205,196,0.3); }
.organ-others          { background: rgba(136,146,176,0.1);  color: #8892b0; border: 1px solid rgba(136,146,176,0.2); }

.gender-M { color: #4D96FF; font-weight: 600; }
.gender-F { color: #FF6B9D; font-weight: 600; }

.empty-cell {
    text-align: center; padding: 60px !important;
    color: var(--text-dim); font-size: 0.875rem;
}

/* ── Pagination ─────────────────────────────────────────────────────────── */
.pagination-wrap {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; padding: 16px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.page-btn {
    min-width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 8px;
    background: var(--bg-2); color: var(--text-muted);
    border: 1px solid var(--border); border-radius: var(--radius-xs);
    font-size: 0.8125rem; cursor: pointer;
    transition: all 0.15s;
}
.page-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── Modal ──────────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}
.modal-overlay.hidden { display: none; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%; max-width: 520px;
    max-height: 90vh;
    display: flex; flex-direction: column;
    animation: slideUp 0.25s ease;
}
.modal-lg { max-width: 760px; }

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-size: 1rem; font-weight: 600; }

.modal-close {
    background: none; border: none; cursor: pointer;
    color: var(--text-muted); font-size: 1rem; padding: 4px;
    border-radius: 4px; transition: color 0.15s;
}
.modal-close:hover { color: var(--text); }

.modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex; gap: 8px; justify-content: flex-end;
}

/* ── Drop Zone ──────────────────────────────────────────────────────────── */
.drop-zone {
    border: 2px dashed var(--border-bright);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.drop-zone svg { width: 40px; height: 40px; color: var(--text-dim); }
.drop-zone p { color: var(--text-muted); font-size: 0.875rem; }
.drop-zone .drop-hint { color: var(--text-dim); font-size: 0.78rem; }
.drop-zone.drag-over { border-color: var(--accent); background: rgba(108,99,255,0.05); }
.drop-zone:hover { border-color: var(--accent); }

.file-list {
    margin-top: 16px;
    display: flex; flex-direction: column; gap: 6px;
}
.file-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px;
    background: var(--bg-2); border-radius: var(--radius-sm);
    font-size: 0.8125rem;
}
.file-item svg { width: 14px; height: 14px; color: var(--accent-2); flex-shrink: 0; }
.file-name { flex: 1; truncate: ellipsis; overflow: hidden; white-space: nowrap; }
.file-size { color: var(--text-dim); font-size: 0.75rem; }

.upload-result { margin-top: 16px; }
.upload-result-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 14px; border-radius: var(--radius-sm);
    margin-bottom: 6px; font-size: 0.8125rem;
}
.upload-result-item.ok { background: rgba(78,205,196,0.1); border: 1px solid rgba(78,205,196,0.2); }
.upload-result-item.error { background: rgba(255,107,107,0.1); border: 1px solid rgba(255,107,107,0.2); }
.upload-status { font-weight: 700; }
.upload-status.ok { color: var(--accent-2); }
.upload-status.error { color: var(--accent-3); }

/* ── Stats Modal ────────────────────────────────────────────────────────── */
.stats-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 600px) { .stats-grid { grid-template-columns: 1fr; } }

.stats-block h3 {
    font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 12px;
}

.bar-row {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 8px; font-size: 0.8125rem;
}
.bar-label { width: 120px; text-align: right; color: var(--text-muted); flex-shrink: 0; }
.bar-outer { flex: 1; background: var(--bg-2); border-radius: 4px; height: 8px; overflow: hidden; }
.bar-inner { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.bar-count { width: 36px; text-align: right; color: var(--text); font-weight: 600; }

/* ── Detail Modal ────────────────────────────────────────────────────────── */
.detail-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.detail-field { display: flex; flex-direction: column; gap: 3px; }
.detail-field.full { grid-column: 1 / -1; }
.detail-key {
    font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-dim);
}
.detail-val {
    font-size: 0.875rem; color: var(--text);
    word-break: break-word; line-height: 1.5;
}

/* Organ select in detail */
.organ-select {
    padding: 4px 8px;
    background: var(--bg-2); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-xs);
    font-size: 0.8125rem; cursor: pointer; font-family: inherit;
}
.organ-select option { background: var(--bg-2); }

/* ── Toast ──────────────────────────────────────────────────────────────── */
.toast {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    font-size: 0.875rem; color: var(--text);
    animation: slideInRight 0.3s ease;
    max-width: 320px;
}
.toast.hidden { display: none; }
.toast.toast-success { border-left: 3px solid var(--accent-2); }
.toast.toast-error { border-left: 3px solid var(--accent-3); }

@keyframes slideInRight {
    from { transform: translateX(40px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .filter-bar { flex-direction: column; align-items: stretch; }
    .search-wrap { min-width: unset; }
    .main { padding: 16px 12px 40px; }
    .header-inner { padding: 10px 16px; }
    .brand-sub { display: none; }
    .data-table th, .data-table td { padding: 8px 10px; }
}

.hidden { display: none !important; }
.loading-text { color: var(--text-muted); text-align: center; padding: 20px; }

/* ── Media & Gallery Feature ────────────────────────────────────────────── */
.media-badge-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.media-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    background: rgba(78,205,196,0.15);
    color: var(--accent-2);
    border: 1px solid rgba(78,205,196,0.3);
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.media-badge:hover {
    background: var(--accent-2);
    color: #fff;
    transform: scale(1.05);
}
.media-badge svg {
    width: 12px;
    height: 12px;
    stroke-width: 2.5;
}

/* Gallery Modal Layout */
.gallery-modal {
    max-width: 860px;
    background: #0f1319; /* 더욱 몰입감 있는 미디어 뷰를 위한 어두운 배경 */
    border-color: rgba(255,255,255,0.08);
}
.gallery-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #000;
    border-radius: var(--radius);
    height: 520px;
    overflow: hidden;
}
.gallery-viewport {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.gallery-viewport img,
.gallery-viewport video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
}
.gallery-nav-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}
#btn-gallery-prev { left: 16px; }
#btn-gallery-next { right: 16px; }

.gallery-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 6px 4px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.gallery-filename {
    font-weight: 500;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}
.gallery-index {
    font-weight: 600;
    color: var(--accent-2);
}

/* Gallery Thumbnails list */
.gallery-thumbnails {
    display: flex;
    gap: 8px;
    padding: 12px 4px 4px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}
.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}
.gallery-thumb {
    width: 60px;
    height: 48px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    opacity: 0.5;
    transition: all 0.15s;
    background: #000;
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-thumb-video-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
}
.gallery-thumb-video-icon svg {
    width: 16px;
    height: 16px;
    color: #fff;
    fill: #fff;
}
.gallery-thumb.active {
    border-color: var(--accent);
    opacity: 1;
    transform: scale(1.05);
}
.gallery-thumb:hover {
    opacity: 0.85;
}

/* Detail view media section styling */
.detail-media-section {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.detail-media-section h3 {
    margin-bottom: 10px;
}
.detail-media-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.detail-media-item {
    width: 80px;
    height: 64px;
    border-radius: var(--radius-xs);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-bright);
    flex-shrink: 0;
    position: relative;
    background: #000;
    transition: transform 0.2s;
}
.detail-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detail-media-item:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}
.detail-media-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-media-video-overlay svg {
    width: 20px;
    height: 20px;
    color: #fff;
    fill: #fff;
}

/* Responsive adjustment for media player */
@media (max-width: 600px) {
    .gallery-container {
        height: 320px;
    }
    .gallery-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    #btn-gallery-prev { left: 8px; }
    #btn-gallery-next { right: 8px; }
}

/* ── CRUD & Upload Additional Styles ────────────────────────────────────── */
.btn-danger {
    background: linear-gradient(135deg, #FF6B6B, #EE5253);
    color: #fff;
    border: none;
}
.btn-danger:hover {
    box-shadow: 0 0 12px rgba(255,107,107,0.4);
    color: #fff;
}

.btn-gallery-delete {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.2);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-gallery-delete:hover {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
}

.detail-media-add {
    width: 80px;
    height: 64px;
    border-radius: var(--radius-xs);
    border: 2px dashed var(--border-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    color: var(--text-dim);
    transition: all 0.2s;
    background: transparent;
}
.detail-media-add:hover {
    border-color: var(--accent-2);
    color: var(--accent-2);
    background: rgba(78,205,196,0.05);
}
.detail-media-add svg {
    width: 20px;
    height: 20px;
}

.detail-media-list {
    border: 2px dashed transparent;
    border-radius: var(--radius-sm);
    padding: 4px;
    transition: all 0.2s;
}
.detail-media-list.drag-over {
    border-color: var(--accent-2);
    background: rgba(78,205,196,0.08);
}
