:root {
    --admin-bg: #f4f7f5;
    --admin-surface: #ffffff;
    --admin-ink: #142230;
    --admin-muted: #657486;
    --admin-line: #dce6dd;
    --admin-primary: #0f766e;
    --admin-primary-dark: #0b5f59;
    --admin-accent: #f59e0b;
    --admin-danger: #b42318;
    --admin-radius: 8px;
    --admin-shadow: 0 16px 44px rgba(20, 34, 48, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--admin-bg);
    color: var(--admin-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

body.admin-menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.admin-app {
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    width: min(86vw, 275px);
    display: grid;
    align-content: start;
    gap: 22px;
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 24px 20px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1), padding 200ms ease, width 200ms ease;
}

.admin-sidebar.is-open {
    transform: translateX(0);
}

.admin-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    visibility: hidden;
    opacity: 0;
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(4px);
    transition: opacity 220ms ease, visibility 220ms ease;
}

.admin-overlay.is-open {
    visibility: visible;
    opacity: 1;
}

.admin-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 20px;
    margin-bottom: 6px;
}

.admin-brand .brand-full {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.admin-brand .brand-mini {
    display: none;
}

.admin-close,
.admin-menu-button {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--admin-radius);
    background: transparent;
    color: inherit;
    font-size: 24px;
    line-height: 1;
    transition: all 150ms ease;
}

.admin-close:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
}

.admin-menu-button {
    border-color: var(--admin-line);
    background: var(--admin-surface);
    color: var(--admin-ink);
}

.admin-menu-button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    display: block;
}

.admin-nav {
    display: grid;
    gap: 6px;
}

.admin-nav a {
    min-height: 42px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.65);
    padding: 10px 14px;
    font-weight: 600;
    font-size: 14px;
    transition: all 160ms ease;
}

.admin-nav a svg {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    stroke: currentColor;
    flex-shrink: 0;
    transition: all 160ms ease;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #38bdf8;
}

.admin-nav a:hover svg {
    transform: scale(1.05);
}

.admin-nav a.is-active {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.15) 0%, rgba(99, 102, 241, 0.04) 100%);
    border-left: 3px solid #0ea5e9;
    padding-left: 11px;
    color: #38bdf8;
    font-weight: 700;
}

.admin-nav a.is-active svg {
    color: #38bdf8;
}

.admin-main {
    min-width: 0;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--admin-line);
    background: rgba(244, 247, 245, 0.94);
    padding: 12px 16px;
    backdrop-filter: blur(14px);
}

.admin-topbar-start {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.admin-site-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--admin-line);
    border-radius: var(--admin-radius);
    background: var(--admin-surface);
    color: var(--admin-ink);
    padding: 0 14px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.admin-site-button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
}

.admin-site-button:hover,
.admin-site-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(15, 118, 110, 0.28);
    background: #fff;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.admin-topbar-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.admin-maintenance-badge {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    border-radius: 999px;
    background: rgba(180, 35, 24, 0.1);
    color: var(--admin-danger);
    font-size: 12px;
    font-weight: 700;
    padding: 0 12px;
    white-space: nowrap;
}

.admin-topbar-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--admin-line);
    border-radius: var(--admin-radius);
    background: var(--admin-surface);
    color: var(--admin-ink);
    padding: 0 14px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.admin-topbar-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
}

.admin-topbar-btn:hover,
.admin-topbar-btn:focus-visible {
    transform: translateY(-1px);
}

