/* =========================================================================
   TA360 Admin — design system ported from the Camp Enrollment admin panel.
   Same layout / typography / component patterns, recoloured to the TA360
   logo palette: deep Bangladesh green primary, gold accent, red danger.

   Loaded via a plain <link> in admin/layouts/app.blade.php AFTER the compiled
   Vite bundle, so it overrides AdminLTE 4 / Bootstrap. Edit + save + refresh —
   no `npm run build` needed.
   ========================================================================= */

:root {
    /* ---- Brand palette (from the TA360 logo) ---- */
    --c-primary: #0f7a3d; /* logo green            */
    --c-primary-soft: #1aa253; /* lighter green (gradients) */
    --c-primary-dark: #0a5c2e; /* deep green            */
    --c-accent: #f4c20d; /* logo gold             */
    --c-accent-deep: #b8890a; /* gold text on light    */
    --c-success: #10b981; /* emerald — "ok" states */
    --c-warning: #f59e0b;
    --c-danger: #d4202a; /* logo red              */

    --c-bg-body: #f5f7fa;
    --c-sidebar-1: #0c2419; /* dark green (top)      */
    --c-sidebar-2: #05130c; /* deep near-black green (bottom) */
    --c-text-muted: #94a3b8;

    --shadow-card:
        0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px -8px rgba(15, 23, 42, 0.08);
}

body {
    background: var(--c-bg-body) !important;
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        "Segoe UI",
        sans-serif;
    color: #14181b;
    letter-spacing: -0.005em;
}
body.bg-body-tertiary,
.app-wrapper {
    background-color: var(--c-bg-body) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    letter-spacing: -0.02em;
}

/* ---------- Sidebar ---------- */
.app-sidebar {
    background: linear-gradient(
        180deg,
        var(--c-sidebar-1) 0%,
        var(--c-sidebar-2) 100%
    ) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 4px 0 24px -12px rgba(15, 23, 42, 0.5);

    --lte-sidebar-menu-active-bg: var(--c-primary);
    --lte-sidebar-menu-active-color: #ffffff;
    --lte-sidebar-color: #cbd5e1;
}

