/* ==================================================================
   চাকরি ডট কম — অ্যাডমিন প্যানেল স্টাইল
   ================================================================== */

:root {
    --a-green: #16a34a;
    --a-green-d: #15803d;
    --a-dark: #0f172a;
    --a-darker: #0b1220;
    --a-line: #e2e8f0;
    --a-muted: #64748b;
    --a-slate: #475569;
    --a-radius: 12px;
    --a-font: 'Hind Siliguri', system-ui, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0; font-family: var(--a-font); background: #f1f5f9; color: var(--a-dark);
    font-size: 15.5px; line-height: 1.6;
}

a { color: var(--a-green-d); text-decoration: none; }
a:hover { color: var(--a-green); }

/* লেআউট */
.admin-wrap { display: flex; min-height: 100vh; min-height: 100dvh; }

.admin-side {
    width: 250px; flex-shrink: 0; background: var(--a-darker); color: #cbd5e1;
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: auto;
}

.admin-brand {
    display: flex; align-items: center; gap: 10px; padding: 18px 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.admin-brand .mark {
    width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--a-green), #0d9488);
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 19px;
}

.admin-brand b { color: #fff; font-size: 17px; display: block; line-height: 1.25; }
.admin-brand span { color: #64748b; font-size: 12px; }

.admin-nav { padding: 12px 10px; display: flex; flex-direction: column; gap: 3px; flex: 1; }

.admin-nav a {
    display: flex; align-items: center; gap: 11px; padding: 10px 13px;
    border-radius: 10px; color: #94a3b8; font-weight: 600; font-size: 14.5px;
    transition: all .16s;
}

.admin-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav a.is-active { background: var(--a-green); color: #fff; }
.admin-nav .ic { font-size: 17px; width: 21px; text-align: center; }
.admin-nav .badge { margin-left: auto; background: rgba(255,255,255,.14); color: #e2e8f0; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; }
.admin-nav a.is-active .badge { background: rgba(255,255,255,.25); }

.admin-side-foot { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #64748b; }
.admin-side-foot a { color: #94a3b8; }
.admin-side-foot a:hover { color: #fff; }

.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.admin-topbar {
    background: #fff; border-bottom: 1px solid var(--a-line);
    padding: 13px 26px; display: flex; align-items: center; gap: 14px;
    position: sticky; top: 0; z-index: 40;
}

.admin-topbar h1 { font-size: 19px; margin: 0; }

.admin-topbar .spacer { flex: 1; }

.admin-topbar .who { font-size: 14px; color: var(--a-muted); }
.admin-topbar .who b { color: var(--a-dark); }

.admin-body { padding: 24px 26px 60px; max-width: 1240px; width: 100%; }

.side-toggle { display: none; background: #f1f5f9; border: 1px solid var(--a-line); border-radius: 9px; padding: 7px 11px; cursor: pointer; font-size: 16px; }

/* কার্ড */
.a-card {
    background: #fff; border: 1px solid var(--a-line); border-radius: var(--a-radius);
    padding: 20px; box-shadow: 0 3px 14px rgba(15,23,42,.04); margin-bottom: 20px;
}

.a-card h2 { font-size: 17.5px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }

.a-grid { display: grid; gap: 14px; }
.a-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.a-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.a-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.stat-card {
    background: #fff; border: 1px solid var(--a-line); border-radius: var(--a-radius);
    padding: 16px 17px; display: flex; flex-direction: column; gap: 2px;
    box-shadow: 0 3px 14px rgba(15,23,42,.04); border-top: 4px solid var(--a-green);
}

.stat-card b { font-size: 26px; line-height: 1.2; }
.stat-card span { color: var(--a-muted); font-size: 13.5px; font-weight: 600; }
.stat-card.blue { border-top-color: #2563eb; }
.stat-card.amber { border-top-color: #d97706; }
.stat-card.violet { border-top-color: #7c3aed; }
.stat-card.red { border-top-color: #dc2626; }
.stat-card.teal { border-top-color: #0d9488; }

/* টেবিল */
.table-wrap { overflow-x: auto; }

table.a-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }

table.a-table th {
    text-align: left; padding: 10px 12px; background: #f8fafc;
    border-bottom: 2px solid var(--a-line); font-size: 13px; color: var(--a-slate);
    white-space: nowrap;
}

table.a-table td { padding: 10px 12px; border-bottom: 1px solid var(--a-line); vertical-align: middle; }
table.a-table tr:hover td { background: #f8fafc; }
table.a-table .t-title { font-weight: 600; max-width: 380px; }
table.a-table .t-title a { color: var(--a-dark); }
table.a-table .t-title a:hover { color: var(--a-green-d); }

/* কী–ভ্যালু টেবিল (আবেদনকারীর প্রোফাইল) */
table.a-table.kv th {
    width: 150px; background: #fbfdff; border-bottom: 1px solid var(--a-line);
    font-size: 13px; font-weight: 700; vertical-align: top;
}
table.a-table.kv tr:hover td { background: transparent; }
table.a-table.kv td { vertical-align: top; }

/* ব্যাজ */
.a-badge {
    display: inline-flex; align-items: center; gap: 5px;
    border-radius: 999px; padding: 2px 11px; font-size: 12.5px; font-weight: 700;
}

.a-badge.ok     { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.a-badge.off    { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
.a-badge.hot    { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.a-badge.new    { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.a-badge.warn   { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }

/* বাটন */
.a-btn {
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
    background: var(--a-green); color: #fff; border: none; border-radius: 9px;
    padding: 9px 16px; font-family: inherit; font-size: 14px; font-weight: 700;
    transition: all .16s;
}

.a-btn:hover { background: var(--a-green-d); color: #fff; }
.a-btn.alt { background: #fff; color: var(--a-slate); border: 1.5px solid var(--a-line); }
.a-btn.alt:hover { border-color: var(--a-muted); color: var(--a-dark); background: #f8fafc; }
.a-btn.danger { background: #dc2626; }
.a-btn.danger:hover { background: #b91c1c; }
.a-btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }

.a-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ফর্ম */
.a-form .field { margin-bottom: 15px; }
.a-form label { display: block; font-size: 14px; font-weight: 700; color: var(--a-slate); margin-bottom: 6px; }
.a-form .req { color: #dc2626; }

.a-form input[type="text"], .a-form input[type="email"], .a-form input[type="url"],
.a-form input[type="password"], .a-form input[type="number"], .a-form input[type="date"],
.a-form input[type="datetime-local"], .a-form input[type="file"], .a-form select, .a-form textarea {
    width: 100%; border: 1.5px solid var(--a-line); border-radius: 10px;
    padding: 9px 12px; font-family: inherit; font-size: 14.5px; color: var(--a-dark);
    outline: none; background: #fff; transition: border-color .15s, box-shadow .15s;
}

.a-form textarea { min-height: 130px; resize: vertical; }
.a-form textarea.tall { min-height: 240px; }
.a-form .hint { font-size: 12.5px; color: var(--a-muted); margin-top: 4px; }

.a-form input:focus, .a-form select:focus, .a-form textarea:focus {
    border-color: var(--a-green); box-shadow: 0 0 0 3px rgba(22,163,74,.12);
}

.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.fgrid .full { grid-column: 1 / -1; }

.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.check-item {
    display: flex; align-items: center; gap: 8px; padding: 8px 11px;
    border: 1.5px solid var(--a-line); border-radius: 9px; font-size: 14px;
    cursor: pointer; transition: all .14s;
}

.check-item:hover { border-color: var(--a-green); }
.check-item input { accent-color: var(--a-green); width: 16px; height: 16px; }

.check-item.checked { border-color: var(--a-green); background: #f0fdf4; }

.a-submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--a-green); color: #fff; border: none; cursor: pointer;
    border-radius: 10px; padding: 11px 24px; font-family: inherit; font-size: 15px; font-weight: 700;
    transition: all .16s;
}

.a-submit:hover { background: var(--a-green-d); }

/* ফ্ল্যাশ */
.a-flash { border-radius: 11px; padding: 12px 16px; font-weight: 600; margin-bottom: 18px; font-size: 14.5px; }
.a-flash.ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.a-flash.err { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

/* লগইন পেজ */
.login-body { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, #0f7a3d, #16a34a 45%, #0d9488); padding: 20px; }

.login-card {
    background: #fff; border-radius: 18px; padding: 36px 32px; width: min(430px, 100%);
    box-shadow: 0 30px 70px rgba(4,47,25,.4);
}

.login-card .logo { text-align: center; margin-bottom: 20px; }
.login-card .logo .mark {
    width: 60px; height: 60px; border-radius: 17px; margin: 0 auto 10px;
    background: linear-gradient(135deg, var(--a-green), #0d9488); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700;
}
.login-card h1 { font-size: 22px; margin: 0 0 3px; text-align: center; }
.login-card .sub { text-align: center; color: var(--a-muted); font-size: 14px; margin: 0 0 22px; }

/* ছোট স্ক্রিন */
@media (max-width: 980px) {
    .admin-side {
        position: fixed; left: 0; top: 0; bottom: 0; z-index: 90;
        transform: translateX(-100%); transition: transform .22s ease;
        height: 100vh; height: 100dvh; width: min(86vw, 270px);
    }
    .admin-side.is-open { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.4); }
    .side-toggle { display: inline-flex; }
    .a-grid.cols-4, .a-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .admin-body { padding: 16px 14px 50px; }
    .admin-topbar { padding: 11px 14px; }
    .a-grid.cols-4, .a-grid.cols-3, .a-grid.cols-2, .fgrid, .check-grid { grid-template-columns: 1fr; }
}

/* ==================================================================
   রেসপনসিভ — ট্যাবলেট ও ফোন (২০২৬)
   ================================================================== */

@media (max-width: 768px) {
    .admin-topbar { gap: 10px; }
    .admin-topbar h1 { font-size: 16.5px; }
    .admin-topbar .who { font-size: 13px; }

    .admin-body { padding: 18px 15px 55px; }

    .a-card { padding: 16px 15px; border-radius: 13px; }
    .a-card h2 { font-size: 16.5px; }

    /* iOS-এ ফোকাসে জুম ঠেকাতে ১৬px */
    .a-form input[type="text"], .a-form input[type="email"], .a-form input[type="url"],
    .a-form input[type="password"], .a-form input[type="number"], .a-form input[type="date"],
    .a-form input[type="datetime-local"], .a-form input[type="file"], .a-form select, .a-form textarea {
        font-size: 16px;
    }

    .a-table th, .a-table td { padding: 10px 10px; font-size: 13.5px; }
    .check-grid { grid-template-columns: 1fr 1fr; }
    .fgrid { grid-template-columns: 1fr; gap: 12px; }

    .login-card { padding: 28px 22px; }
}

@media (max-width: 480px) {
    .admin-topbar .who { display: none; }
    .admin-topbar h1 { font-size: 15.5px; }
    .check-grid { grid-template-columns: 1fr; }
    .stat-card b { font-size: 23px; }
    .a-submit { width: 100%; }
    .a-actions .a-btn { flex: 1 1 auto; justify-content: center; }

    .login-body { padding: 14px; }
    .login-card { padding: 24px 18px; border-radius: 15px; }
    .login-card h1 { font-size: 19.5px; }
    .login-card .logo .mark { width: 52px; height: 52px; font-size: 24px; border-radius: 14px; }
}