.admin-topbar-btn.is-warning {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.admin-topbar-btn.is-success {
    border-color: rgba(15, 118, 110, 0.28);
    background: rgba(15, 118, 110, 0.1);
    color: var(--admin-primary-dark);
}

.admin-topbar-btn.is-settings {
    border-color: var(--admin-line);
    background: var(--admin-surface);
    color: var(--admin-ink);
}

.admin-topbar-btn.is-settings:hover,
.admin-topbar-btn.is-settings:focus-visible {
    border-color: rgba(15, 118, 110, 0.28);
    background: #fff;
}

.admin-topbar-btn.is-disabled,
.admin-topbar-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.admin-topbar-toolbar form {
    margin: 0;
}

.admin-content {
    width: min(100% - 28px, 1280px);
    margin: 0 auto;
    padding: 20px 0 40px;
}

.page-head {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.page-head-actions {
    grid-template-columns: minmax(0, 1fr);
}

.page-head-actions > .btn {
    width: fit-content;
}

.page-head h1 {
    margin: 0;
    font-size: clamp(30px, 8vw, 44px);
    line-height: 1.05;
    letter-spacing: 0;
}

.page-head p {
    margin: 0;
    color: var(--admin-muted);
}

.grid,
.stats-grid,
.form-grid,
.card-grid {
    display: grid;
    gap: 14px;
}

.section-space {
    margin-top: 18px;
}

.filter-bar,
.filter-actions,
.view-switch,
.editor-layout,
.editor-sidebar,
.inline-form-grid,
.blok-list,
.blok-row {
    display: grid;
    gap: 14px;
}

.filter-actions {
    align-content: end;
    grid-template-columns: repeat(2, minmax(0, max-content));
}

.view-switch {
    grid-template-columns: repeat(2, minmax(0, max-content));
}

.table-subtext {
    display: block;
    color: var(--admin-muted);
    margin-top: 3px;
}

.section-title-row,
.blok-row-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.section-title-row h2,
.section-title-row p,
.blok-row-head h3 {
    margin: 0;
}

.section-title-row p,
.blok-row-head span {
    color: var(--admin-muted);
}

.blok-row {
    border: 1px solid var(--admin-line);
    border-radius: var(--admin-radius);
    background: #fbfcfb;
    padding: 14px;
}

.full-span {
    grid-column: 1 / -1;
}

.stats-grid {
    grid-template-columns: 1fr;
}

.card,
.stat-card {
    border: 1px solid var(--admin-line);
    border-radius: var(--admin-radius);
    background: var(--admin-surface);
    box-shadow: 0 1px 0 rgba(20, 34, 48, 0.04);
}

.card {
    padding: 16px;
}

.home-manager,
.home-section-list,
.repeat-group,
.repeat-list {
    display: grid;
    gap: 16px;
}

.home-overview,
.home-section {
    border: 1px solid var(--admin-line);
    border-radius: var(--admin-radius);
    background: var(--admin-surface);
    box-shadow: 0 1px 0 rgba(20, 34, 48, 0.04);
}

.home-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
}

.home-overview > div {
    display: grid;
    align-content: center;
    min-height: 92px;
    background: #fff;
    padding: 16px;
}

.home-overview strong {
    font-size: 30px;
    line-height: 1;
}

.home-overview span {
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 900;
}

.home-overview .overview-action {
    align-content: center;
}

.home-section {
    padding: 18px;
}

.home-section-top {
    display: grid;
    gap: 14px;
    border-bottom: 1px solid var(--admin-line);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.home-section-top h2,
.repeat-heading h3 {
    margin: 0;
}

.home-section-top h2 {
    font-size: 24px;
    line-height: 1.15;
}

.home-section-top p,
.repeat-heading span,
.admin-note span,
.field-hint {
    color: var(--admin-muted);
}

.home-section-top p {
    margin: 6px 0 0;
}

.section-kicker {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    background: #edf5f3;
    color: var(--admin-primary-dark);
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 900;
}

.section-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.compact-field input,
.compact-field select {
    min-height: 42px;
}

.repeat-group {
    border-top: 1px solid var(--admin-line);
    margin-top: 16px;
    padding-top: 16px;
}

.repeat-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.repeat-heading h3 {
    font-size: 18px;
}

.repeat-heading span {
    font-size: 13px;
    font-weight: 800;
}

.repeat-row {
    display: grid;
    gap: 12px;
    border: 1px solid var(--admin-line);
    border-radius: var(--admin-radius);
    background: #fbfcfb;
    padding: 12px;
}

.repeat-row textarea {
    min-height: 86px;
}

.admin-note {
    display: grid;
    gap: 6px;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: var(--admin-radius);
    background: #f1faf6;
    margin-top: 16px;
    padding: 14px;
}

.sticky-save {
    position: sticky;
    bottom: 12px;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
}

.sticky-save .btn {
    box-shadow: var(--admin-shadow);
    pointer-events: auto;
}

.card h2,
.card h3 {
    margin: 0 0 14px;
}

.stat-card {
    padding: 18px;
}

.stat-card span {
    color: var(--admin-muted);
    font-size: 13px;
    font-weight: 900;
}

.stat-card strong {
    display: block;
    margin-top: 6px;
    font-size: 34px;
    line-height: 1;
}

.field {
    display: grid;
    gap: 7px;
}

.field label {
    color: #354456;
    font-size: 13px;
    font-weight: 900;
}

.field-error {
    color: var(--admin-danger);
    font-size: 12px;
    font-weight: 800;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--admin-line);
    border-radius: var(--admin-radius);
    background: #fbfcfb;
    color: var(--admin-ink);
    padding: 10px 12px;
    outline: none;
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    color: #354456;
    font-size: 13px;
    font-weight: 900;
}

.checkbox-line input {
    width: 18px;
    min-height: 18px;
}

.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--admin-radius);
    padding: 10px 14px;
    font-weight: 900;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--admin-primary);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--admin-primary-dark);
}

