/* Kurye Takip - cPanel PHP sürümü stilleri */
:root {
  --brand: #0f172a;
  --primary: #f97316;
  --primary-hover: #ea580c;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --white: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, sans-serif; color: var(--slate-900); background: var(--slate-50); line-height: 1.5; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--slate-200); background: rgba(255,255,255,.95); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: .5rem; font-size: 1.25rem; font-weight: 700; color: var(--brand); }
.logo-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: var(--white); display: flex; align-items: center; justify-content: center; }
.nav { display: flex; align-items: center; gap: .5rem; }
.nav a { padding: .5rem .75rem; border-radius: 8px; color: var(--slate-600); font-weight: 500; }
.nav a:hover { background: var(--slate-100); color: var(--slate-900); text-decoration: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; padding: .625rem 1.25rem; font-size: .875rem; font-weight: 600; cursor: pointer; border: none; transition: all .2s; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-hover); text-decoration: none; }
.btn-secondary { background: var(--white); color: var(--slate-700); border: 2px solid var(--slate-200); }
.btn-secondary:hover { border-color: var(--slate-300); background: var(--slate-50); text-decoration: none; }

.hero { background: var(--brand); color: var(--white); padding: 4rem 1.5rem 5rem; text-align: center; }
.hero h1 { font-size: 2.25rem; font-weight: 800; margin: 0; }
.hero p { margin: 1rem auto 0; max-width: 36rem; color: rgba(255,255,255,.8); font-size: 1.125rem; }
.hero-btns { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.hero-btns a { padding: .875rem 1.5rem; border-radius: 12px; font-weight: 600; }
.hero-btns .btn-cta { background: var(--primary); color: var(--white); }
.hero-btns .btn-outline { border: 2px solid rgba(255,255,255,.3); color: var(--white); }
.hero-btns a:hover { text-decoration: none; opacity: .95; }

.section { padding: 3rem 1rem; }
.section-title { text-align: center; font-size: 1.5rem; font-weight: 700; color: var(--brand); margin-bottom: .5rem; }
.section-desc { text-align: center; color: var(--slate-600); max-width: 32rem; margin: 0 auto 2rem; }
.card { background: var(--white); border: 1px solid var(--slate-200); border-radius: 16px; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.card-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; max-width: 1200px; margin: 0 auto; }
.feature-card { text-align: center; padding: 2rem; border-radius: 16px; border: 1px solid var(--slate-200); background: var(--white); }
.feature-icon { width: 56px; height: 56px; margin: 0 auto .75rem; border-radius: 16px; background: #fef3c7; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.feature-card h3 { font-size: 1.125rem; margin: 0 0 .5rem; }
.feature-card p { margin: 0; font-size: .875rem; color: var(--slate-600); }

.input { width: 100%; padding: .625rem 1rem; border: 1px solid var(--slate-200); border-radius: 12px; font-size: .875rem; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249,115,22,.15); }
label { display: block; font-size: .875rem; font-weight: 600; color: var(--slate-700); margin-bottom: .25rem; }
.form-group { margin-bottom: 1rem; }

.footer { background: var(--brand); color: var(--slate-400); padding: 3rem 1rem; text-align: center; margin-top: 3rem; }
.footer p { margin: 0; font-size: .875rem; }
.footer a { color: var(--slate-400); }
.footer-links { margin-top: 1rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

.alert { padding: .75rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-size: .875rem; }
.alert-error { background: #fef2f2; color: #b91c1c; }
.alert-success { background: #f0fdf4; color: #166534; }
.alert-warning { background: #fffbeb; color: #b45309; }

/* ========== PANEL (Admin / Müşteri / Kurye) ========== */
.panel-wrap { min-height: 100vh; background: var(--slate-50); display: flex; flex-direction: column; }
.panel-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--slate-200); background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.panel-header-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; padding: 0 1rem; max-width: 1400px; margin: 0 auto; }
.panel-menu-btn { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: none; background: none; border-radius: 12px; color: var(--slate-600); cursor: pointer; }
.panel-menu-btn:hover { background: var(--slate-100); color: var(--slate-900); }
.panel-logo { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--brand); text-decoration: none; }
.panel-logo:hover { text-decoration: none; color: var(--brand); }
.panel-logo-icon { width: 36px; height: 36px; border-radius: 12px; background: var(--brand); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.panel-user { display: flex; align-items: center; gap: .5rem; }
.panel-user-name { font-size: .875rem; font-weight: 500; color: var(--slate-600); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-logout { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: none; background: none; border-radius: 12px; color: var(--slate-500); cursor: pointer; text-decoration: none; }
.panel-logout:hover { background: var(--slate-100); color: var(--slate-700); }

.panel-body { display: flex; flex: 1; }
.panel-sidebar { width: 16rem; flex-shrink: 0; border-right: 1px solid var(--slate-200); background: var(--white); padding: 1rem 0; }
.panel-sidebar.hide { display: none; }
.panel-sidebar nav { display: flex; flex-direction: column; gap: 2px; padding: 0 .75rem; }
.panel-sidebar a { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-radius: 12px; font-size: .875rem; font-weight: 600; color: var(--slate-600); transition: background .15s, color .15s; }
.panel-sidebar a:hover { background: var(--slate-100); color: var(--slate-900); text-decoration: none; }
.panel-sidebar a.active { background: #fff7ed; color: var(--primary-hover); }
.panel-sidebar .nav-icon { width: 1.25rem; height: 1.25rem; opacity: .9; }
.panel-main { flex: 1; padding: 1.5rem; overflow-x: auto; }
.panel-main a { color: var(--primary); }
.panel-main a:hover { text-decoration: underline; }

.page-title { font-size: 1.25rem; font-weight: 700; color: var(--brand); margin: 0 0 .5rem; }
.page-desc { font-size: .875rem; color: var(--slate-600); margin: 0 0 1.5rem; }

/* Dashboard kartları */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.dash-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: 16px; padding: 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,.05); transition: box-shadow .2s; text-decoration: none; color: inherit; display: block; }
.dash-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); text-decoration: none; color: inherit; }
.dash-card-label { font-size: .875rem; font-weight: 500; color: var(--slate-500); margin-bottom: .25rem; }
.dash-card-value { font-size: 1.5rem; font-weight: 700; color: var(--brand); }
.dash-card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-top: .5rem; float: right; }
.dash-card-icon.primary { background: #fff7ed; color: var(--primary); }
.dash-card-icon.green { background: #f0fdf4; color: #16a34a; }
.dash-card-icon.amber { background: #fffbeb; color: #d97706; }
.dash-card-icon.slate { background: var(--slate-100); color: var(--slate-600); }

/* Tablo */
.table-wrap { overflow-x: auto; border: 1px solid var(--slate-200); border-radius: 16px; background: var(--white); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table-wrap th { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--slate-200); font-weight: 600; color: var(--slate-600); }
.table-wrap td { padding: .75rem 1rem; border-bottom: 1px solid var(--slate-100); color: var(--slate-700); }
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tr:hover td { background: var(--slate-50); }
.table-wrap .mono { font-family: ui-monospace, monospace; }

/* Badge */
.badge { display: inline-flex; align-items: center; padding: .25rem .5rem; border-radius: 9999px; font-size: .75rem; font-weight: 600; }
.badge-primary { background: #fff7ed; color: var(--primary-hover); }
.badge-success { background: #f0fdf4; color: #166534; }
.badge-warning { background: #fffbeb; color: #b45309; }
.badge-danger { background: #fef2f2; color: #b91c1c; }
.badge-slate { background: var(--slate-100); color: var(--slate-700); }

/* Buton boyutları */
.btn-sm { padding: .375rem .75rem; font-size: .8125rem; border-radius: 10px; }
.btn-danger { background: #dc2626; color: var(--white); }
.btn-danger:hover { background: #b91c1c; }

/* Form / kart sayfa */
.panel-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: 16px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.panel-card h2 { font-size: 1.125rem; font-weight: 600; margin: 0 0 1rem; color: var(--brand); }

/* Boş durum */
.empty-state { text-align: center; padding: 2rem; color: var(--slate-500); font-size: .875rem; }

@media (max-width: 767px) {
  .panel-sidebar { position: fixed; inset: 0; top: 4rem; z-index: 35; transform: translateX(-100%); transition: transform .2s; }
  .panel-sidebar.open { transform: translateX(0); }
  .panel-main { padding: 1rem; }
  .dash-grid { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
  .panel-sidebar.hide { display: block; }
}

@media (min-width: 768px) {
  .hero h1 { font-size: 3rem; }
}
