/* ===== ADMIN PANEL ===== */
.admin-body{ background:#eef1f5; }

/* GİRİŞ */
.login{ min-height:100vh; display:flex; align-items:center; justify-content:center; background:linear-gradient(120deg,#101826,#1f3a5f); }
.login__box{ background:#fff; padding:40px; border-radius:12px; width:360px; max-width:92vw; box-shadow:0 20px 50px rgba(0,0,0,.3); text-align:center; }
.logo--center{ justify-content:center; margin-bottom:18px; }
.login__box h2{ margin-bottom:22px; font-size:22px; }
.login__box input{ width:100%; padding:13px 15px; border:1px solid var(--border); border-radius:6px; margin-bottom:14px; font-size:15px; }
.login__box .btn{ width:100%; }
.login__err{ color:var(--red); font-size:14px; margin-top:12px; min-height:18px; }
.login__hint{ color:var(--gray); font-size:13px; margin-top:14px; }
.login__hint code, code{ background:#f1f1f4; padding:2px 6px; border-radius:4px; font-family:monospace; }

/* PANEL DÜZENİ */
.admin{ display:flex; min-height:100vh; }
.sidebar{ width:240px; background:#0f1115; color:#cbd0d6; padding:28px 20px; display:flex; flex-direction:column; position:sticky; top:0; height:100vh; }
.sidebar .logo{ margin-bottom:36px; }
.sidebar__nav{ display:flex; flex-direction:column; gap:6px; flex:1; }
.sidebar__nav a{ display:flex; align-items:center; gap:10px; padding:12px 14px; border-radius:8px; color:#cbd0d6; font-size:15px; cursor:pointer; transition:.2s; }
.sidebar__nav a svg{ width:18px; height:18px; flex-shrink:0; }
.sidebar__nav a:hover{ background:rgba(255,255,255,.07); color:#fff; }
.sidebar__nav a.active{ background:var(--red); color:#fff; }
.sidebar__logout{ background:rgba(255,255,255,.08); color:#fff; border:none; padding:12px; border-radius:8px; cursor:pointer; font-size:14px; transition:.2s; }
.sidebar__logout:hover{ background:var(--red); }

.content{ flex:1; padding:32px 38px; }
.content__head{ display:flex; align-items:center; gap:14px; margin-bottom:26px; }
.content__head h1{ font-size:26px; }
.badge{ background:#dbeafe; color:#1e40af; padding:5px 14px; border-radius:20px; font-size:13px; font-weight:600; }

.panel-grid{ display:grid; grid-template-columns:380px 1fr; gap:26px; align-items:start; }

/* FORM */
.form-card,.list-card{ background:#fff; border-radius:12px; padding:26px; box-shadow:0 4px 18px rgba(0,0,0,.05); }
.form-card h3,.list-card h3{ margin-bottom:18px; font-size:18px; }
.form-card label{ display:block; font-size:13px; font-weight:600; color:#444; margin:14px 0 6px; }
.form-card input,.form-card textarea{ width:100%; padding:11px 13px; border:1px solid var(--border); border-radius:6px; font-size:14px; font-family:inherit; }
.form-card textarea{ resize:vertical; }
.form-card .btn{ width:100%; margin-top:20px; }
.form-msg{ margin-top:12px; font-size:14px; min-height:18px; }
.form-msg.ok{ color:#16a34a; }
.form-msg.err{ color:var(--red); }
.preview{ margin-top:10px; }
.preview img{ max-height:140px; border-radius:8px; border:1px solid var(--border); }

/* LİSTE */
.admin-list{ display:flex; flex-direction:column; gap:14px; }
.empty{ color:var(--gray); text-align:center; padding:30px 0; }
.prow{ display:flex; gap:16px; align-items:center; border:1px solid var(--border); border-radius:10px; padding:12px; transition:.2s; }
.prow:hover{ box-shadow:0 6px 16px rgba(0,0,0,.07); }
.prow__img{ width:70px; height:70px; border-radius:8px; object-fit:cover; background:#eef0f3; flex-shrink:0; }
.prow__info{ flex:1; min-width:0; }
.prow__code{ font-size:12px; color:var(--red); font-weight:700; letter-spacing:.3px; }
.prow__name{ font-weight:600; font-size:15px; margin:2px 0; }
.prow__price{ color:#16a34a; font-weight:600; font-size:14px; }
.prow__feat{ color:var(--gray); font-size:12px; }
.prow__del{ background:#fee2e2; color:#b91c1c; border:none; padding:9px 14px; border-radius:7px; cursor:pointer; font-size:13px; font-weight:600; transition:.2s; }
.prow__del:hover{ background:#b91c1c; color:#fff; }

@media(max-width:900px){
  .panel-grid{ grid-template-columns:1fr; }
  .admin{ flex-direction:column; }
  .sidebar{ width:100%; height:auto; position:static; flex-direction:row; align-items:center; flex-wrap:wrap; gap:10px; }
  .sidebar .logo{ margin:0; }
  .sidebar__nav{ flex-direction:row; flex-wrap:wrap; }
  .content{ padding:22px 18px; }
}