.btn-secondary {
    background: #fff;
    border-color: var(--admin-line);
    color: var(--admin-ink);
}

.btn-danger {
    background: #fff5f5;
    border-color: #ffd5d2;
    color: var(--admin-danger);
}

.btn-link {
    color: var(--admin-primary-dark);
    font-weight: 900;
}

.message {
    border: 1px solid rgba(15, 118, 110, 0.24);
    border-radius: var(--admin-radius);
    background: #eaf8f0;
    color: #0d6b43;
    padding: 12px 14px;
    font-weight: 800;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--admin-line);
    border-radius: var(--admin-radius);
}

.admin-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: #fff;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--admin-line);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.status {
    display: inline-flex;
    border-radius: 999px;
    background: #edf5f3;
    color: var(--admin-primary-dark);
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 900;
}

.status-pasif {
    background: #f4f0e8;
    color: #8a5a00;
}

.status-taslak {
    background: #eef1f5;
    color: #4b5f75;
}

.status-yayinda {
    background: #eaf8f0;
    color: #0d6b43;
}

.status-tamamlandi,
.status-okundu {
    background: #eaf8f0;
    color: #0d6b43;
}

.status-bekliyor,
.status-yeni,
.status-hazirlaniyor {
    background: #fff7e8;
    color: #8a5a00;
}

.status-hatali {
    background: #fff5f5;
    color: var(--admin-danger);
}

.row-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.row-form {
    display: grid;
    gap: 8px;
}

.empty {
    color: var(--admin-muted);
}

.quick-actions,
.task-list {
    display: grid;
    gap: 10px;
}

.quick-actions {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.task-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--admin-line);
    border-radius: var(--admin-radius);
    background: #fbfcfb;
    padding: 12px;
}

.task-row span {
    color: var(--admin-muted);
    font-weight: 800;
}

.task-row strong {
    font-size: 22px;
    line-height: 1;
}

.pagination {
    margin-top: 14px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}

.media-card {
    overflow: hidden;
    border: 1px solid var(--admin-line);
    border-radius: var(--admin-radius);
    background: var(--admin-surface);
}

.media-thumb,
.media-preview {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: #eef4f0;
    color: var(--admin-muted);
    font-weight: 900;
}

.media-thumb img,
.media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-preview {
    border: 1px solid var(--admin-line);
    border-radius: var(--admin-radius);
    overflow: hidden;
}

