body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f4f6;
    color: #111827;
}
html, body { max-width: 100%; overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
a { color: #1d4ed8; text-decoration: none; }
a:hover { color: #1e40af; text-decoration: underline; }
.admin-topbar { height: 58px; background: #111827; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; box-sizing: border-box; width: 100%; max-width: 100%; overflow: hidden; position: sticky; top: 0; z-index: 1100; }
.admin-topbar__left { display:flex; align-items:center; gap:10px; min-width:0; }
.admin-topbar__title { font-size: 18px; font-weight: 700; }
.admin-topbar__right { min-width: 0; display:flex; align-items:center; }
.admin-topbar__right a { color: #e5e7eb; margin-left: 14px; }
.admin-topbar__right a:hover { color: #ffffff; text-decoration: none; }
.admin-shell { display: flex; min-height: calc(100vh - 58px); }
.admin-sidebar { width: 240px; background: #1f2937; padding: 18px 0; box-sizing: border-box; }
.admin-sidebar__mobile-head { display:none; }
.admin-mobile-menu-toggle {
    display: none;
    border: 1px solid #374151;
    background: #111827;
    color: #fff;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.admin-mobile-menu-close {
    border: 1px solid #374151;
    background: transparent;
    color: #e5e7eb;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.admin-mobile-backdrop { display:none; }
.admin-sidebar__title { color: #9ca3af; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding: 0 18px 10px; }
.admin-sidebar a { display: block; color: #e5e7eb; padding: 11px 18px; text-decoration: none; border-left: 3px solid transparent; }
.admin-sidebar a:hover, .admin-sidebar a.is-active { background: #111827; border-left-color: #3b82f6; color: #ffffff; text-decoration: none; }
.admin-content { flex: 1; min-width: 0; width: 100%; max-width: 100%; overflow-x: hidden; padding: 24px; box-sizing: border-box; }
.admin-content > * { max-width: 100%; }
.admin-pagehead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.admin-pagehead h1 { margin: 0; font-size: 24px; }
.card { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 18px; box-sizing: border-box; margin-bottom: 18px; }
.btn { display: inline-block; padding: 10px 16px; border-radius: 8px; border: 0; cursor: pointer; text-decoration: none !important; font-size: 14px; line-height: 1.2; transition: background-color .15s ease, color .15s ease, opacity .15s ease; }
.btn:hover { text-decoration: none !important; }
.btn-primary { background: #2563eb; color: #ffffff !important; }
.btn-primary:hover { background: #1d4ed8; color: #ffffff !important; }
.btn-secondary { background: #e5e7eb; color: #111827 !important; }
.btn-secondary:hover { background: #d1d5db; color: #111827 !important; }
.btn-danger { background: #dc2626; color: #ffffff !important; }
.btn-danger:hover { background: #b91c1c; color: #ffffff !important; }
.btn-warning { background: #f59e0b; color: #111827 !important; }
.btn-warning:hover { background: #d97706; color: #ffffff !important; }
.btn-sm { padding: 7px 10px; font-size: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: #ffffff; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
.table th { background: #f9fafb; font-size: 13px; color: #374151; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-muted { background: #e5e7eb; color: #374151; }
.form-row { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 11px 12px; border: 1px solid #d1d5db; border-radius: 8px; box-sizing: border-box; font-size: 14px; background: #fff; }
.form-textarea { min-height: 120px; resize: vertical; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.notice { padding: 12px 14px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; }
.notice-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.notice-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.pill { display: inline-block; padding: 8px 12px; border-radius: 999px; background: #e5e7eb; color: #111827; text-decoration: none !important; }
.pill.is-active { background: #2563eb; color: #fff !important; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filter-bar__input { flex: 1 1 320px; }
.filter-bar__select { flex: 0 0 220px; }
.stats-list { display: grid; gap: 12px; font-size: 15px; }
.editor-shell { border: 1px solid #dbe4f0; border-radius: 10px; background: #ffffff; overflow: hidden; }
.editor-shell:focus-within { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.editor-shell__toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px 12px; background: #f8fafc; border-bottom: 1px solid #e5e7eb; }
.editor-shell__label { font-size: 13px; font-weight: 700; color: #334155; }
.editor-shell__hint { font-size: 12px; color: #64748b; }
.editor-shell .form-textarea { border: 0; border-radius: 0; min-height: 160px; resize: vertical; }
.editor-shell .form-textarea:focus { outline: none; }
.editor-shell--compact .form-textarea { min-height: 120px; }
.editor-shell--tall .form-textarea { min-height: 260px; }
.search-select { display: grid; gap: 8px; }
.search-select__input { background: #f8fafc; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
@media (max-width: 1024px) {
    .admin-topbar {
        min-height: 58px;
        height: auto;
        padding: 8px 12px;
        gap: 8px;
    }
    .admin-topbar__left { flex: 1 1 auto; min-width: 0; }
    .admin-mobile-menu-toggle { display:inline-flex; align-items:center; justify-content:center; }
    .admin-topbar__title { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .admin-topbar__right {
        display:flex;
        align-items:center;
        justify-content:flex-end;
        gap:8px;
        min-width:0;
        max-width: 62%;
        overflow-x:auto;
        overflow-y:hidden;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:none;
    }
    .admin-topbar__right::-webkit-scrollbar { display:none; }
    .admin-topbar__right a { margin-left:0; font-size: 12px; flex:0 0 auto; white-space:nowrap; }
    .admin-shell { min-width: 0; width: 100%; overflow-x: hidden; }
    .admin-content { padding: 16px; min-width: 0; width: 100%; max-width: 100%; overflow-x: hidden; }
    .admin-mobile-backdrop {
        position: fixed;
        inset: 58px 0 0 0;
        background: rgba(15, 23, 42, 0.5);
        z-index: 30;
    }
    .admin-sidebar {
        position: fixed;
        top: 58px;
        left: 0;
        bottom: 0;
        width: min(88vw, 290px);
        z-index: 40;
        transform: translateX(-105%);
        transition: transform .2s ease;
        overflow-y: auto;
        padding-top: 0;
    }
    .admin-sidebar__mobile-head {
        display:flex;
        align-items:center;
        justify-content:space-between;
        padding: 12px 14px;
        color: #e5e7eb;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
    body.admin-mobile-menu-open .admin-sidebar { transform: translateX(0); }
    body.admin-mobile-menu-open .admin-mobile-backdrop { display:block; }
}

/* Geçici mobil sığdırma modu: panel tasarım revizyonuna kadar */
@media (max-width: 1024px) {
    body.panel-mobile-fit .admin-topbar {
        padding: 6px 8px !important;
    }
    body.panel-mobile-fit .admin-topbar__title {
        font-size: 14px !important;
    }
    body.panel-mobile-fit .admin-topbar__right {
        max-width: 68% !important;
        gap: 6px !important;
    }
    body.panel-mobile-fit .admin-topbar__right a,
    body.panel-mobile-fit .admin-topbar__right .btn {
        font-size: 11px !important;
        padding: 6px 8px !important;
    }
    body.panel-mobile-fit .admin-content {
        padding: 12px;
    }
    body.panel-mobile-fit .card {
        padding: 12px;
        border-radius: 8px;
    }
    body.panel-mobile-fit .table th,
    body.panel-mobile-fit .table td {
        padding: 9px 10px;
        font-size: 12px;
    }
    body.panel-mobile-fit .form-input,
    body.panel-mobile-fit .form-select,
    body.panel-mobile-fit .form-textarea {
        font-size: 13px;
        padding: 10px 11px;
    }
    body.panel-mobile-fit .filter-bar,
    body.panel-mobile-fit .actions,
    body.panel-mobile-fit .form-actions {
        gap: 8px;
    }
    body.panel-mobile-fit .btn {
        font-size: 12px;
        padding: 8px 11px;
    }
}
