/* What WordPress admin used to provide around the plugin's own admin.css, plus the platform's top bar. */
@font-face { font-family: Vazirmatn; src: url("fonts/vazirmatn.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: dashicons; src: url("fonts/dashicons.woff2") format("woff2"); font-display: block; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Vazirmatn, Tahoma, system-ui, sans-serif; font-size: 14px; line-height: 1.6; color: #334155; background: #f4f6fa; }
a { color: #1972f5; }
input, select, textarea, button { font: inherit; }
input[type="text"], input[type="email"], input[type="url"], input[type="number"], input[type="password"], input[type="search"], input[type="date"], select, textarea {
	min-height: 38px; padding: 7px 11px; border: 1px solid #d5dbe5; border-radius: 10px; background: #fff; color: #0f172a; max-width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid #1972f5; outline-offset: 1px; }
input[type="color"] { width: 46px; height: 38px; padding: 3px; border: 1px solid #d5dbe5; border-radius: 10px; background: #fff; cursor: pointer; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: #eef2f8; padding: 1px 5px; border-radius: 5px; }
h1, h2, h3 { color: #0f172a; margin: 0; font-weight: 700; }
.dashicons { display: inline-block; width: 20px; height: 20px; font-size: 20px; line-height: 1; vertical-align: top; text-align: center; }

.wrap.drbot-admin { max-width: 1320px; margin: 0 auto; padding: 20px 16px 60px; }
.drs-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px; min-height: 56px; padding: 6px 20px; background: #fff; border-bottom: 1px solid #e5e9f0; flex-wrap: wrap; }
.drs-brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; color: #0f172a; text-decoration: none; font-size: 15px; }
.drs-brand .dashicons { color: #1972f5; }
.drs-nav { display: flex; gap: 4px; flex: 1 1 auto; flex-wrap: wrap; }
.drs-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: 10px; color: #64748b; text-decoration: none; font-weight: 600; }
.drs-nav a .dashicons { font-size: 17px; width: 17px; height: 17px; }
.drs-nav a:hover { background: #f4f6fa; color: #0f172a; }
.drs-nav a.is-active { background: rgba(25, 114, 245, .1); color: #1972f5; }
.drs-user { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.drs-user a { color: #64748b; text-decoration: none; }

.drs-login { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 16px; background: radial-gradient(1200px 600px at 85% -10%, rgba(25, 114, 245, .18), transparent 70%), #eef2f8; }
.drs-login main { width: min(420px, 100%); }
.drs-form { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.drs-form .drb-mini input, .drs-form .drb-mini textarea, .drs-form .drb-mini select { width: 100%; }
.drs-form > button { align-self: flex-start; }
.drs-msg:empty { display: none; }
.drs-msg { padding: 9px 12px; border-radius: 10px; background: #fef2f2; color: #b91c1c; }
.drs-msg.is-ok { background: #f0fdf4; color: #15803d; }

.drs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.drs-kv { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: #fff; border: 1px solid #e5e9f0; border-radius: 14px; }
.drs-kv small { color: #64748b; }
.drs-kv b { font-size: 18px; color: #0f172a; }
.drs-neg { color: #e11d48 !important; }
.drs-pos { color: #15803d !important; }
.drs-mt { margin-top: 16px; }
.drs-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.drs-secret { padding: 12px 14px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.drs-secret code { font-size: 14px; background: #fff; user-select: all; }
@media (max-width: 640px) {
	.drs-top { padding: 6px 12px; gap: 8px; }
	.drs-user a { display: none; }
}