.media-meta {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.media-meta span {
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 800;
}

.permission-grid {
    display: grid;
    gap: 14px;
}

.permission-group {
    border: 1px solid var(--admin-line);
    border-radius: var(--admin-radius);
    background: #fbfcfb;
    padding: 14px;
}

.permission-group h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .page-head-actions {
        grid-template-columns: minmax(0, 1fr) max-content;
        align-items: end;
    }

    .filter-bar {
        grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.45fr) max-content;
        align-items: end;
    }

    .inline-form-grid {
        grid-template-columns: minmax(220px, 1fr) minmax(110px, 0.25fr) minmax(140px, 0.35fr) max-content;
        align-items: end;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-overview {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-section-top {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
        align-items: start;
    }

    .form-grid,
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .permission-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .repeat-row.two-cols {
        grid-template-columns: minmax(120px, 0.4fr) minmax(0, 1fr);
    }

    .repeat-row.three-cols {
        grid-template-columns: minmax(84px, 0.28fr) minmax(180px, 0.72fr) minmax(0, 1fr);
    }
}

@media (min-width: 1100px) {
    .admin-app {
        min-height: 100vh;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 268px;
        height: 100vh;
        min-height: 100vh;
        transform: none;
        overflow-y: auto;
        transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1), padding 200ms ease, width 200ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .admin-main {
        margin-left: 268px;
        transition: margin-left 200ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .admin-close,
    .admin-overlay {
        display: none;
    }

    .admin-menu-button {
        display: inline-grid;
    }

    /* Collapsed Sidebar Rules */
    .sidebar-collapsed .admin-sidebar {
        width: 70px;
        padding: 24px 10px;
        overflow: hidden;
    }

    .sidebar-collapsed .admin-main {
        margin-left: 70px;
    }

    .sidebar-collapsed .admin-sidebar .admin-brand {
        justify-content: center;
    }

    .sidebar-collapsed .admin-sidebar .brand-full {
        display: none;
    }

    .sidebar-collapsed .admin-sidebar .brand-mini {
        display: block;
        font-size: 22px;
        font-weight: 900;
        background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .sidebar-collapsed .admin-sidebar .admin-nav a {
        justify-content: center;
        padding: 10px 0;
    }

    .sidebar-collapsed .admin-sidebar .admin-nav a svg {
        margin-right: 0;
    }

    .sidebar-collapsed .admin-sidebar .admin-nav a span {
        display: none;
    }

    /* CSS Tooltip for Collapsed Sidebar */
    .sidebar-collapsed .admin-sidebar .admin-nav a {
        position: relative;
    }

    .sidebar-collapsed .admin-sidebar .admin-nav a::after {
        content: attr(data-tooltip);
        position: absolute;
        left: 60px;
        top: 50%;
        transform: translateY(-50%) translateX(-8px);
        background: #1e293b;
        color: #f8fafc;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 150ms ease, transform 150ms ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 100;
    }

    .sidebar-collapsed .admin-sidebar .admin-nav a:hover::after {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }

    .admin-content {
        padding-top: 28px;
    }

    .stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .desktop-only {
        display: inline-flex;
    }

    .editor-layout {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
        align-items: start;
    }

    .permission-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .editor-sidebar {
        position: sticky;
        top: 88px;
    }
}

/* User Profile Menu */
.admin-user-menu {
    position: relative;
}

.admin-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--admin-line);
    border-radius: 999px;
    background: var(--admin-surface);
    padding: 6px 14px 6px 6px;
    color: var(--admin-ink);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 150ms ease;
    outline: none;
}

.admin-user-btn:hover {
    border-color: rgba(15, 118, 110, 0.4);
    background: #edf5f3;
}

.admin-user-avatar {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
}

.admin-user-arrow {
    width: 16px;
    height: 16px;
    color: var(--admin-muted);
    transition: transform 150ms ease;
}

.admin-user-menu.is-active .admin-user-arrow {
    transform: rotate(180deg);
}

/* Glassmorphic Dropdown */
.admin-user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 220px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(20, 34, 48, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(20, 34, 48, 0.1), 0 8px 10px -6px rgba(20, 34, 48, 0.1);
    padding: 6px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 180ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 90;
}

.admin-user-menu.is-active .admin-user-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-header {
    padding: 10px 12px 8px;
    display: flex;
    flex-direction: column;
}

.dropdown-header strong {
    font-size: 14px;
    color: var(--admin-ink);
}

.dropdown-header span {
    font-size: 11px;
    color: var(--admin-muted);
    word-break: break-all;
}

.dropdown-divider {
    height: 1px;
    background: rgba(20, 34, 48, 0.06);
    margin: 4px 6px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #354456;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: all 150ms ease;
}

.dropdown-item svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    color: var(--admin-muted);
}

