/* Admin-Area Styling */
/* Admin-Shell: Milano-Hintergrundbild abgedunkelt + geblurrt wie bei /account/login */
.admin-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: url('/files/Lavinia/img/milano.webp') center center / cover no-repeat fixed !important;
}

.admin-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(24, 20, 12, 0.58), rgba(24, 20, 12, 0.38));
    -webkit-backdrop-filter: blur(16px) saturate(0.9);
    backdrop-filter: blur(16px) saturate(0.9);
    z-index: 0;
    pointer-events: none;
}

.admin-shell > header,
.admin-shell > footer,
.admin-shell > main,
.admin-main {
    position: relative;
    z-index: 1;
}
.admin-main {
    flex: 1 0 auto;
    padding-top: calc(2vw + 80px);
    padding-bottom: 50px;
    padding-left: 20px;
    padding-right: 20px;
}

@media (max-width: 900px) {
    .admin-main {
        padding-top: 90px;
        padding-bottom: 30px;
        padding-left: 10px;
        padding-right: 10px;
    }
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 32px 40px 32px;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--lavinia-bg, #ffffff);
    color: var(--lavinia-fg, #111111);
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    box-shadow: 0 16px 40px -12px rgba(18, 14, 6, 0.35), 0 0 30px -10px rgba(165, 128, 58, 0.2);
}

@media (max-width: 768px) {
    .admin-container {
        padding: 20px 16px 30px 16px;
        border-radius: 10px;
    }
}

.admin-container h2 {
    margin: 0 0 24px 0;
    font-size: 1.75rem;
    font-family: "Segoe UI", system-ui, sans-serif;
}
.admin-container h3 {
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 1rem !important;
    margin: 16px 0 8px 0;
}

/* Dashboard Cards */
.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.admin-card {
    background: var(--lavinia-surface, #f5f5f5);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.admin-card h3 { margin: 0 0 8px 0; font-size: .95rem !important; font-weight: 600; }
.admin-stat { font-size: 1.5rem; font-weight: 700; margin: 0 0 8px 0; color: var(--lavinia-accent, #2563eb); }
.admin-card a { color: var(--lavinia-accent, #2563eb); text-decoration: none; font-size: .85rem; }
.admin-card a:hover { text-decoration: underline; }

/* Admin Back-Link */
.admin-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    color: var(--lavinia-accent, #2563eb);
    text-decoration: none;
    font-size: .9rem;
    font-family: "Segoe UI", system-ui, sans-serif;
}
.admin-back-link:hover { text-decoration: underline; }
.admin-hint { font-size: .85rem; color: var(--lavinia-fg, #111); opacity: .85; margin: 0 0 16px 0; }
.admin-active-count { font-size: .8rem; font-weight: 600; color: var(--lavinia-accent, #2563eb); margin-left: 8px; }
.admin-feature-list { list-style: disc; padding-left: 24px; margin: 0 0 16px 0; }
.admin-feature-list li { margin-bottom: 6px; font-size: .9rem; line-height: 1.5; }
.admin-feature-list strong { font-weight: 600; }

/* Location Tabs */
.admin-location-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.admin-tab {
    padding: 8px 20px;
    border: 1px solid var(--lavinia-border, #e0e0e0);
    background: transparent;
    color: var(--lavinia-fg, #111);
    border-radius: 6px;
    cursor: pointer;
    font-size: .95rem;
}
.admin-tab.active {
    background: var(--lavinia-accent, #2563eb);
    color: #fff;
    border-color: var(--lavinia-accent, #2563eb);
}

/* Tables */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--lavinia-border, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.admin-table th {
    text-align: left;
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 2px solid var(--lavinia-border, #cbd5e1);
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #475569;
}
.admin-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--lavinia-border, #e5e7eb);
    vertical-align: middle;
}
.admin-table tbody tr:nth-child(even) {
    background-color: rgba(212, 175, 55, 0.08); /* Lavinia Champagnergold */
}
.admin-table tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.16);
}

/* Inputs */
.admin-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--lavinia-border, #e0e0e0);
    border-radius: 4px;
    background: var(--lavinia-bg, #fff);
    color: var(--lavinia-fg, #111);
    font-size: .9rem;
}

/* Buttons */
.admin-actions { display: flex; gap: 12px; margin-top: 16px; }
.admin-btn {
    padding: 8px 20px;
    border: 1px solid var(--lavinia-border, #e0e0e0);
    background: var(--lavinia-surface, #f5f5f5);
    color: var(--lavinia-fg, #111);
    border-radius: 4px;
    cursor: pointer;
    font-size: .95rem;
}
.admin-btn-primary {
    padding: 8px 20px;
    background: var(--lavinia-accent, #2563eb);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: .95rem;
}
.admin-btn-danger {
    padding: 6px 14px;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: .85rem;
}
.admin-btn:hover, .admin-btn-primary:hover { opacity: .9; }
.admin-btn-danger:hover { opacity: .85; }

/* Section Box & Cards */
.admin-section-box {
    background: var(--lavinia-surface, #f8f9fa);
    border: 1px solid var(--lavinia-border, #e5e7eb);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}
.admin-section-box h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem !important;
    font-weight: 600;
}
.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 768px) {
    .admin-grid-2 {
        grid-template-columns: 1fr;
    }
}
.admin-photo-preview-card, .admin-photo-upload-card {
    background: var(--lavinia-bg, #fff);
    border: 1px solid var(--lavinia-border, #e5e7eb);
    border-radius: 6px;
    padding: 16px;
}
.admin-photo-preview-card h4, .admin-photo-upload-card h4 {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: "Segoe UI", system-ui, sans-serif;
}
.admin-location-photo {
    width: 100%;
    max-width: 360px;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: block;
}
.admin-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}
.admin-badge-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.admin-badge-neutral {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.admin-badge-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Upload Section Box */
.admin-upload-box {
    background: var(--lavinia-surface, #f8f9fa);
    border: 1px solid var(--lavinia-border, #e5e7eb);
    border-radius: 8px;
    padding: 22px 24px;
    margin-bottom: 28px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.admin-upload-header h3 {
    margin: 0 0 4px 0;
    font-size: 1.15rem !important;
    font-weight: 600;
}
.admin-upload-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    display: block;
    margin-bottom: 16px;
}
.admin-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
}
@media (max-width: 960px) {
    .admin-upload-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.admin-upload-subheading {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.01em;
}

.admin-upload-col-left {
    display: flex;
    flex-direction: column;
}

.admin-upload-col-right {
    display: flex;
    flex-direction: column;
}

/* Framed Drop Area (Right Column) */
.admin-dropzone-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-dropzone-box {
    position: relative;
    flex: 1;
    min-height: 220px;
    border: 2px dashed #94a3b8;
    border-radius: 8px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.admin-dropzone-box:hover,
.admin-dropzone-box.e-upload-drag-hover,
.admin-dropzone-box.drag-active {
    border-color: var(--lavinia-accent, #2563eb);
    background-color: #f0f7ff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.admin-dropzone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 20;
}

.admin-dropzone-icon {
    font-size: 2.75rem;
    margin-bottom: 10px;
    color: var(--lavinia-accent, #2563eb);
    transition: transform 0.2s ease;
}

.admin-dropzone-box:hover .admin-dropzone-icon {
    transform: scale(1.08);
}

.admin-dropzone-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.admin-dropzone-ghosttext {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 6px;
    max-width: 320px;
    line-height: 1.4;
}

.admin-dropzone-sub {
    font-size: 0.78rem;
    color: #94a3b8;
}

/* Dropzone File list */
.admin-dropzone-filelist {
    margin-top: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 14px;
}

.admin-dropzone-filelist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 600;
    color: #166534;
    margin-bottom: 6px;
}

.admin-dropzone-clear {
    background: transparent;
    border: none;
    color: #dc2626;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}
.admin-dropzone-clear:hover {
    background: #fee2e2;
}

.admin-dropzone-files {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.82rem;
    color: #334155;
}

.admin-dropzone-files li {
    padding: 3px 0;
    border-bottom: 1px dashed #e2e8f0;
    display: flex;
    justify-content: space-between;
}

.admin-dropzone-files li:last-child {
    border-bottom: none;
}

.admin-dropzone-size {
    color: #64748b;
    font-size: 0.78rem;
}

.admin-dropzone-more {
    font-style: italic;
    color: #64748b;
    font-size: 0.78rem;
    padding-top: 4px;
}

.admin-file-input {
    display: block;
    padding: 8px 10px;
    border: 1px dashed var(--lavinia-border, #cbd5e1);
    border-radius: 6px;
    background: #fff;
    width: 100%;
    cursor: pointer;
    font-size: 0.9rem;
}
.admin-file-input:hover {
    border-color: var(--lavinia-accent, #2563eb);
}
.admin-input-hint {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.4;
}
.admin-input-lg {
    font-size: 0.95rem;
    padding: 8px 12px;
    width: 100%;
    max-width: 100%;
}

.admin-sfuploader-hidden {
    display: none !important;
}

/* Tooltip & Popover */
.admin-label-with-tooltip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.admin-tooltip-container {
    position: relative;
    display: inline-block;
}
.admin-tooltip-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.78rem;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}
.admin-tooltip-btn:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}
.admin-tooltip-popover {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 1000;
    width: 380px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    font-size: 0.82rem;
    color: #1f2937;
    line-height: 1.45;
}
.admin-tooltip-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}
.admin-tooltip-popover p {
    margin: 0 0 6px 0;
}
.admin-tooltip-popover ul {
    margin: 0 0 8px 0;
    padding-left: 18px;
}
.admin-tooltip-popover li {
    margin-bottom: 4px;
}
.admin-tooltip-close {
    background: #f3f4f6;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 0.75rem;
    cursor: pointer;
    float: right;
}

/* Upload Actions */
.admin-upload-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.admin-upload-selected-count {
    font-size: 0.85rem;
    color: #059669;
    font-weight: 600;
}

/* Grid Section Header */
.admin-grid-section-header {
    margin-top: 8px;
    margin-bottom: 12px;
}
.admin-grid-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.admin-badges-group {
    display: flex;
    gap: 6px;
}

/* Syncfusion Grid Lavinia Customization */
.admin-grid-wrap {
    margin-top: 8px;
    margin-bottom: 30px;
}
.admin-grid-wrap .e-grid {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.admin-grid-wrap .e-grid .e-gridheader {
    background-color: #f8fafc !important;
    border-bottom: 2px solid #cbd5e1 !important;
}
.admin-grid-wrap .e-grid .e-headercell {
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    color: #475569 !important;
    padding: 10px 8px !important;
}

/* Alternating zebra row in Lavinia Champagne Gold */
.admin-grid-wrap .e-grid .e-row:nth-child(even),
.admin-grid-wrap .e-grid tr:nth-child(even) .e-rowcell {
    background-color: rgba(212, 175, 55, 0.08) !important;
}
.admin-grid-wrap .e-grid .e-row:hover .e-rowcell {
    background-color: rgba(212, 175, 55, 0.16) !important;
}
.admin-grid-wrap .e-grid .e-rowcell {
    vertical-align: middle !important;
    padding: 8px 10px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

/* Table cells content */
.admin-reorder-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.admin-order-badge {
    font-weight: 700;
    font-size: 0.85rem;
    color: #475569;
    min-width: 24px;
}
.admin-btn-icon-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.admin-btn-icon {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 0.7rem;
    line-height: 1;
    cursor: pointer;
    color: #334155;
    transition: all 0.1s ease;
}
.admin-btn-icon:hover:not(:disabled) {
    background: #cbd5e1;
    color: #0f172a;
}
.admin-btn-icon:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.admin-table-thumb {
    width: 100px;
    height: 65px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    display: block;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
}

.admin-file-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.admin-file-name {
    font-weight: 500;
    font-size: 0.85rem;
    word-break: break-all;
}
.admin-file-sub {
    font-size: 0.75rem;
    color: #64748b;
    word-break: break-all;
}

.admin-switch-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.admin-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.admin-checkbox-label {
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
}

.admin-input-alt {
    font-size: 0.88rem;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    width: 100%;
}
.admin-input-alt:focus {
    border-color: var(--lavinia-accent, #2563eb);
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.admin-btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.admin-empty-state {
    padding: 32px 16px;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.95rem;
    margin-top: 16px;
}

/* Info- & DSGVO-Box */
.admin-info-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    line-height: 1.5;
}
.admin-info-box-icon {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
}
.admin-info-box-content {
    flex: 1;
}
.admin-info-box-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--lavinia-accent, #2563eb);
}
.admin-cleanup-alert {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 8px;
    font-size: 0.82rem;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Toolbar & Filter-Pills */
.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: var(--lavinia-surface, #f8fafc);
    border: 1px solid var(--lavinia-border, #e2e8f0);
    border-radius: 8px;
}
.admin-toolbar-left,
.admin-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.admin-filter-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.admin-pill-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}
.admin-pill-btn:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}
.admin-pill-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    font-weight: 600;
}
.admin-selection-count {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2563eb;
    padding: 4px 10px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Row Action Buttons & Dialog */
.admin-btn-action-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.admin-btn-icon-action {
    padding: 4px 8px;
    font-size: 0.78rem;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.12s ease;
}
.admin-btn-icon-action:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}
.admin-btn-icon-resend {
    color: #0284c7;
    border-color: #bae6fd;
    background: #f0f9ff;
}
.admin-btn-icon-resend:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
}
.admin-btn-icon-delete {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
}
.admin-btn-icon-delete:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* Fluent2 Modal Dialog Customization */
.lavinia-modal-dialog .e-dlg-header-content {
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 20px;
    font-weight: 600;
}
.lavinia-modal-dialog .e-dlg-content {
    padding: 20px;
    font-size: 0.92rem;
    line-height: 1.5;
}
.lavinia-modal-dialog .e-footer-content {
    border-top: 1px solid #e2e8f0;
    padding: 12px 20px;
}