* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'SolaimanLipi', 'Kalpurush', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
}

a { text-decoration: none; color: inherit; }

/* ---------------- Top nav ---------------- */
.topnav {
    background: #1e7e59;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.topnav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.brand { font-size: 19px; font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nav-links a { font-size: 14px; font-weight: 600; opacity: .95; }
.nav-links a:hover { opacity: 1; text-decoration: underline; }
.nav-user { font-size: 14px; opacity: .9; }
.btn-nav {
    background: #fff; color: #1e7e59 !important; padding: 7px 14px; border-radius: 6px; font-weight: 700 !important;
}
.btn-nav-outline {
    border: 1px solid rgba(255,255,255,.6); padding: 6px 12px; border-radius: 6px;
}

/* ---------------- Layout ---------------- */
.page-wrap { max-width: 1100px; margin: 26px auto; padding: 0 20px 40px; min-height: 60vh; }
.card {
    background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 4px 15px rgba(0,0,0,.06);
    margin-bottom: 22px;
}
.card h1, .card h2 { color: #1e7e59; margin-bottom: 14px; }
.header-banner { text-align: center; padding-bottom: 18px; border-bottom: 2px solid #eef2f5; margin-bottom: 22px; }
.header-banner h1 { color: #1e7e59; font-size: 26px; margin-bottom: 8px; }
.header-banner p { color: #666; font-size: 15px; }

/* ---------------- Alerts ---------------- */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-weight: 600; font-size: 14px; }
.alert-success { background: #e6f6ee; color: #1e7e59; border: 1px solid #b7e4cd; }
.alert-error { background: #fdecea; color: #d96251; border: 1px solid #f6c6bf; }
.alert-info { background: #eaf3fb; color: #1d4ed8; border: 1px solid #bcd9f6; }

/* ---------------- Forms ---------------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; color: #444; }
.form-control {
    width: 100%; padding: 11px 12px; border: 1px solid #ccd3da; border-radius: 8px; font-size: 15px; background: #fff;
}
.form-control:focus { outline: none; border-color: #1e7e59; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 12.5px; color: #888; margin-top: 4px; }
.form-narrow { max-width: 440px; margin: 0 auto; }

.btn {
    display: inline-block; padding: 11px 22px; border: none; border-radius: 8px; font-weight: 700;
    font-size: 15px; cursor: pointer; transition: .15s; text-align: center;
}
.btn-primary { background: #1e7e59; color: #fff; }
.btn-primary:hover { background: #15583e; }
.btn-secondary { background: #3b82f6; color: #fff; }
.btn-secondary:hover { background: #1d4ed8; }
.btn-danger { background: #d96251; color: #fff; }
.btn-danger:hover { background: #b84534; }
.btn-outline { background: #fff; color: #1e7e59; border: 2px solid #1e7e59; }
.btn-outline:hover { background: #f0f9f4; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 6px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------------- Skill grid (profession list) ---------------- */
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.skill-card {
    background: #f8faf9; border: 2px solid #1e7e59; padding: 18px; border-radius: 10px;
    display: flex; flex-direction: column; justify-content: space-between; transition: .2s;
}
.skill-card:hover { border-color: #14593e; box-shadow: 0 4px 12px rgba(30,126,89,.18); transform: translateY(-2px); }
.skill-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; }
.skill-title { font-size: 15.5px; font-weight: 700; color: #1e7e59; }
.skill-badge { font-size: 12px; background: #eef7f2; color: #1e7e59; padding: 4px 8px; border-radius: 4px; font-weight: 600; white-space: nowrap; }
.test-type-btns { display: flex; gap: 10px; margin-top: 10px; }
.test-btn { flex: 1; padding: 9px 0; border: none; border-radius: 6px; font-size: 13.5px; font-weight: bold; cursor: pointer; text-align: center; }
.btn-computer { background: #1e7e59; color: #fff; }
.btn-computer:hover { background: #15583e; }
.btn-practical { background: #3b82f6; color: #fff; }
.btn-practical:hover { background: #1d4ed8; }
.locked-note { font-size: 12px; color: #d96251; margin-top: 8px; text-align: center; font-weight: 600; }

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data-table th, table.data-table td { padding: 10px 12px; border-bottom: 1px solid #eee; text-align: left; }
table.data-table th { background: #f4f6f9; color: #444; font-weight: 700; }
table.data-table tr:hover td { background: #fafcfb; }
.badge { padding: 3px 9px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.badge-pending { background: #fff4dd; color: #a8710a; }
.badge-approved { background: #e6f6ee; color: #1e7e59; }
.badge-rejected { background: #fdecea; color: #d96251; }
.badge-pass { background: #e6f6ee; color: #1e7e59; }
.badge-fail { background: #fdecea; color: #d96251; }

/* ---------------- Stat cards (admin dashboard) ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-box { background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 3px 10px rgba(0,0,0,.05); border-left: 5px solid #1e7e59; }
.stat-box .num { font-size: 28px; font-weight: 800; color: #1e7e59; }
.stat-box .label { font-size: 13px; color: #777; margin-top: 4px; }

/* ---------------- Payment box ---------------- */
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.pay-method-box { border: 1px solid #ddd; border-radius: 8px; padding: 14px; text-align: center; }
.pay-method-box b { display: block; color: #1e7e59; font-size: 15px; margin-bottom: 4px; }
.pay-method-box span { font-size: 15px; letter-spacing: .5px; }

.site-footer { text-align: center; padding: 20px; color: #888; font-size: 13px; }

/* ---------------- Admin layout ---------------- */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar { width: 230px; background: #14311f; color: #fff; padding: 20px 0; flex-shrink: 0; }
.admin-sidebar .brand { display: block; padding: 0 20px 18px; font-weight: 800; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 10px; }
.admin-sidebar a { display: block; padding: 11px 20px; font-size: 14.5px; color: #d7e6dc; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: #1e7e59; color: #fff; }
.admin-main { flex: 1; padding: 26px 30px; max-width: 1200px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.admin-topbar h1 { font-size: 21px; color: #222; }

@media (max-width: 720px) {
    .admin-wrap { flex-direction: column; }
    .admin-sidebar { width: 100%; display: flex; flex-wrap: wrap; padding: 10px; }
    .admin-sidebar .brand { width: 100%; border: none; padding: 6px 10px 10px; }
    .admin-sidebar a { padding: 8px 12px; }
}
