/* Admin panel: sidebar layout and the components of the new modules. Colours follow the college logo (saffron / orange on white). */
:root { --saffron: #f58220; --orange: #e8590c; --amber: #ffb703; --cream: #fff7ee; --peach: #ffe8d1; --ink: #1d2433; --muted: #5d6679; --line: #eadfce;
  --ok: #e8590c; --bad: #1d2433; --side: 272px; --grad: linear-gradient(135deg, #ff9a2e 0%, #f58220 45%, #e8590c 100%); --shadow: 0 8px 24px rgba(29, 36, 51, .08); }
body.adm { font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; background: #f6f3ee; color: var(--ink); margin: 0; font-size: 14.5px; }
body.adm * { box-sizing: border-box; }
body.adm a { text-decoration: none; }

/* ---------- sidebar ---------- */
.adm-side { position: fixed; z-index: 100; top: 0; bottom: 0; left: 0; width: var(--side); background: #161b2b; color: #c4cbda; display: flex; flex-direction: column; border-right: 3px solid var(--saffron); transition: transform .3s; }
.adm-brand { display: flex; align-items: center; gap: 12px; padding: 18px 18px 16px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.adm-brand .emb { width: 46px; height: 46px; flex: none; background: url(../images/logo-emblem.png) center / contain no-repeat; }
.adm-brand b { display: block; font-family: 'Playfair Display', serif; font-size: 18px; letter-spacing: .6px; line-height: 1.1; }
.adm-brand small { color: var(--amber); letter-spacing: 1.6px; text-transform: uppercase; font-size: 10.5px; }
.adm-nav { flex: 1; overflow-y: auto; padding: 8px 12px 14px; scrollbar-width: thin; scrollbar-color: #39415a transparent; }
.adm-cap { margin: 18px 10px 6px; font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase; color: #7f89a0; font-weight: 600; }
.adm-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; margin: 1px 0; color: #c4cbda; border-radius: 10px; font-size: 13.5px; transition: background .2s, color .2s; position: relative; }
.adm-nav a i { width: 18px; text-align: center; color: #8e98b0; transition: color .2s; }
.adm-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.adm-nav a:hover i { color: var(--amber); }
.adm-nav a.on { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(232, 89, 12, .35); }
.adm-nav a.on i { color: #fff; }
.adm-nav .badge { margin-left: auto; background: #fff; color: var(--orange); font-size: 11px; border-radius: 99px; padding: 2px 8px; }
.adm-grp { margin: 1px 0; }
.adm-grp > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; color: #c4cbda; user-select: none; }
.adm-grp > summary::-webkit-details-marker { display: none; }
.adm-grp > summary i { width: 18px; text-align: center; color: #8e98b0; }
.adm-grp > summary::after { content: '\f107'; font-family: FontAwesome; margin-left: auto; transition: transform .25s; opacity: .7; }
.adm-grp[open] > summary::after { transform: rotate(180deg); }
.adm-grp > summary:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.adm-grp[open] > summary { color: #fff; }
.adm-grp .sub { margin: 2px 0 6px 18px; padding-left: 10px; border-left: 1px dashed rgba(255, 255, 255, .18); }
.adm-grp .sub a { padding: 7px 10px; font-size: 13px; }
.adm-grp .sub .sh { margin: 8px 10px 2px; font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--amber); }
.adm-out { margin: 0 12px 14px; padding: 10px 14px; border-radius: 10px; background: rgba(255, 255, 255, .07); color: #fff; display: flex; align-items: center; gap: 10px; }
.adm-out:hover { background: var(--bad); color: #fff; }

/* ---------- main area ---------- */
.adm-main { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; }
.adm-top { position: sticky; top: 0; z-index: 50; height: 60px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 26px; }
.adm-top .ttl { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 20px; }
.adm-top .act { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.adm-top .btn-site { color: var(--orange); font-weight: 600; border: 1.5px solid var(--saffron); padding: 6px 16px; border-radius: 99px; font-size: 13px; }
.adm-top .btn-site:hover { background: var(--saffron); color: #fff; }
.adm-top .who { display: flex; align-items: center; gap: 8px; color: var(--muted); text-transform: capitalize; }
.adm-top .who i { font-size: 24px; color: var(--saffron); }
.adm-burger { display: none; background: none; border: 0; font-size: 22px; color: var(--ink); cursor: pointer; padding: 6px; }
.adm-content { flex: 1; padding: 26px; max-width: 1280px; width: 100%; }
.adm-foot { padding: 16px 26px; color: var(--muted); font-size: 12.5px; text-align: center; }
.adm-scrim { display: none; }

/* old pages (bootstrap 3 markup) inside the new shell */
.adm-content .col-md-8, .adm-content .col-md-9, .adm-content .col-md-12 { width: 100%; float: none; padding: 0; }
.adm-content .col-md-8 > .row, .adm-content .row { margin-left: 0; margin-right: 0; padding-left: 0 !important; }
.adm-content .innercontent { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; box-shadow: var(--shadow); }
.adm-content .innercontent h3 { font-family: 'Playfair Display', serif; font-weight: 800; }
.adm-content table.table { background: #fff; border-radius: 10px; }
.adm-content .table > thead > tr > th, .adm-content .table > tbody > tr.danger > td { background: var(--peach); }
.adm-content input[type=text], .adm-content input[type=password], .adm-content select, .adm-content textarea { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.adm-content input[type=submit], .adm-content input[type=button] { background: var(--grad); color: #fff; border: 0; border-radius: 99px; padding: 7px 22px; font-weight: 600; cursor: pointer; }
.adm-content h3 { margin-top: 0; }

/* ---------- login ---------- */
body.adm-guest { background: linear-gradient(135deg, #fff3e4, #ffe0bf); }
.adm-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.adm-login-card { width: min(460px, 100%); background: #fff; border-radius: 24px; padding: 30px 32px 34px; box-shadow: 0 30px 70px rgba(232, 89, 12, .2); border-top: 6px solid var(--saffron); }
.adm-login-card .lg { text-align: center; margin-bottom: 14px; }
.adm-login-card .emb { display: block; width: 86px; height: 86px; margin: 0 auto 8px; background: url(../images/logo-emblem.png) center / contain no-repeat; }
.adm-login-card .lg b { display: block; font-family: 'Playfair Display', serif; font-size: 24px; letter-spacing: .6px; }
.adm-login-card .lg small { color: var(--orange); text-transform: uppercase; letter-spacing: 2px; font-size: 11.5px; font-weight: 600; }
.adm-login-card h3 { text-align: center; font-family: 'Playfair Display', serif; }
.adm-login-card table { width: 100% !important; }
.adm-login-card input[type=text], .adm-login-card input[type=password] { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.adm-login-card input[type=submit] { background: var(--grad); color: #fff; border: 0; border-radius: 99px; padding: 9px 30px; font-weight: 600; }

/* ---------- new modules: components ---------- */
.ad-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ad-head h1 { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 30px; margin: 0; line-height: 1.15; }
.ad-head h1 span { color: var(--orange); }
.ad-head p { margin: 4px 0 0; color: var(--muted); max-width: 640px; }
.ad-note { background: var(--cream); border: 1px dashed var(--saffron); border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; color: #5a4a35; font-size: 13.5px; }
.ad-note i { color: var(--orange); margin-right: 6px; }
.ad-alert { border-radius: 12px; padding: 11px 16px; margin-bottom: 18px; font-weight: 500; }
.ad-alert.ok { background: var(--cream); color: #7a3300; border: 1px solid #ffd2a8; border-left: 5px solid var(--saffron); }
.ad-alert.err { background: #fff; color: var(--ink); border: 1px solid var(--ink); border-left: 5px solid var(--orange); }
.ad-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 20px; }
.ad-card > h2, .ad-card > summary { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 800; margin: 0 0 14px; }
details.ad-card > summary { cursor: pointer; margin: 0; list-style: none; display: flex; align-items: center; gap: 10px; }
details.ad-card > summary::-webkit-details-marker { display: none; }
details.ad-card > summary::before { content: '+'; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; font-family: Poppins, sans-serif; font-weight: 600; }
details.ad-card[open] > summary { margin-bottom: 14px; }
details.ad-card[open] > summary::before { content: '\2212'; }
.ad-form { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px 16px; }
.ad-form .f { grid-column: span 6; min-width: 0; }
.ad-form .f.w3 { grid-column: span 3; } .ad-form .f.w4 { grid-column: span 4; } .ad-form .f.w8 { grid-column: span 8; } .ad-form .f.w12 { grid-column: span 12; }
.ad-form label { display: block; font-weight: 600; font-size: 12.5px; margin-bottom: 4px; color: #3b4457; }
.ad-form label small { font-weight: 400; color: var(--muted); }
.ad-form input[type=text], .ad-form input[type=date], .ad-form input[type=number], .ad-form select, .ad-form textarea, .ad-form input[type=file] { width: 100%; font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: #fff; color: var(--ink); height: auto; box-shadow: none; }
.ad-form textarea { min-height: 84px; resize: vertical; }
.ad-form input:focus, .ad-form select:focus, .ad-form textarea:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(245, 130, 32, .18); }
.ad-form .bar { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ad-check { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 500 !important; cursor: pointer; }
.ad-check input { width: 18px; height: 18px; accent-color: var(--orange); }
.ad-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 13.5px; padding: 9px 20px; border-radius: 99px; color: #fff; background: var(--grad); box-shadow: 0 6px 14px rgba(232, 89, 12, .28); transition: transform .2s, box-shadow .2s; }
.ad-btn:hover { transform: translateY(-2px); color: #fff; }
.ad-btn.line { background: #fff; color: var(--orange); border: 1.5px solid var(--saffron); box-shadow: none; }
.ad-btn.line:hover { background: var(--saffron); color: #fff; }
.ad-btn.danger { background: #fff; color: var(--ink); border: 1.5px solid #c8cdd8; box-shadow: none; }
.ad-btn.danger:hover { background: var(--bad); color: #fff; }
.ad-btn.sm { padding: 5px 13px; font-size: 12.5px; }
.ad-btn.ico { padding: 5px 10px; }
.ad-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.ad-thumb { display: block; width: 100%; max-height: 150px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--cream); }
.ad-thumb.prev { display: none; margin-top: 8px; }
.ad-thumb.round { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }

/* a list of editable items */
.ad-list { display: grid; gap: 16px; }
.ad-item { display: grid; grid-template-columns: 210px 1fr; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 16px; position: relative; }
.ad-item.off { opacity: .62; }
.ad-item.faq { grid-template-columns: 150px 1fr; }
.ad-item .pic { position: relative; }
.ad-item .pic .no { position: absolute; top: 8px; left: 8px; background: var(--ink); color: #fff; border-radius: 99px; font-size: 12px; padding: 1px 10px; }
.ad-item .pic .state { position: absolute; bottom: 8px; left: 8px; border-radius: 99px; font-size: 11px; padding: 1px 10px; color: #fff; background: var(--ok); }
.ad-item.off .pic .state { background: #8b93a5; }
.ad-item .tools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.ad-item .tools form { margin: 0; }
.ad-empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.ad-count { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 5px 16px; font-weight: 600; }
.ad-count b { color: var(--orange); }
.ad-count.full b { color: var(--bad); }

/* tables (enquiries) */
.ad-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 18px; }
.ad-stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); color: var(--ink); display: block; transition: transform .2s; }
.ad-stat:hover { transform: translateY(-3px); }
.ad-stat b { display: block; font-family: 'Playfair Display', serif; font-size: 28px; line-height: 1.1; }
.ad-stat span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.ad-stat.on { border-color: var(--saffron); background: var(--cream); }
.ad-filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.ad-filter input, .ad-filter select { font: inherit; border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; background: #fff; }
.ad-filter input[type=search] { min-width: 240px; }
.ad-tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
table.ad-table { width: 100%; border-collapse: collapse; min-width: 880px; }
.ad-table th { background: var(--peach); text-align: left; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; padding: 11px 14px; white-space: nowrap; }
.ad-table td { padding: 12px 14px; border-top: 1px solid #f3eadc; vertical-align: top; }
.ad-table tr:hover td { background: #fffaf3; }
.ad-table .nm b { display: block; }
.ad-table .nm small { color: var(--muted); }
.ad-table form.row-form { display: grid; gap: 6px; margin: 0; min-width: 200px; }
.ad-table select, .ad-table input[type=text] { font: inherit; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; width: 100%; }
.pill { display: inline-block; border-radius: 99px; padding: 2px 11px; font-size: 11.5px; font-weight: 600; color: #fff; background: #8b93a5; }
.pill.new { background: var(--orange); } .pill.contacted { background: var(--ink); } .pill.interested { background: var(--amber); color: var(--ink); } .pill.admitted { background: linear-gradient(135deg, #e8590c, #b8430a); } .pill.closed { background: #8b93a5; }
.pill.src { background: var(--ink); }
.ad-pager { display: flex; gap: 6px; justify-content: center; margin: 18px 0 4px; flex-wrap: wrap; }
.ad-pager a, .ad-pager span { min-width: 36px; text-align: center; padding: 6px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.ad-pager span { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- small screens ---------- */
@media (max-width: 991px) {
  .adm-side { transform: translateX(-100%); }
  body.side-open .adm-side { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .5); }
  body.side-open .adm-scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 90; }
  .adm-main { margin-left: 0; }
  .adm-burger { display: block; }
  .adm-top { padding: 0 14px; }
  .adm-top .btn-site span, .adm-top .who span { display: none; }
  .adm-content { padding: 16px 14px; }
  .ad-item, .ad-item.faq { grid-template-columns: 1fr; }
  .ad-item .pic { max-width: 320px; }
  .ad-form .f, .ad-form .f.w3, .ad-form .f.w4, .ad-form .f.w8 { grid-column: span 12; }
}

/* ---------- everything in the website palette: orange, white and ink (no blue, green or red) ---------- */
.adm-content a, .ad-head p a { color: var(--orange); }
.adm-content a:hover { color: #b8430a; }
.adm-content .style2 { color: var(--orange) !important; }
.adm-content .style1, .adm-content .error, .adm-content .text-danger { color: #b8430a !important; }
.adm-content .btn-primary, .adm-content .btn-success, .adm-content .btn-info { background: var(--grad); border-color: transparent; color: #fff; border-radius: 99px; }
.adm-content .btn-danger, .adm-content .btn-warning, .adm-content .btn-default { background: #fff; border: 1.5px solid var(--ink); color: var(--ink); border-radius: 99px; }
.adm-content .label-primary, .adm-content .label-info, .adm-content .label-success, .adm-content .badge { background: var(--orange); }
.adm-content .alert-success, .adm-content .alert-info { background: var(--cream); border-color: #ffd2a8; color: #7a3300; }
.adm-content .alert-danger, .adm-content .alert-warning { background: #fff; border: 1px solid var(--ink); color: var(--ink); }
.adm-content .table > thead > tr > th, .adm-content .table > tbody > tr.danger > td, .adm-content .table > tbody > tr.info > td { background: var(--peach); color: var(--ink); }
.adm-content .table-bordered { border-color: var(--line); }
.adm-content .table-bordered > tbody > tr > td { border-color: var(--line); }
.adm-out:hover { background: var(--orange); }
.ad-btn.danger:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.ad-count.full b { color: var(--orange); }
.ad-item.off { opacity: .7; }
.ad-form input.invalid, .ad-form select.invalid, .ad-form textarea.invalid { border-color: var(--orange); background: #fff8f2; box-shadow: 0 0 0 3px rgba(232, 89, 12, .15); }
.ad-err { color: #b8430a; font-size: 12.5px; margin-top: 4px; display: flex; gap: 6px; align-items: center; font-weight: 500; }
.ad-err::before { content: ""; font-family: FontAwesome; }

/* ---------- list components: download menu, pagination ---------- */
.ad-dl { position: relative; display: inline-block; }
.ad-dl > summary { list-style: none; cursor: pointer; user-select: none; }
.ad-dl > summary::-webkit-details-marker { display: none; }
.ad-dl .menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(29, 36, 51, .2); padding: 6px; }
.ad-dl .menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink) !important; font-weight: 500; }
.ad-dl .menu a i { width: 18px; color: var(--orange); text-align: center; }
.ad-dl .menu a small { margin-left: auto; color: var(--muted); }
.ad-dl .menu a:hover { background: var(--peach); }
.ad-pager { align-items: center; }
.ad-pager .info { background: none; border: 0; color: var(--muted); font-size: 13px; padding: 0 10px 0 0; margin-right: auto; }
.ad-pager .gap { color: var(--muted); padding: 6px 2px; font-weight: 400; }
.ad-pager a:hover { background: var(--peach); border-color: var(--saffron); }

.adm-main { min-width: 0; }
.adm-content { overflow-x: auto; }
.adm-content table { max-width: 100%; }
.adm-content .ck.ck-editor { width: 100%; }

/* ---------- media library ---------- */
.ml-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.ml-folder { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.ml-folder:hover { transform: translateY(-3px); border-color: var(--saffron); }
.ml-folder > a { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; color: var(--ink) !important; }
.ml-folder > a i { font-size: 30px; color: var(--saffron); margin-bottom: 6px; }
.ml-folder > a b { word-break: break-all; }
.ml-folder > a small { color: var(--muted); }
.ml-folder form { position: absolute; top: 10px; right: 10px; margin: 0; }
.ml-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.ml-file { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.ml-file .th { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--cream); border-radius: 10px; overflow: hidden; color: var(--orange) !important; font-size: 44px; }
.ml-file .th img { width: 100%; height: 100%; object-fit: cover; }
.ml-file .nm { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.ml-file .meta { font-size: 11.5px; color: var(--muted); }
.ml-file .tools { display: flex; gap: 6px; margin-top: 6px; align-items: flex-start; }
.ml-file .tools form { margin: 0; }
.ml-ren > summary { list-style: none; cursor: pointer; }
.ml-ren > summary::-webkit-details-marker { display: none; }
.ml-ren[open] > form { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 5; background: #fff; border: 1px solid var(--saffron); border-radius: 12px; padding: 10px; box-shadow: 0 14px 30px rgba(29, 36, 51, .25); }

/* ---- tabs (Home page, Announcements) ---- */
.ad-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin: 0 0 18px; }
.ad-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; font-weight: 600; font-size: 14px; color: var(--muted); border-radius: 12px 12px 0 0; margin-bottom: -2px; border-bottom: 3px solid transparent; transition: background .2s, color .2s; }
.ad-tabs a:hover { background: var(--cream); color: var(--orange); }
.ad-tabs a.on { color: var(--orange); background: #fff; border-bottom-color: var(--saffron); }
.ad-tabs a b { background: var(--cream); color: var(--orange); border-radius: 99px; font-size: 11px; padding: 1px 8px; font-weight: 700; }
.ad-tabs a.on b { background: var(--saffron); color: #fff; }
@media (max-width: 600px) { .ad-tabs a { padding: 10px 12px; font-size: 13px; } }

/* ---- list toolbar, pills, row actions, dialog (Chatbot manager) ---- */
.ad-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 20px 0 12px; }
.ad-bar h2 { font-size: 18px; margin: 0; } .ad-bar h2 i { color: var(--orange); margin-right: 6px; }
.ad-pill { display: inline-block; border-radius: 99px; font-size: 11.5px; font-weight: 600; padding: 2px 10px; background: var(--peach); color: var(--orange); }
.ad-pill.off { background: #eceef3; color: #6b7385; }
.ad-table tr.off td { opacity: .62; }
.ad-table .act { display: flex; gap: 5px; flex-wrap: nowrap; } .ad-table .act form { margin: 0; }
.faq-table td.nm small { display: block; font-size: 11.5px; margin-top: 3px; }
.ad-dlg { border: 0; border-radius: 20px; padding: 0; width: min(760px, calc(100vw - 24px)); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.ad-dlg::backdrop { background: rgba(26, 18, 8, .55); backdrop-filter: blur(2px); }
.ad-dlg form { padding: 22px 24px; margin: 0; }
.ad-dlg .dh { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--peach); padding-bottom: 10px; }
.ad-dlg .dh h3 { margin: 0; font-size: 19px; color: var(--orange); }
.ad-dlg .dh .x { border: 0; background: var(--cream); color: var(--orange); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.ad-dlg .dh .x:hover { background: var(--saffron); color: #fff; }

/* ---- notification bell + toast ---- */
.adm-bell { position: relative; }
.adm-bell .bell { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--orange); font-size: 18px; cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.adm-bell .bell:hover, .adm-bell .bell.has { background: var(--cream); border-color: var(--saffron); }
.adm-bell .bell b { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--saffron); color: #fff; font-size: 11px; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.adm-bell .bell .live { position: absolute; bottom: 3px; right: 3px; width: 9px; height: 9px; border-radius: 50%; background: #c8cdd8; box-shadow: 0 0 0 2px #fff; }
.adm-bell .bell .live.on { background: #2fb36d; }
.adm-bell .bell.ring i { animation: bellRing .9s ease; transform-origin: 50% 0; }
@keyframes bellRing { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(18deg); } 30% { transform: rotate(-16deg); } 45% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 75% { transform: rotate(4deg); } }
.adm-bell .panel { position: absolute; right: 0; top: 50px; width: 330px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .2); overflow: hidden; z-index: 80; }
.adm-bell .panel[hidden] { display: none; }
.adm-bell .ph { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--peach); font-size: 14px; }
.adm-bell .ph a { color: var(--orange); font-size: 12.5px; font-weight: 600; }
.adm-bell .it { display: flex; gap: 12px; align-items: center; padding: 11px 16px; border-top: 1px solid #f3eadc; color: var(--ink); }
.adm-bell .it:hover { background: #fffaf3; }
.adm-bell .it i { width: 34px; height: 34px; border-radius: 50%; background: var(--cream); color: var(--orange); display: grid; place-items: center; flex: none; }
.adm-bell .it span { flex: 1; min-width: 0; } .adm-bell .it b { display: block; font-size: 13.5px; } .adm-bell .it small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-bell .it em { font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; }
.adm-bell .none { margin: 0; padding: 20px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.adm-toast { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; gap: 12px; align-items: center; background: var(--ink); color: #fff; border-left: 5px solid var(--saffron); border-radius: 14px; padding: 13px 18px; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); transform: translateY(30px); opacity: 0; transition: transform .35s, opacity .35s; }
.adm-toast.on { transform: none; opacity: 1; }
.adm-toast i { color: var(--saffron); font-size: 22px; } .adm-toast b { display: block; } .adm-toast small { color: #ddd; }
@media (max-width: 600px) { .adm-top .act { gap: 8px; } .adm-bell .panel { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; max-width: none; } }
.faq-table { table-layout: fixed; width: 100%; min-width: 980px; }
.faq-table th:nth-child(1) { width: 44px; } .faq-table th:nth-child(2) { width: 27%; } .faq-table th:nth-child(4) { width: 110px; }
.faq-table th:nth-child(5) { width: 88px; } .faq-table th:nth-child(6) { width: 62px; } .faq-table th:nth-child(7) { width: 232px; }
.faq-table td { overflow-wrap: anywhere; word-break: normal; }
.ad-dlg .bar { justify-content: space-between; align-items: center; }
.faq-table td { overflow-wrap: break-word; }
.faq-table th:nth-child(2) { width: 24%; } .faq-table th:nth-child(4) { width: 130px; }

/* ================= components + animation (App\Ui, assets/js/ui.js) ================= */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } }
.adm-content { animation: pageIn .45s ease; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
.ad-head-act { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ad-btn { position: relative; overflow: hidden; }
.ad-btn .rip, .btn .rip { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .55); transform: scale(0); animation: rip .65s ease-out forwards; pointer-events: none; }
@keyframes rip { to { transform: scale(2.6); opacity: 0; } }
form.inl { display: inline; margin: 0; }

/* panel (card with a title) */
.ad-panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 18px; }
.ad-panel > h2 { font-size: 18px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--peach); display: flex; align-items: center; gap: 10px; }
.ad-panel > h2 i { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 15px; }

/* dashboard tiles */
.ad-stats.big { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.ad-stats.big .ad-stat { position: relative; overflow: hidden; padding: 20px 20px 18px; border-radius: 20px; }
.ad-stats.big .ad-stat::after { content: ''; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--peach); transition: transform .5s; z-index: 0; }
.ad-stats.big .ad-stat:hover::after { transform: scale(2.4); }
.ad-stats.big .ad-stat > * { position: relative; z-index: 1; }
.ad-stats.big .ad-stat i { width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 20px; margin-bottom: 12px; box-shadow: 0 8px 18px rgba(232, 89, 12, .3); transition: transform .35s; }
.ad-stats.big .ad-stat:hover i { transform: rotate(-8deg) scale(1.1); }
.ad-stats.big .ad-stat b { font-size: 34px; }
.ad-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 20px; }
.ad-action { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; color: var(--ink); box-shadow: var(--shadow); transition: transform .25s, border-color .25s, box-shadow .25s; }
.ad-action:hover { transform: translateY(-4px); border-color: var(--saffron); box-shadow: 0 14px 30px rgba(232, 89, 12, .16); color: var(--ink); }
.ad-action > i { width: 44px; height: 44px; border-radius: 12px; background: var(--cream); color: var(--orange); display: grid; place-items: center; font-size: 19px; flex: none; transition: background .25s, color .25s; }
.ad-action:hover > i { background: var(--grad); color: #fff; }
.ad-action span { flex: 1; min-width: 0; } .ad-action b { display: block; font-size: 14.5px; } .ad-action small { color: var(--muted); font-size: 12.5px; }
.ad-action em { color: #c8b79c; font-size: 22px; transition: transform .25s, color .25s; } .ad-action:hover em { transform: translateX(4px); color: var(--orange); }
.ad-welcome { background: var(--grad); color: #fff; border-radius: 22px; padding: 26px 30px; margin-bottom: 20px; position: relative; overflow: hidden; box-shadow: 0 16px 36px rgba(232, 89, 12, .28); }
.ad-welcome::before, .ad-welcome::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.ad-welcome::before { width: 220px; height: 220px; right: -50px; top: -90px; animation: floaty 7s ease-in-out infinite; } .ad-welcome::after { width: 120px; height: 120px; right: 140px; bottom: -60px; animation: floaty 9s ease-in-out infinite reverse; }
@keyframes floaty { 50% { transform: translateY(14px) scale(1.06); } }
.ad-welcome h1 { margin: 0 0 6px; font-size: 26px; color: #fff; } .ad-welcome p { margin: 0; opacity: .92; max-width: 640px; position: relative; z-index: 1; }

/* legacy markup inside .adm-content gets the same look */
.adm-content .innercontent { background: transparent; padding: 0; border: 0; box-shadow: none; }
.adm-content table.ad-table:not(.faq-table) td, .adm-content table.ad-table:not(.faq-table) th { vertical-align: middle; }
.adm-content table.table-bordered { border: 0; }
.adm-content input[type=text], .adm-content input[type=password], .adm-content input[type=email], .adm-content input[type=number], .adm-content input[type=date], .adm-content input[type=search], .adm-content select, .adm-content textarea { font: inherit; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fff; max-width: 100%; transition: border-color .2s, box-shadow .2s; }
.adm-content input:focus, .adm-content select:focus, .adm-content textarea:focus { outline: 0; border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(245, 130, 32, .16); }
.adm-content input[type=file] { border: 2px dashed #f0c79c; border-radius: 14px; padding: 14px; background: var(--cream); width: 100%; cursor: pointer; }
.adm-content input[type=file]:hover { border-color: var(--saffron); }
.adm-content input[type=submit], .adm-content input[type=button], .adm-content .btn-primary, .adm-content .btn-default { border: 0; background: var(--grad); color: #fff; font-weight: 600; border-radius: 99px; padding: 9px 22px; cursor: pointer; box-shadow: 0 8px 18px rgba(232, 89, 12, .28); transition: transform .2s; position: relative; overflow: hidden; }
.adm-content input[type=submit]:hover, .adm-content input[type=button]:hover { transform: translateY(-2px); }
.adm-content .col-md-8, .adm-content .col-md-12 { width: 100%; float: none; padding: 0; }
.adm-content .row { margin: 0; }
.adm-content hr { border-color: var(--peach); }

/* more components */
.ad-grp { margin: 10px 0 0; padding-bottom: 6px; font-size: 14px; color: var(--orange); text-transform: uppercase; letter-spacing: 1.2px; border-bottom: 1px dashed #f0c79c; }
.ad-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; background: var(--cream); color: var(--orange); }
.cur { background: var(--cream); border: 1px dashed #f0c79c; border-radius: 10px; padding: 8px 12px; margin: 0 0 8px; word-break: break-all; }
.ad-sub { font-size: 18px; margin: 22px 0 12px; }
.pickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pickgrid label { position: relative; display: block; border-radius: 14px; overflow: hidden; border: 2px solid var(--line); cursor: pointer; aspect-ratio: 4/3; background: #fff; transition: transform .2s, border-color .2s; }
.pickgrid label:hover { transform: translateY(-3px); border-color: var(--saffron); }
.pickgrid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pickgrid input { position: absolute; opacity: 0; }
.pickgrid label i { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: transparent; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); transition: all .2s; }
.pickgrid input:checked ~ i { background: var(--orange); color: #fff; }
.pickgrid label:has(input:checked) { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232, 89, 12, .25); }
.adm-content input[type=file]::file-selector-button, .ad-form input[type=file]::file-selector-button { border: 0; background: var(--grad); color: #fff; font: inherit; font-weight: 600; font-size: 13px; padding: 7px 16px; border-radius: 99px; margin-right: 12px; cursor: pointer; }
.ad-form .f input:not([type=checkbox]):not([type=radio]), .ad-form .f select, .ad-form .f textarea { width: 100%; }
.ad-form .f input[type=password] { font: inherit; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fff; }

/* ---- list toolbar (Create at the top left) + dialogs ---- */
.ad-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 16px; }
.ad-toolbar .create { padding: 10px 20px 10px 14px; font-size: 14.5px; }
.ad-toolbar .create i { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .25); display: grid; place-items: center; font-size: 13px; margin-right: 2px; }
.ad-toolbar .create span { margin-left: 6px; }
.ad-tb-extra { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.ad-dlg.wide { width: min(980px, calc(100vw - 24px)); }
.ad-dlg form { max-height: calc(100vh - 40px); overflow-y: auto; }
.ad-dlg .cur-img { max-width: 220px; max-height: 120px; border-radius: 12px; display: block; margin: 0 0 8px; object-fit: cover; border: 1px solid var(--line); }
.ad-dlg .cur-file { display: inline-block; background: var(--cream); border: 1px dashed #f0c79c; border-radius: 10px; padding: 6px 12px; margin-bottom: 8px; font-size: 13px; }
.ad-thumb-sm { width: 74px; height: 50px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; background: var(--cream); }
.ad-table td .act { display: flex; gap: 5px; }

/* ---------- department profile form: grouped questions ---------- */
.ad-form .ad-sec { background: var(--card, #fff); border: 1px solid var(--line, #eadfd0); border-radius: 16px; margin: 14px 0; overflow: hidden; grid-column: 1 / -1; }
.ad-form .ad-sec > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; cursor: pointer; font-weight: 600; list-style: none; }
.ad-form .ad-sec > summary::-webkit-details-marker { display: none; }
.ad-form .ad-sec > summary::after { content: '\f107'; font-family: FontAwesome; margin-left: auto; transition: transform .2s; }
.ad-form .ad-sec[open] > summary::after { transform: rotate(180deg); }
.ad-form .ad-sec > summary b { font-weight: 500; font-size: 12.5px; color: var(--muted, #7a6f63); background: rgba(245, 130, 32, .1); border-radius: 99px; padding: 3px 12px; }
.ad-form .ad-sec-body { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px 16px; padding: 4px 20px 20px; }
.ad-form .ad-sec-body .f { grid-column: span 12; }
.ad-form .qno { display: inline-grid; place-items: center; min-width: 26px; height: 22px; margin-right: 8px; border-radius: 99px; background: var(--grad, linear-gradient(135deg, #f58220, #e8590c)); color: #fff; font-size: 12px; font-weight: 600; }
.ad-form table.posts input { width: 110px; }
.ad-form .bar.sticky { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; padding: 12px 0; background: linear-gradient(0deg, var(--bg, #fbf6ef) 70%, transparent); }
.ad-form > .ad-panel { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px 16px; margin-bottom: 4px; }
.ad-form > .ad-panel > h2 { grid-column: 1 / -1; margin-bottom: 2px; }
.ad-form .f.w9 { grid-column: span 9; }
@media (max-width: 760px) { .ad-form .f.w9 { grid-column: span 12; } }

/* a dialog with a rich text editor (data-nonmodal): looks like a modal, but is not in the top layer so the editor's link box and colour pickers show above it */
.ad-dlg[data-nonmodal][open] { position: fixed; inset: 0; margin: auto; z-index: 900; box-shadow: 0 0 0 200vmax rgba(15, 18, 28, .55), 0 30px 80px rgba(0, 0, 0, .35); }
.ad-form [hidden] { display: none !important; }

/* ---------- icons are only coloured: no circle, square or shadow behind them ---------- */
.adm-bell .it i { width: auto; height: auto; border-radius: 0; background: none; color: var(--orange); font-size: 18px; }
.ad-panel > h2 i { width: auto; height: auto; border-radius: 0; background: none; color: var(--orange); display: inline-block; font-size: 20px; }
.ad-stats.big .ad-stat::after { display: none; }
.ad-stats.big .ad-stat i { width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; color: var(--orange); display: block; font-size: 26px; margin-bottom: 10px; }
.ad-stats.big .ad-stat:hover i { transform: scale(1.12); }
.ad-action > i { width: auto; height: auto; border-radius: 0; background: none; color: var(--orange); display: inline-block; font-size: 24px; }
.ad-action:hover > i { background: none; color: var(--orange-d, #e8590c); transform: scale(1.12); }
.ad-toolbar .create i { width: auto; height: auto; border-radius: 0; background: none; font-size: 15px; margin-right: 0; }
.ad-dlg .dh .x { width: auto; height: auto; border-radius: 0; background: none; color: var(--muted); font-size: 18px; padding: 4px 6px; }
.ad-dlg .dh .x:hover { background: none; color: var(--orange); }
/* the icon buttons of a table row (edit, move, hide, delete) are bare coloured icons */
.ad-btn.sm.ico { background: none; border: 0; box-shadow: none; padding: 6px 8px; border-radius: 8px; color: var(--muted); font-size: 15px; }
.ad-btn.sm.ico:hover { background: var(--cream); color: var(--orange); box-shadow: none; transform: none; }
.ad-btn.sm.ico[data-dialog] { color: var(--orange); }
.ad-btn.sm.ico.danger { color: #c0392b; background: none; border: 0; }
.ad-btn.sm.ico.danger:hover { background: #fdecea; color: #a52a1f; }
.ad-btn.sm.ico.line { border: 0; }

.adm-bell .bell { width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; font-size: 20px; }
.adm-bell .bell:hover, .adm-bell .bell.has { background: var(--cream); border: 0; }
.adm-bell .bell .live { display: none; }

/* ---------- self-saving checkboxes in table rows ---------- */
.ad-table form.sw { margin: 0; display: inline-block; }
.ad-table form.sw .ad-check { margin: 0; padding: 0; }
.ad-table form.sw input[type=checkbox] { width: 18px; height: 18px; cursor: pointer; accent-color: #f58220; }
.lp .lp-other { margin-top: 6px; }

/* ---------- sign-in form (inside .adm-login-card) ---------- */
.lg-card { display: grid; gap: 14px; text-align: left; }
.lg-badge { justify-self: center; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: #fff1e3; color: #f58220; font-size: 24px; animation: lgPop .6s cubic-bezier(.3, 1.5, .5, 1) both; }
.lg-card h1 { margin: 0; text-align: center; font-family: 'Playfair Display', serif; font-size: 26px; }
.lg-sub { margin: -6px 0 4px; text-align: center; color: #6b7280; font-size: 14px; }
.lg-err { padding: 10px 14px; border-radius: 12px; background: #fdecec; color: #b42318; font-size: 14px; animation: lgShake .4s both; }
.lg-f { position: relative; display: block; margin: 0; }
.lg-f span { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: #374151; }
.lg-f > i { position: absolute; left: 14px; bottom: 13px; color: #f58220; }
.lg-f input { width: 100%; padding: 11px 44px 11px 40px; border: 1px solid #e3e6ea; border-radius: 12px; font: inherit; transition: border-color .2s, box-shadow .2s; }
.lg-f input:focus { outline: 0; border-color: #f58220; box-shadow: 0 0 0 4px rgba(245, 130, 32, .16); }
.lg-eye { position: absolute; right: 6px; bottom: 5px; width: 36px; height: 36px; border: 0; background: none; color: #8a93a0; cursor: pointer; border-radius: 10px; }
.lg-eye:hover { color: #f58220; }
.lg-go { margin-top: 4px; padding: 12px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #f58220, #e8590c); color: #fff; font-weight: 600; font-size: 16px; cursor: pointer; box-shadow: 0 10px 22px rgba(232, 89, 12, .3); transition: transform .2s, box-shadow .2s, opacity .2s; }
.lg-go:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(232, 89, 12, .4); }
.lg-go i { margin-left: 6px; transition: transform .2s; }
.lg-go:hover i { transform: translateX(4px); }
.lg-go:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.lg-go.busy { opacity: .7; pointer-events: none; }
@keyframes lgPop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lgShake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .lg-badge, .lg-err { animation: none; } }
