/* BilzatEdit Admin — same soft UI as apps/web (ref-home.png) */

:root {
  --bg-top: #d9ecff;
  --bg-mid: #eef6ff;
  --bg-bot: #f7fbff;
  --card: #ffffff;
  --ink: #1f2430;
  --ink-2: #5c6573;
  --muted: #9aa3af;
  --line: #e8eef5;
  --blue: #2f9bff;
  --blue-deep: #1e88e5;
  --shadow: 0 8px 24px rgba(47, 110, 180, 0.08);
  --shadow-sm: 0 4px 14px rgba(47, 110, 180, 0.06);
  --radius: 22px;
  --radius-sm: 16px;
  --font: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Noto Naskh Arabic",
    system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 20% -10%, #b7dbff 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-top), var(--bg-mid) 40%, var(--bg-bot));
  -webkit-font-smoothing: antialiased;
}

body.admin-layout {
  display: flex;
}

body.admin-login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.login-box {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.login-box h1 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 22px;
  color: var(--ink);
  font-weight: 800;
}

.login-box .sub {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 22px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 15px;
  background: #f8fbff;
  outline: none;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #8ec5ff;
  box-shadow: 0 0 0 3px rgba(47, 155, 255, 0.15);
}

.login-btn,
.btn-primary,
button.primary {
  width: 100%;
  margin-top: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #4eb0ff, #2f9bff);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(47, 155, 255, 0.35);
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.sms-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sms-send {
  flex: 0 0 auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.msg {
  margin-top: 14px;
  color: #dc2626;
  font-size: 14px;
  text-align: center;
  min-height: 1.2em;
}

.main-content {
  flex: 1;
  margin-left: 240px;
  padding: 24px 30px;
  min-height: 100vh;
}

.placeholder-panel,
.card,
.panel,
.stat-card,
.content-card,
.table-wrap,
.settings-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: none;
}

.placeholder-panel h3,
.card h3,
.panel h3 {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 800;
}

.placeholder-panel p {
  color: var(--muted);
}

.page-title,
h1.page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
}

.stats-grid,
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  padding: 18px;
}

.stat-card .label {
  color: var(--muted);
  font-size: 13px;
}

.stat-card .value {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue-deep);
  margin-top: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.btn,
button {
  font-family: inherit;
}

.btn-ghost,
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-weight: 600;
}

.tag,
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f4ff;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .main-content {
    margin-left: 0;
    padding: 16px;
  }
}

/* sinak Uyghur */
@font-face {
  font-family: "alkatip tor";
  src: url("../font/ALKATIPBasmaTom.ttf") format("truetype");
  font-display: swap;
}
body, .uy {
  font-family: "alkatip tor", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}
.uy { direction: rtl; line-height: 1.7; }
