/* =============================================================================
   admin.css - Kürsat Gürbüz — Visual Content Studio Admin Dashboard
   Apple Design System by Emil Kowalski (WWDC Fluid Interfaces / visionOS)
   OLED Studio Schwarz #08080a | Mehrschichtiges Translucent Liquid Glass Material
   Hairline Borders & Specular Top-Highlights | Concentric Border Radii | 100% Farbtreue
   ============================================================================= */

:root {
    --bg-canvas: #08080a;
    --bg-header: transparent;
    --bg-surface: rgba(255, 255, 255, 0.04);
    --bg-surface-hover: rgba(255, 255, 255, 0.08);
    --border-line: rgba(255, 255, 255, 0.08);
    --border-line-hover: rgba(255, 255, 255, 0.16);

    /* Apple Translucent Material ("Liquid Glass" ohne Kitsch) */
    --glass-bg: rgba(24, 24, 26, 0.72);
    --glass-blur: blur(28px) saturate(190%);
    --glass-border: none;
    --glass-border-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 0 rgba(255, 255, 255, 0.14), 0 16px 40px -8px rgba(0, 0, 0, 0.55);

    --text-main: #f5f5f7;
    --text-muted: #86868b;
    --text-dimmed: #636366;

    --btn-primary-bg: #f5f5f7;
    --btn-primary-text: #08080a;
    --btn-primary-hover: #ffffff;

    --c-green: #30d158;
    --c-red: #ff453a;
    --c-yellow: #ffd60a;
    --c-blue: #0a84ff;

    --font-studio: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, sans-serif;

    /* Aliases & Kompatibilität */
    --liquid-glass-bg: var(--glass-bg);
    --liquid-glass-blur: var(--glass-blur);
    --liquid-glass-rim: var(--glass-border-shadow);
    --liquid-glass-border: var(--glass-border);
    --liquid-glass-shadow: var(--glass-border-shadow);

    --liquid-seg-bg: rgba(255, 255, 255, 0.04);
    --liquid-seg-active: rgba(255, 255, 255, 0.14);
    --liquid-seg-active-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.22), 0 2px 8px rgba(0, 0, 0, 0.25);

    --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-apple-snappy: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-canvas);
    color: var(--text-main);
    font-family: var(--font-studio);
    font-size: 13px;
    line-height: 1.45;
    letter-spacing: -0.01em;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Emil Kowalski Rule §1: Instant Tactile Feedback on Press */
button:active,
.btn-primary-studio:active,
.btn-subtle-sm:active,
.btn-ghost-sm:active,
.admin-subfolder-tab:active,
.modal-x:active {
    transform: scale(0.97) !important;
    transition: transform 100ms ease-out !important;
}

/* =============================================================================
   ADMIN HEADER (APPLE LIQUID GLASS)
   ============================================================================= */
.admin-header {
    position: sticky;
    top: 0;
    z-index: 100;
    pointer-events: none;
    width: 100%;
    padding: 12px 20px 0 20px;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}