.sidebar-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.18);
}
.sidebar-brand .brand-link {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}
.sidebar-brand .brand-logo-img,
.sidebar-brand .brand-image {
    height: 40px;
    width: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
.sidebar-brand .brand-text {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    line-height: 1.15;
}
.sidebar-brand .brand-text small {
    display: block;
    font-size: 0.62rem;
    font-weight: 400;
    color: var(--c-text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Section headers */
.sidebar-menu .nav-header {
    color: #5e8270 !important;
    font-size: 0.62rem !important;
    font-weight: 600;
    letter-spacing: 0.12em;
    padding: 0.8rem 1.25rem 0.3rem;
    text-transform: uppercase;
}

/* Nav links */
.app-sidebar .sidebar-menu .nav-item .nav-link {
    color: #cbd5e1 !important;
    margin: 0.08rem 0.65rem;
    padding: 0.48rem 0.75rem;
    border-radius: 0.65rem;
    font-size: 0.82rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
    position: relative;
}
.app-sidebar .sidebar-menu .nav-item .nav-link .nav-icon {
    font-size: 0.95rem;
    width: 20px;
    text-align: center;
    color: #7ea08e;
    transition: color 0.18s ease;
}
.app-sidebar .sidebar-menu .nav-item .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff !important;
}
.app-sidebar .sidebar-menu .nav-item .nav-link:hover .nav-icon {
    color: var(--c-accent);
}
.app-sidebar .sidebar-menu .nav-item .nav-link.active,
.app-sidebar .sidebar-menu > .nav-item > .nav-link.active {
    background: linear-gradient(
        135deg,
        var(--c-primary),
        var(--c-primary-soft)
    ) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px -8px rgba(15, 122, 61, 0.7);
    font-weight: 600;
}
.app-sidebar .sidebar-menu .nav-item .nav-link.active .nav-icon,
.app-sidebar .sidebar-menu .nav-item .nav-link.active p {
    color: #fff !important;
}
.app-sidebar .sidebar-menu .nav-item .nav-link.active::before {
    content: "";
    position: absolute;
    left: -0.65rem;
    top: 25%;
    bottom: 25%;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--c-accent);
}

/* Treeview submenu */
.app-sidebar .nav-treeview {
    padding: 0.15rem 0.25rem 0.35rem 1.6rem;
    margin-left: 0.75rem;
    border-left: 1px dashed rgba(255, 255, 255, 0.1);
}
.app-sidebar .nav-treeview .nav-link {
    font-size: 0.76rem !important;
    padding: 0.35rem 0.65rem !important;
}
.app-sidebar .nav-treeview .nav-link .nav-icon {
    font-size: 0.55rem;
}

/* Badge on nav item */
.sidebar-menu .nav-link .badge {
    margin-left: auto;
    font-size: 0.58rem;
    font-weight: 600;
    padding: 0.25em 0.55em;
    border-radius: 0.5rem;
}

/* Inactive / not-yet-built menu items */
.app-sidebar .sidebar-menu .nav-item .nav-link.disabled,
.app-sidebar .sidebar-menu .nav-item .nav-link.disabled p {
    color: #51685c !important;
    cursor: default;
    pointer-events: none;
}
.app-sidebar .sidebar-menu .nav-item .nav-link.disabled .nav-icon {
    color: #44574c !important;
}
.app-sidebar .sidebar-menu .nav-item .nav-link.disabled:hover {
    background: transparent;
    color: #51685c !important;
    transform: none;
}
.app-sidebar .sidebar-menu .nav-item .nav-link.disabled:hover .nav-icon {
    color: #44574c !important;
}

/* ---------- Header (top navbar) ---------- */
.app-header {
    background: #fff !important;
    border-bottom: 1px solid #e9edf5 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}
.app-header .nav-link {
    color: #475569 !important;
    border-radius: 0.55rem;
    transition: background 0.15s;
}
.app-header .nav-link:hover {
    background: #f1f5f9;
}
.navbar-search-input {
    background: #f1f5f9;
    border: 1px solid transparent;
    border-radius: 0.65rem;
    padding: 0.45rem 0.85rem 0.45rem 2.25rem;
    width: 280px;
    font-size: 0.88rem;
    transition:
        background 0.15s,
        border-color 0.15s,
        box-shadow 0.15s;
}
.navbar-search-input:focus {
    background: #fff;
    border-color: var(--c-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 122, 61, 0.12);
}
.navbar-search-wrap {
    position: relative;
}
.navbar-search-wrap > i {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

/* ---------- Content ---------- */
.app-content-header {
    background: transparent;
    padding: 1.5rem 0 0.5rem;
}
.app-content-header h3 {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
    color: #0f172a;
}
.breadcrumb {
    background: transparent;
    font-size: 0.85rem;
}
.breadcrumb a {
    color: var(--c-primary);
    text-decoration: none;
}
.breadcrumb a:hover {
    color: var(--c-primary-dark);
}
.app-content-header .breadcrumb-item,
.app-content-header .breadcrumb-item.active {
    color: var(--c-text-muted);
}

/* ---------- Welcome banner ---------- */
.welcome-banner {
    background: linear-gradient(120deg, #0a5c2e 0%, #0f7a3d 55%, #16a34a 100%);
    color: #fff;
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px -12px rgba(15, 122, 61, 0.5);
}
.welcome-banner::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(244, 194, 13, 0.18);
}
.welcome-banner::before {
    content: "";
    position: absolute;
    right: 60px;
    bottom: -60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}
.welcome-banner h2 {
    font-weight: 700;
    margin: 0;
    font-size: 1.55rem;
}
.welcome-banner p {
    opacity: 0.9;
    margin: 0.25rem 0 0;
}

/* ---------- Stat cards (camp pattern) ---------- */
.stat-card {
    background: #fff;
    border: 1px solid #eef0f6;
    border-radius: 0.9rem;
    padding: 1.15rem 1.25rem;
    box-shadow: var(--shadow-card);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
    height: 100%;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 14px 32px -10px rgba(15, 23, 42, 0.14);
}
.stat-card .icon-tile {
    width: 46px;
    height: 46px;
    border-radius: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.85rem;
}
.icon-tile.bg-primary-soft {
    background: rgba(15, 122, 61, 0.12);
    color: var(--c-primary);
}
.icon-tile.bg-success-soft {
    background: rgba(16, 185, 129, 0.12);
    color: var(--c-success);
}
.icon-tile.bg-warning-soft {
    background: rgba(244, 194, 13, 0.16);
    color: var(--c-accent-deep);
}
.icon-tile.bg-info-soft {
    background: rgba(212, 32, 42, 0.1);
    color: var(--c-danger);
}

.stat-card .stat-label {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.stat-card .stat-value {
    color: #0f172a;
    font-size: 1.65rem;
    font-weight: 700;
    margin: 0.15rem 0;
    letter-spacing: -0.02em;
}
.stat-card .stat-foot {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* ---------- Legacy stat helpers (kept: used as image fallbacks in lists) ---- */
.ta-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.ta-stat .ta-stat-icon {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 1.5rem;
}
.ta-stat .ta-stat-value {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.1;
}
.ta-stat .ta-stat-label {
    color: var(--c-text-muted);
    font-size: 0.82rem;
    font-weight: 500;
}
.ta-chip-green {
    background: rgba(15, 122, 61, 0.12);
    color: var(--c-primary-dark);
}
.ta-chip-gold {
    background: rgba(244, 194, 13, 0.18);
    color: var(--c-accent-deep);
}
.ta-chip-red {
    background: rgba(212, 32, 42, 0.1);
    color: var(--c-danger);
}
.ta-chip-blue {
    background: rgba(15, 122, 61, 0.1);
    color: var(--c-primary);
}

/* ---------- Generic card refinement ---------- */
.card {
    border: 1px solid #eef0f6 !important;
    border-radius: 0.9rem !important;
    box-shadow: var(--shadow-card);
    background: #fff;
}
.card-header {
    background: #fff !important;
    border-bottom: 1px solid #eef0f6 !important;
    padding: 1rem 1.25rem !important;
    font-weight: 600;
}
.card-header .card-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.98rem;
    margin: 0;
}

/* Table refinement */
.table > :not(caption) > * > * {
    padding: 0.9rem 1rem;
}
.table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 600;
}
.table > tbody td {
    vertical-align: middle;
}

/* Footer */
.app-footer {
    background: #fff !important;
    border-top: 1px solid #eef0f6 !important;
    color: #94a3b8;
    font-size: 0.8rem;
}

/* =========================================================
   Page header (shared across CRUD pages)
   ========================================================= */
.page-header {
    background: #fff;
    border: 1px solid #eef0f6;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}
.page-header .ph-title {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.page-header .ph-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 10px 20px -10px rgba(15, 122, 61, 0.7);
}
.page-header h1 {
    font-family: "Inter", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #0f172a;
    margin: 0;
    line-height: 1.1;
}
.page-header p {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0.15rem 0 0;
    font-weight: 400;
}
.page-header .ph-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.count-pill {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

/* =========================================================
   Index table toolbar + pro table
   ========================================================= */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eef0f6;
}
.toolbar .search-input {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    padding: 0.5rem 0.85rem 0.5rem 2.25rem;
    font-size: 0.86rem;
    min-width: 320px;
    width: auto;
    transition: all 0.15s;
}
.toolbar .search-input:focus {
    background: #fff;
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(15, 122, 61, 0.12);
}
.toolbar .search-wrap {
    position: relative;
}
.toolbar .search-wrap > i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 0.95rem;
}
.toolbar .filter-select {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.86rem;
    transition: all 0.15s;
}
.toolbar .filter-select:focus {
    background: #fff;
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(15, 122, 61, 0.12);
}

/* Buttons — pro pill */
.btn-pro {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: none;
    transition: all 0.15s;
    text-decoration: none !important;
    cursor: pointer;
}
.btn-pro.primary {
    background: linear-gradient(
        135deg,
        var(--c-primary),
        var(--c-primary-soft)
    );
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(15, 122, 61, 0.6);
}
.btn-pro.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -8px rgba(15, 122, 61, 0.7);
    color: #fff;
}
.btn-pro.ghost {
    background: #fff;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.btn-pro.ghost:hover {
    background: #f8fafc;
    color: #0f172a;
}
.btn-pro.primary:disabled,
.btn-pro.primary[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Pro table */
.table-pro {
    margin: 0;
    font-size: 0.8rem;
}
.table-pro thead {
    background: #fafbfd;
}
.table-pro thead th {
    font-family: "Inter", sans-serif;
    font-size: 0.68rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8 !important;
    border-bottom: 1px solid #eef0f6;
    padding: 0.85rem 1.25rem !important;
}
.table-pro tbody td {
    padding: 1rem 1.25rem !important;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #334155;
}
.table-pro tbody tr:last-child td {
    border-bottom: 0;
}
.table-pro tbody tr {
    transition: background 0.12s ease;
}
.table-pro tbody tr:hover {
    background: #fafbfd;
}
.table-pro .fw-semibold {
    color: #0f172a;
}

/* Role pill */
.role-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: "Inter", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
}
.role-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.85;
}
.role-pill.super {
    background: rgba(212, 32, 42, 0.1);
    color: var(--c-danger);
}
.role-pill.admin {
    background: rgba(15, 122, 61, 0.12);
    color: var(--c-primary);
}

/* Status pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 0.45rem;
}
.status-pill.ok {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}
.status-pill.no {
    background: #f1f5f9;
    color: #64748b;
}
.status-pill.warn {
    background: rgba(244, 194, 13, 0.18);
    color: #a16207;
}
.status-pill.info {
    background: rgba(15, 122, 61, 0.1);
    color: var(--c-primary);
}
.status-pill.danger {
    background: rgba(212, 32, 42, 0.1);
    color: var(--c-danger);
}

/* Action menu trigger */
.action-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    transition: all 0.15s;
    cursor: pointer;
    text-decoration: none !important;
}
.action-btn:hover {
    background: #fff;
    color: var(--c-primary);
    border-color: var(--c-primary);
}
.action-btn.edit:hover {
    color: var(--c-primary);
    border-color: var(--c-primary);
}
.action-btn.danger:hover {
    color: var(--c-danger);
    border-color: var(--c-danger);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #64748b;
}
.empty-state .es-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.6rem;
}
.empty-state h5 {
    font-weight: 600;
    color: #0f172a;
}