.dropdown-item:hover {
    background: #edf5f3;
    color: var(--admin-primary);
}

.dropdown-item:hover svg {
    color: var(--admin-primary);
}
.dropdown-item.logout-btn:hover {
    background: #fff5f5;
    color: var(--admin-danger);
}

.dropdown-item.logout-btn:hover svg {
    color: var(--admin-danger);
}

/* Segmented Control (iOS Style Tabs) */
.segmented-control {
    display: inline-flex;
    background: rgba(20, 34, 48, 0.05);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
    width: fit-content;
}

.segmented-control .btn {
    border: none;
    min-height: 36px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    background: transparent;
    color: var(--admin-muted);
    transition: all 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

.segmented-control .btn:hover {
    color: var(--admin-ink);
    background: rgba(255, 255, 255, 0.4);
    transform: none;
}

.segmented-control .btn.btn-primary {
    background: var(--admin-surface);
    color: var(--admin-primary);
    box-shadow: 0 1px 3px rgba(20, 34, 48, 0.1), 0 1px 2px rgba(20, 34, 48, 0.06);
}

/* Expandable/Collapsible Drawers */
.toggle-drawer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 300ms cubic-bezier(0.4, 0, 0.2, 1), opacity 300ms ease, margin 300ms ease;
    margin-bottom: 0;
}

.toggle-drawer.is-open {
    max-height: 600px;
    opacity: 1;
    margin-bottom: 20px;
}

/* Modern Status Badges */
.status {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 1px solid transparent;
}

.status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

.status-aktif,
.status-yayinda,
.status-okundu {
    background: #edfafa;
    color: #0d9488;
    border-color: #ccfbf1;
    box-shadow: 0 0 8px rgba(13, 148, 136, 0.1);
}

.status-aktif::before,
.status-yayinda::before,
.status-okundu::before {
    box-shadow: 0 0 6px #0d9488;
}

.status-taslak,
.status-bekliyor,
.status-yeni {
    background: #fffbeb;
    color: #d97706;
    border-color: #fef3c7;
    box-shadow: 0 0 8px rgba(217, 119, 6, 0.1);
}

.status-taslak::before,
.status-bekliyor::before,
.status-yeni::before {
    box-shadow: 0 0 6px #d97706;
}

.status-pasif,
.status-hatali {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fee2e2;
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.1);
}

.status-pasif::before,
.status-hatali::before {
    box-shadow: 0 0 6px #dc2626;
}

/* Premium Media Grid & Cards */
.media-card {
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--admin-line);
    background: var(--admin-surface);
    position: relative;
    display: flex;
    flex-direction: column;
}

.media-card:hover {
    transform: translateY(-4px);
    border-color: #38bdf8;
    box-shadow: 0 12px 20px -8px rgba(20, 34, 48, 0.15);
}

.media-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(20, 34, 48, 0.05);
    background: #edf5f3;
    transition: background 180ms ease;
}

.media-card:hover .media-thumb {
    background: #e0f2fe;
}

.media-thumb img {
    transition: transform 300ms ease;
}

.media-card:hover .media-thumb img {
    transform: scale(1.05);
}

.media-meta {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.media-meta strong {
    font-size: 13px;
    color: var(--admin-ink);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
    word-break: break-all;
}

.media-meta span {
    font-size: 11px;
    color: var(--admin-muted);
}