.admin-header-inner {
    pointer-events: auto;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 22px;
    height: 48px;
    border-radius: 999px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: none;
    box-shadow: var(--glass-border-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.22s var(--ease-apple);
}

.admin-brand-block {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.photographer-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.header-sep {
    color: var(--border-line-hover);
}

.admin-page-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =============================================================================
   BUTTONS (APPLE FINISH & SPECULAR GLOW)
   ============================================================================= */
.btn-primary-studio {
    background: linear-gradient(180deg, #ffffff 0%, #ececec 100%);
    color: #121214 !important;
    border: none;
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    padding: 0 18px;
    height: 34px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary-studio:hover {
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.btn-primary-studio:active {
    transform: scale(0.97) translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-subtle-sm {
    background: transparent;
    border: 1px solid var(--border-line);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    padding: 0 12px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.12s ease;
}

.btn-subtle-sm:hover {
    border-color: var(--border-line-hover);
    background: var(--bg-surface);
}

.btn-ghost-sm {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-family: inherit;
    padding: 0 8px;
    height: 32px;
    cursor: pointer;
}

.btn-ghost-sm:hover {
    color: var(--text-main);
}

.btn-danger-studio {
    background: var(--c-red);
    color: #ffffff;
    border: none;
    font-size: 12.5px;
    font-weight: 500;
    font-family: inherit;
    padding: 0 14px;
    height: 32px;
    border-radius: 999px;
    cursor: pointer;
}

.btn-danger-studio:hover {
    opacity: 0.9;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* =============================================================================
   MAIN CONTAINER & METRICS STRIP
   ============================================================================= */
.admin-main {
    max-width: 1600px;
    margin: 0 auto;
    padding: 28px 28px 80px 28px;
}

.metrics-strip {
    display: flex;
    align-items: center;
    background: var(--liquid-glass-bg);
    backdrop-filter: var(--liquid-glass-blur);
    -webkit-backdrop-filter: var(--liquid-glass-blur);
    border: none;
    border-radius: 18px;
    box-shadow: var(--liquid-glass-shadow);
    padding: 16px 24px;
    margin-bottom: 24px;
    gap: 32px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.metric-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.metric-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.metric-green {
    color: var(--c-green);
}

.status-ready {
    color: var(--c-green);
    font-size: 14px;
    margin-top: 4px;
}

.metric-vsep {
    width: 1px;
    height: 32px;
    background: var(--border-line);
}

/* =============================================================================
   GALERIEN LISTE / TABELLE
   ============================================================================= */
.galleries-panel {
    background: var(--liquid-glass-bg);
    backdrop-filter: var(--liquid-glass-blur);
    -webkit-backdrop-filter: var(--liquid-glass-blur);
    border: none;
    border-radius: 18px;
    box-shadow: var(--liquid-glass-shadow);
    overflow: hidden;
}

.panel-head {
    padding: 14px 22px;
    border-bottom: 1px solid var(--border-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.panel-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-search-field {
    background: rgba(255, 255, 255, 0.04);
    border: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    padding: 0 12px;
    height: 30px;
    color: var(--text-main);
    font-size: 12px;
    font-family: inherit;
    width: 200px;
    outline: none;
    transition: all 0.22s var(--ease-apple);
}

.admin-search-field:focus {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.galleries-table-wrap {
    overflow-x: auto;
}

.galleries-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.galleries-table th {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-line);
    background: rgba(0, 0, 0, 0.15);
}

.galleries-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-line);
    font-size: 12.5px;
    vertical-align: middle;
}

.galleries-table tr:hover td {
    background: var(--bg-surface-hover);
}

.gal-title-cell {
    display: flex;
    flex-direction: column;
}

.gal-name {
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
}

.gal-name:hover {
    text-decoration: underline;
}

.gal-slug {
    font-size: 11px;
    color: var(--text-muted);
    font-family: monospace;
}

/* Status Badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
}

.badge-status.submitted {
    background: rgba(34, 197, 94, 0.12);
    color: var(--c-green);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.badge-status.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-line);
}

.pin-pill {
    background: var(--bg-canvas);
    border: 1px solid var(--border-line);
    padding: 2px 7px;
    border-radius: 999px;
    font-family: monospace;
    font-size: 11.5px;
    color: var(--text-main);
}

/* Aktionen Zeile */
.table-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.action-icon-btn {
    background: transparent;
    border: 1px solid var(--border-line);
    color: var(--text-muted);
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.12s ease;
    white-space: nowrap;
}

.action-icon-btn:hover {
    color: var(--text-main);
    border-color: var(--border-line-hover);
    background: var(--bg-canvas);
}

.action-icon-btn.btn-delete:hover {
    color: var(--c-red);
    border-color: rgba(239, 68, 68, 0.4);
}

/* =============================================================================
   MODAL: NEUE GALERIE & CANVAS UPLOAD (APPLE LIQUID GLASS)
   ============================================================================= */
.studio-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.studio-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.studio-modal {
    background: var(--liquid-glass-bg);
    backdrop-filter: var(--liquid-glass-blur);
    -webkit-backdrop-filter: var(--liquid-glass-blur);
    border: none;
    border-radius: 24px;
    max-width: 580px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--liquid-glass-shadow);
    transform: scale(0.96) translateY(8px);
    opacity: 0;
    transition: transform 0.22s var(--ease-apple), opacity 0.22s var(--ease-apple);
}

.studio-modal-backdrop.active .studio-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.studio-modal.modal-wide {
    max-width: 680px;
}

.studio-modal.modal-compact {
    max-width: 380px;
}

.modal-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-line);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.modal-heading {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.modal-subheading {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.modal-x {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

.modal-x:hover {
    color: var(--text-main);
}

.modal-content {
    padding: 20px;
}

.modal-actions {
    padding: 12px 20px;
    border-top: 1px solid var(--border-line);
    background: var(--bg-canvas);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-row {
    margin-bottom: 14px;
}

.form-caption {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.form-row input[type="text"],
.form-row input[type="date"] {
    width: 100%;
    background: var(--bg-canvas);
    border: 1px solid var(--border-line);
    border-radius: 999px;
    color: var(--text-main);
    padding: 7px 10px;
    font-size: 12.5px;
    font-family: inherit;
}

.form-row input[type="text"]:focus,
.form-row input[type="date"]:focus {
    outline: none;
    border-color: var(--border-line-hover);
}

.flat-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
}

.flat-checkbox input {
    accent-color: var(--text-main);
}

.form-sep {
    height: 1px;
    background: var(--border-line);
    margin: 16px 0;
}

/* =============================================================================
   DRAG & DROP UPLOADZONE & CANVAS PROZESSOR
   ============================================================================= */
.drop-zone {
    border: 1.5px dashed var(--border-line-hover);
    border-radius: 4px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    background: var(--bg-canvas);
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--text-main);
    background: var(--bg-surface);
}

.drop-icon {
    color: var(--text-muted);
    margin-bottom: 4px;
}

.drop-main-text {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-main);
}

.drop-sub-text {
    font-size: 11px;
    color: var(--text-muted);
}

.file-input-hidden {
    display: none;
}

/* Upload Queue */
.upload-queue-wrap {
    margin-top: 14px;
    background: var(--bg-canvas);
    border: 1px solid var(--border-line);
    border-radius: 4px;
    padding: 12px;
}

.queue-head {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.queue-bar-track {
    width: 100%;
    height: 4px;
    background: var(--border-line);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px;
}

.queue-bar-fill {
    height: 100%;
    background: var(--c-green);
    transition: width 0.12s ease;
}

.queue-file-list {
    max-height: 140px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.queue-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    padding: 2px 4px;
}

.queue-item.done {
    color: var(--c-green);
}

/* =============================================================================
   MASTER-PASSWORT LOGIN OVERLAY (APPLE LIQUID GLASS)
   ============================================================================= */
.admin-login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 12, 0.72);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.admin-login-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.login-box {
    max-width: 360px;
    width: 100%;
    text-align: center;
    background: var(--liquid-glass-bg);
    backdrop-filter: var(--liquid-glass-blur);
    -webkit-backdrop-filter: var(--liquid-glass-blur);
    box-shadow: var(--liquid-glass-shadow);
    border: var(--liquid-glass-border);
    border-radius: 24px;
    padding: 38px 32px 30px 32px;
    animation: modalPop 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.login-brand {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.login-title {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.form-field input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-line);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--text-main);
    font-size: 13px;
    font-family: inherit;
    margin-bottom: 12px;
}

.form-field input:focus {
    outline: none;
    border-color: var(--text-main);
}

.login-error {
    font-size: 11.5px;
    color: var(--c-red);
    margin-bottom: 10px;
}

.login-hint {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-line);
    font-size: 11px;
    color: var(--text-dimmed);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    text-decoration: underline;
    cursor: pointer;
}

/* Toast */
.studio-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.studio-toast {
    background: var(--bg-surface);
    border: 1px solid var(--border-line-hover);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    color: var(--text-main);
    pointer-events: auto;
    animation: toastFade 0.2s ease;
}

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

/* Foto-Verwaltung Modal */
.admin-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    padding: 6px 0;
    max-height: 55vh;
    overflow-y: auto;
}

.admin-photo-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-border-shadow);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease;
}

.admin-photo-card:hover {
    border-color: var(--border-line-hover);
}

.admin-photo-thumb-wrap {
    width: 100%;
    aspect-ratio: 3/2;
    background: #111;
    overflow: hidden;
    position: relative;
}

.admin-photo-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-photo-meta {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-photo-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-photo-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.admin-photo-subfolder {
    font-size: 10px;
    color: var(--text-muted);
}

.btn-delete-single-photo {
    background: none;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 10.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: all 0.12s ease;
}

.btn-delete-single-photo:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.hidden {
    display: none !important;
}


/* =============================================================================
   UNTERGALERIEN / SEKTIONEN VERWALTUNG IM ADMIN DASHBOARD
   ============================================================================= */
.admin-subfolder-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    flex-wrap: wrap;
}

.admin-subfolder-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-subfolder-tab {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.admin-subfolder-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

.admin-subfolder-tab.active {
    background: var(--pill-active-bg, rgba(255, 255, 255, 0.95));
    color: var(--pill-active-text, #000);
    border-color: transparent;
    font-weight: 600;
}

.subfolder-badge {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
}

.admin-subfolder-tab.active .subfolder-badge {
    background: rgba(0, 0, 0, 0.18);
    color: #000;
}

.admin-batch-move-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.batch-label {
    font-size: 11px;
    color: var(--text-muted);
}

.batch-subfolder-input {
    width: 140px;
    height: 30px;
    font-size: 11.5px;
    padding: 0 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    outline: none;
}

.admin-photo-select-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-photo-select-checkbox input {
    opacity: 0;
    position: absolute;
}

.admin-photo-select-checkbox .checkbox-custom {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: block;
    transition: all 0.15s ease;
}

.admin-photo-select-checkbox input:checked + .checkbox-custom {
    background: var(--c-blue, #0071e3);
    border-color: var(--c-blue, #0071e3);
    box-shadow: 0 0 8px rgba(0, 113, 227, 0.6);
}

.admin-photo-subfolder-select {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    outline: none;
    max-width: 95px;
    cursor: pointer;
}

.admin-photo-subfolder-select option {
    background: #1c1c1e;
    color: #fff;
}

/* =============================================================================
   ADMIN MOBILE RESPONSIVE OPTIMIZATION (< 768px)
   ============================================================================= */
@media (max-width: 768px) {
    .admin-main {
        padding: 16px 12px 64px 12px;
    }

    .admin-header {
        padding: 8px 10px 0 10px;
    }

    .admin-header-inner {
        height: 44px;
        padding: 0 14px;
    }

    .admin-brand-block {
        gap: 6px;
    }

    .admin-page-title {
        font-size: 13px;
    }

    .admin-header-actions .btn-subtle-sm span {
        display: none;
    }

    .admin-header-actions .btn-primary-studio {
        height: 30px;
        padding: 0 12px;
        font-size: 11.5px;
    }

    .metrics-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
    }

    .metric-vsep {
        display: none;
    }

    .panel-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .panel-tools {
        width: 100%;
        justify-content: space-between;
    }

    .admin-search-field {
        flex: 1;
        width: auto;
    }

    /* Vaul-Style iOS Bottom Sheet for New Gallery Modal */
    .studio-modal-backdrop {
        align-items: flex-end !important;
        padding: 0 !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
    }

    .studio-modal,
    .studio-modal.modal-wide,
    .studio-modal.modal-compact {
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 24px 24px 0 0 !important;
        border: none !important;
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 0 rgba(255, 255, 255, 0.16) !important;
        padding-bottom: max(20px, env(safe-area-inset-bottom)) !important;
        max-height: 85vh;
        overflow-y: auto;
        transform: translateY(100%);
        transition: transform 0.32s var(--ease-apple) !important;
        touch-action: pan-y;
    }

    .studio-modal-backdrop.active .studio-modal {
        transform: translateY(0) !important;
    }

    .mobile-sheet-grabber {
        display: block !important;
        width: 36px;
        height: 5px;
        background: rgba(255, 255, 255, 0.28);
        border-radius: 999px;
        margin: 10px auto 14px auto;
        flex-shrink: 0;
        cursor: grab;
        touch-action: none;
    }
}