/* Pagination polish */
.pagination {
    margin: 0;
    font-size: 0.85rem;
}
.pagination .page-link {
    border: 1px solid #eef0f6;
    color: #475569;
    margin: 0 2px;
    border-radius: 0.5rem !important;
    padding: 0.4rem 0.75rem;
}
.pagination .page-item.active .page-link {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}
.card-footer {
    background: #fafbfd !important;
    border-top: 1px solid #eef0f6 !important;
}

/* =========================================================
   Centralised admin form styling — every form inside .app-content
   shares the same look (no wrapper class needed).
   ========================================================= */
.app-content .form-label {
    font-family: "Inter", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
    letter-spacing: 0.005em;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.app-content .form-label .req,
.app-content .form-label .text-danger {
    color: var(--c-danger);
    margin-left: 2px;
}
.app-content .form-label i {
    color: #94a3b8;
    font-size: 0.9rem;
}

.app-content .form-control,
.app-content .form-select {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.55rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.85rem;
    color: #0f172a;
    transition:
        border-color 0.15s,
        box-shadow 0.15s,
        background 0.15s;
    min-height: 42px;
}
.app-content textarea.form-control {
    min-height: 96px;
}
.app-content .form-control:focus,
.app-content .form-select:focus {
    background: #fff;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(15, 122, 61, 0.12);
}
.app-content .form-control.is-invalid,
.app-content .form-select.is-invalid {
    border-color: var(--c-danger);
}
.app-content .form-control.is-valid,
.app-content .form-select.is-valid {
    border-color: var(--c-success);
}
.app-content .form-control::placeholder {
    color: #cbd5e1;
    font-weight: 400;
    opacity: 1;
}

.app-content .form-hint,
.app-content .form-text {
    font-size: 0.72rem;
    font-weight: 400;
    color: #a3aab8;
    margin-top: 0.3rem;
    line-height: 1.35;
}
.app-content .form-hint.text-danger {
    color: var(--c-danger) !important;
}
.app-content input[type="file"].form-control {
    padding-top: 0.45rem;
}

/* Switch — brand green when on */
.app-content .form-check-input:checked {
    background-color: var(--c-primary);
    border-color: var(--c-primary);
}
.app-content .form-check-input:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(15, 122, 61, 0.12);
}
.app-content .form-check-label {
    font-size: 0.85rem;
    color: #334155;
}

