:root {
    --ast-primary: #087f5b;
    --ast-primary-dark: #064e3b;
    --ast-primary-soft: #e7f8f0;
    --ast-accent: #84cc16;
    --ast-ink: #17324d;
    --ast-canvas: #f2f7f4;
}
[data-color-theme="Green_Theme"] {
    --bs-primary: #14664f;
    --bs-primary-rgb: 20, 102, 79;
    --bs-link-color: #14664f;
    --bs-link-hover-color: #0f4c3a;
}
body { color: var(--ast-ink); background: radial-gradient(circle at 88% 3%, rgba(132,204,22,.08), transparent 22rem), var(--ast-canvas); }
.page-wrapper { background: transparent; }
.left-sidebar { border-right: 1px solid #deebe5; background: linear-gradient(180deg, #fff 0%, #fbfefc 65%, #f1f8f4 100%); box-shadow: 8px 0 30px rgba(6,78,59,.035); }
.brand-logo { min-height: 86px; padding: 16px 20px; }
.logo-img { text-decoration: none; }
.admin-brand-mark { width: 50px; height: 50px; padding: 3px; border: 1px solid #dce9e4; border-radius: 15px; background: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(20,102,79,.14); }
.admin-brand-mark img { display: block; width: 42px; height: 42px; object-fit: contain; filter: none; }
.sidebar-nav { height: calc(100vh - 250px); }
.sidebar-nav ul .sidebar-item .sidebar-link { border: 1px solid transparent; border-radius: 12px; margin: 4px 12px; font-weight: 650; transition: all .2s ease; }
.sidebar-nav ul .sidebar-item .sidebar-link.active,
.sidebar-nav ul .sidebar-item .sidebar-link:hover { border-color: #cbe8db; background: linear-gradient(135deg, #e7f8f0, #f2fae8); color: var(--ast-primary); transform: translateX(2px); }
.sidebar-footer { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 18%); }
.topbar { border-bottom: 1px solid rgba(222,235,229,.9); background: rgba(255,255,255,.9); box-shadow: 0 8px 24px rgba(23,50,77,.035); backdrop-filter: blur(18px); }
.admin-user-chip { display: flex; align-items: center; gap: 10px; }
.admin-user-chip small, .admin-user-chip strong { display: block; line-height: 1.2; }
.avatar-initial { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, var(--ast-primary-dark), var(--ast-primary), var(--ast-accent)); color: white; font-weight: 800; box-shadow: 0 8px 18px rgba(8,127,91,.18); }
.body-wrapper > .container-fluid { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 30px clamp(18px, 2vw, 38px) 42px !important; }
.page-heading { padding: 2px 2px 4px; }
.page-heading h4 { color: var(--ast-ink); font-size: clamp(1.35rem, 1.6vw, 1.75rem); font-weight: 800; letter-spacing: -.025em; }
.page-heading .eyebrow { color: var(--ast-primary); font-size: .72rem; letter-spacing: .12em; font-weight: 800; }
.stat-card { position: relative; overflow: hidden; border: 1px solid rgba(219,234,226,.9); border-radius: 20px; background: linear-gradient(145deg, #fff, #fbfefc); box-shadow: 0 10px 30px rgba(23,50,77,.055); transition: .25s ease; }
.stat-card::after { content: ''; position: absolute; width: 90px; height: 90px; right: -42px; bottom: -48px; border-radius: 50%; background: rgba(8,127,91,.055); }
.stat-card:hover { border-color: #b9ddcd; transform: translateY(-4px); box-shadow: 0 16px 38px rgba(8,127,91,.11); }
.stat-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.55rem; }
.admin-card { border: 1px solid rgba(219,234,226,.9); border-radius: 20px; box-shadow: 0 10px 32px rgba(23,50,77,.055); }
.admin-card .card-header { background: transparent; border-bottom: 1px solid #edf0ef; padding: 20px 22px; }
.admin-card .card-body { padding: 22px; }
.table-modern thead th { color: #64748b; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; border-bottom-width: 1px; }
.table-modern td { vertical-align: middle; }
.icon-preview { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: white; }
.badge-soft-success { color: #087443; background: #dcfce7; }
.badge-soft-secondary { color: #475569; background: #f1f5f9; }
.form-control, .form-select { border-radius: 10px; min-height: 43px; }
textarea.form-control { min-height: auto; }
.modal-content { border: 0; border-radius: 20px; box-shadow: 0 24px 70px rgba(15,23,42,.2); }
.modal-header, .modal-footer { border-color: #edf0ef; }
.upload-zone { border: 2px dashed #b8d5cc; background: #f5fbf8; border-radius: 18px; padding: 32px; text-align: center; transition: .2s; }
.upload-zone:hover { border-color: var(--ast-primary); background: #eef8f3; }
.structure-preview { max-height: 520px; object-fit: contain; width: 100%; background: #f8fafc; border-radius: 14px; }
.quick-link { border: 1px solid #edf0ef; border-radius: 14px; transition: .2s; }
.quick-link:hover { border-color: #9bc8b8; background: #f5fbf8; transform: translateX(3px); }
.btn-primary { --bs-btn-bg: var(--ast-primary); --bs-btn-border-color: var(--ast-primary); --bs-btn-hover-bg: var(--ast-primary-dark); --bs-btn-hover-border-color: var(--ast-primary-dark); }
@media (max-width: 767.98px) {
    .body-wrapper > .container-fluid { padding: 18px 12px 28px !important; }
    .page-heading { align-items: flex-start !important; }
    .admin-card .card-body { padding: 16px; }
}

.stat-icon.green { color: #087f4f; background: #dcfce7; }
.stat-icon.blue { color: #2563eb; background: #dbeafe; }
.stat-icon.orange { color: #d97706; background: #fef3c7; }
.stat-icon.purple { color: #7c3aed; background: #ede9fe; }
.dashboard-hero { border: 1px solid rgba(190,242,100,.18); border-radius: 24px; background: radial-gradient(circle at 78% 18%, rgba(217,249,157,.22), transparent 20%), radial-gradient(circle at 95% 95%, rgba(132,204,22,.34), transparent 28%), linear-gradient(125deg, #053f32 0%, #087f5b 58%, #65a30d 125%); box-shadow: 0 20px 48px rgba(6,78,59,.22); }
.dashboard-hero::before { content: ''; position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(90deg, transparent, #000); }
.dashboard-hero::after { content: ''; position: absolute; width: 330px; height: 330px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; right: -95px; top: -155px; box-shadow: 0 0 0 46px rgba(255,255,255,.035); }
.portal-management-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid rgba(236,252,203,.85); border-radius: 999px; color: #254d0b !important; background: linear-gradient(135deg, #ecfccb, #bef264); box-shadow: 0 8px 22px rgba(31,65,8,.2); font-size: .73rem; font-weight: 850; letter-spacing: .075em; text-transform: uppercase; }
.portal-management-badge i { font-size: 1rem; }
.hero-title { max-width: 620px; font-size: clamp(1.75rem, 2.3vw, 2.55rem); line-height: 1.15; letter-spacing: -.035em; text-shadow: 0 2px 18px rgba(0,0,0,.12); }
.hero-description { max-width: 650px; color: rgba(255,255,255,.83); font-size: 1rem; line-height: 1.7; }
.hero-primary-action { border: 1px solid rgba(255,255,255,.7); border-radius: 12px; color: var(--ast-primary-dark); background: #fff; box-shadow: 0 10px 28px rgba(1,42,31,.2); }
.hero-primary-action:hover { border-color: #d9f99d; color: #254d0b; background: #d9f99d; transform: translateY(-1px); }
.hero-orbit { width: 142px; height: 142px; border-radius: 40px; display: grid; place-items: center; font-size: 4.7rem; color: #eaffd6; background: linear-gradient(145deg, rgba(255,255,255,.2), rgba(255,255,255,.07)); border: 1px solid rgba(255,255,255,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 20px 35px rgba(3,54,40,.22); transform: rotate(-6deg); backdrop-filter: blur(8px); }
.quick-access-card, .dashboard-table-card { border: 1px solid rgba(219,234,226,.9); border-radius: 22px; box-shadow: 0 12px 36px rgba(23,50,77,.06); }
.dashboard-table-card .table > :not(caption) > * > * { padding-block: 14px; }
.quick-links a { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; color: #334155; border-bottom: 1px solid #edf0ef; }
.quick-links a:last-child { border-bottom: 0; }
.quick-links a > span { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--ast-primary); background: var(--ast-primary-soft); font-size: 1.2rem; }
.quick-links b, .quick-links small { display: block; }
.quick-links small { color: #94a3b8; }
.app-mini-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--ast-primary); background: var(--ast-primary-soft); }
.order-pill { min-width: 32px; height: 32px; padding: 0 9px; border-radius: 9px; display: inline-grid; place-items: center; font-weight: 700; color: var(--ast-primary); background: var(--ast-primary-soft); }
.url-chip { display: inline-block; max-width: 280px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 6px 10px; border-radius: 8px; color: #475569; background: #f8fafc; font-family: monospace; font-size: .8rem; }
.empty-state { text-align: center; padding: 42px 20px; color: #94a3b8; }
.empty-state > i { font-size: 3rem; color: #b8d5cc; }
.empty-state h6 { margin-top: 12px; color: #475569; }
.section-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: #087f4f; background: #dcfce7; font-size: 1.35rem; }
.section-icon.blue { color: #2563eb; background: #dbeafe; }
.mission-list { display: grid; gap: 12px; }
.mission-item { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid #edf0ef; border-radius: 14px; transition: .2s; }
.mission-item:hover { border-color: #b8d5cc; background: #f8fcfa; }
.mission-number { flex: 0 0 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: var(--ast-primary); background: var(--ast-primary-soft); }
.policy-summary { border: 0; border-radius: 18px; background: #ecfdf5; }
.policy-summary .card-body { display: flex; align-items: center; gap: 18px; }
.policy-summary .card-body > span { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #087f4f; background: #d1fae5; font-size: 1.5rem; }
.policy-summary h3, .policy-summary small { margin: 0; color: #065f46; }
.policy-summary.blue { background: #eff6ff; }.policy-summary.blue .card-body > span { color: #2563eb; background: #dbeafe; }.policy-summary.blue h3, .policy-summary.blue small { color: #1e40af; }
.policy-summary.orange { background: #fffbeb; }.policy-summary.orange .card-body > span { color: #d97706; background: #fef3c7; }.policy-summary.orange h3, .policy-summary.orange small { color: #92400e; }
.policy-tabs .nav-link { border-radius: 10px; font-weight: 650; }.policy-tabs .nav-link.active { color: var(--ast-primary); background: var(--ast-primary-soft); }
.policy-color { flex: 0 0 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #243b35; background: var(--policy-color); }
.policy-name, .program-description { max-width: 520px; }
.current-structure-wrap { padding: 12px; border: 1px solid #edf0ef; border-radius: 18px; background: #f8fafc; }
.structure-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 6px 4px; }
.structure-meta b, .structure-meta small { display: block; }.structure-meta small { color: #64748b; margin-top: 3px; }
.structure-thumb { width: 74px; height: 50px; object-fit: cover; border-radius: 9px; border: 1px solid #edf0ef; }
.upload-preview { width: 100%; max-height: 220px; object-fit: contain; border-radius: 12px; }
.cursor-pointer { cursor: pointer; }
.user-avatar { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--ast-primary), #78bd43); font-size: 1.45rem; font-weight: 800; box-shadow: 0 10px 24px rgba(20,102,79,.2); }
.user-detail { display: flex; gap: 10px; align-items: center; color: #64748b; margin-top: 9px; }.user-detail i { color: var(--ast-primary); font-size: 1.1rem; }

@media (max-width: 1399.98px) {
    .body-wrapper > .container-fluid { padding-right: 18px !important; padding-left: 18px !important; }
}

@media (max-width: 1199.98px) {
    .body-wrapper > .container-fluid { padding-right: 16px !important; padding-left: 16px !important; }
}

@media (max-width: 767.98px) {
    .body-wrapper > .container-fluid { padding-right: 12px !important; padding-left: 12px !important; }
    .dashboard-hero { border-radius: 20px; }
    .hero-description { font-size: .93rem; }
}