/* Sectioned form helpers (optional, camp parity) */
.form-pro .section {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #eef0f6;
}
.form-pro .section:last-of-type {
    border-bottom: 0;
}
.form-pro .section-title,
.section-heading {
    font-family: "Inter", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.form-pro .section-title i,
.section-heading i {
    color: var(--c-primary);
    font-size: 0.95rem;
}

/* Form footer bar */
.form-footer-bar {
    padding: 1rem 1.5rem;
    background: #fafbfd;
    border-top: 1px solid #eef0f6;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    border-bottom-left-radius: 0.9rem;
    border-bottom-right-radius: 0.9rem;
}

/* Error / success blocks */
.alert-pro {
    border: 0;
    border-radius: 0.7rem;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
}
.alert-pro.danger {
    background: rgba(212, 32, 42, 0.08);
    color: #a3151d;
    border-left: 3px solid var(--c-danger);
}
.alert-pro.success {
    background: rgba(16, 185, 129, 0.08);
    color: #047857;
    border-left: 3px solid var(--c-success);
}
.alert-pro ul {
    margin: 0.25rem 0 0;
    padding-left: 1.1rem;
}

/* =========================================================
   Buttons — recolour Bootstrap brand buttons to match
   ========================================================= */
.btn {
    border-radius: 0.6rem;
    font-weight: 500;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease;
}
.btn:active {
    transform: translateY(1px);
}
.btn-brand,
.btn-primary,
.btn-success {
    background: linear-gradient(
        135deg,
        var(--c-primary),
        var(--c-primary-soft)
    );
    border: none;
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(15, 122, 61, 0.5);
}
.btn-brand:hover,
.btn-primary:hover,
.btn-success:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -8px rgba(15, 122, 61, 0.6);
}
.btn-outline-secondary {
    background: #fff;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.btn-outline-secondary:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}
.btn-outline-danger {
    border-color: #e2e8f0;
    color: var(--c-danger);
    background: #fff;
}
.btn-outline-danger:hover {
    background: var(--c-danger);
    border-color: var(--c-danger);
    color: #fff;
}

/* Badges */
.badge {
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.4em 0.65em;
}

/* =========================================================
   Login
   ========================================================= */
.ta-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        var(--c-sidebar-1) 0%,
        var(--c-primary) 100%
    );
}
.ta-login-card {
    width: 100%;
    max-width: 410px;
    border: none;
    border-top: 5px solid var(--c-accent);
    border-radius: 0.9rem;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}
.ta-login-logo img {
    height: 84px;
    width: auto;
}

/* =========================================================
   Dashboard — hero + KPI tiles (camp pattern, recoloured)
   ========================================================= */
.dash-hero {
    position: relative;
    border-radius: 1.25rem;
    padding: 1.7rem 1.9rem;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(
            1200px 200px at 110% -40%,
            rgba(244, 194, 13, 0.3),
            transparent 60%
        ),
        radial-gradient(
            700px 300px at -10% 130%,
            rgba(16, 163, 74, 0.45),
            transparent 55%
        ),
        linear-gradient(120deg, #0a5c2e, #0f7a3d 55%, #14803f);
    box-shadow: 0 20px 45px -20px rgba(15, 122, 61, 0.55);
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.dash-hero::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}
.dash-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: rgba(255, 255, 255, 0.16);
    padding: 0.3rem 0.7rem;
    border-radius: 30px;
}
.dash-hero-text h1 {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0.7rem 0 0.25rem;
    letter-spacing: -0.02em;
}
.dash-hero-text p {
    margin: 0;
    opacity: 0.88;
    font-size: 0.92rem;
}
.dash-hero-actions {
    display: flex;
    gap: 0.6rem;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}
.dash-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}
.dash-btn.light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--c-primary-dark);
}
.dash-btn.solid {
    background: var(--c-accent);
    color: #3a2c00;
}
.dash-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.45);
}

.dash-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.kpi {
    position: relative;
    background: #fff;
    border: 1px solid #eef0f6;
    border-radius: 1.1rem;
    padding: 1.2rem 1.25rem 1.25rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}
.kpi::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--accent, var(--c-primary)),
        var(--accent2, var(--c-primary-soft))
    );
}
.kpi:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px -14px rgba(15, 23, 42, 0.22);
}
.kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.kpi-badge {
    width: 46px;
    height: 46px;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent, var(--c-primary));
    background: color-mix(in srgb, var(--accent, var(--c-primary)) 13%, #fff);
}
.kpi-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.22rem 0.55rem;
    border-radius: 30px;
    color: #475569;
    background: #f1f5f9;
}
.kpi-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1;
}
.kpi-label {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 500;
    margin-top: 0.35rem;
}

.dash-panel {
    background: #fff;
    border: 1px solid #eef0f6;
    border-radius: 1.1rem;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.dash-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.3rem;
    border-bottom: 1px solid #f1f5f9;
}
.dash-panel-head h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.dash-panel-head .sub {
    font-size: 0.78rem;
    color: #94a3b8;
}
.dash-panel-body {
    padding: 1.3rem;
}

@media (max-width: 1200px) {
    .dash-kpis {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 575px) {
    .dash-kpis {
        grid-template-columns: 1fr;
    }
    .dash-hero-text h1 {
        font-size: 1.4rem;
    }
}

/* Category / subcategory tags */
.cat-tag,
.subcat-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    line-height: 1.3;
    white-space: nowrap;
}
.cat-tag {
    background: #e8f3ec;
    color: var(--c-primary-dark);
    border: 1px solid #cfe8d8;
}
.subcat-tag {
    background: #fdf6da;
    color: var(--c-accent-deep);
    border: 1px solid #f7ead0;
    font-weight: 600;
}
