/* Custom styles on top of Bootstrap 5 */
.feature-icon {
    width: 3rem; height: 3rem; border-radius: .75rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bs-primary-bg-subtle); color: var(--bs-primary); font-size: 1.4rem;
}
.stat-icon {
    width: 3rem; height: 3rem; border-radius: .75rem;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.admin-sidebar { min-height: calc(100vh - 56px); }
@media (max-width: 767.98px) { .admin-sidebar { min-height: auto; } }
.card { border-radius: .75rem; }

/* Arabic / RTL */
:root { --bs-body-font-family: "El Messiri", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif; }
[dir="rtl"] body { line-height: 1.7; }
/* Directional icons point the other way in RTL */
[dir="rtl"] .bi-box-arrow-right,
[dir="rtl"] .bi-box-arrow-in-right,
[dir="rtl"] .bi-arrow-right,
[dir="rtl"] .bi-arrow-left,
[dir="rtl"] .bi-send { display: inline-block; transform: scaleX(-1); }
/* Latin-only values (emails, URLs, code, file names) stay LTR inside RTL text */
[dir="rtl"] input[type="email"],
[dir="rtl"] input[type="url"],
[dir="rtl"] input[type="password"] { direction: ltr; text-align: right; }
[dir="rtl"] input[type="email"]::placeholder { direction: rtl; }
[dir="rtl"] code, .ltr { direction: ltr; unicode-bidi: embed; }


/* Latest activities panels */
.activity-panel {
    --panel-bg: linear-gradient(145deg, #4f46e5, #7c3aed);
    display: flex; flex-direction: column;
    border-radius: 1rem; color: #fff; overflow: hidden; position: relative;
    background: var(--panel-bg);
    box-shadow: 0 .75rem 1.75rem -.75rem rgba(15, 23, 42, .45);
    transition: transform .2s ease, box-shadow .2s ease;
}
.activity-panel::before {           /* soft decorative glow */
    content: ""; position: absolute; inset-block-start: -40%; inset-inline-end: -30%;
    width: 16rem; height: 16rem; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%);
    pointer-events: none;
}
.activity-panel:hover { transform: translateY(-3px); box-shadow: 0 1.25rem 2rem -.75rem rgba(15, 23, 42, .55); }
.activity-panel--conf { --panel-bg: linear-gradient(145deg, #4338ca 0%, #7c3aed 100%); }
.activity-panel--symp { --panel-bg: linear-gradient(145deg, #0f766e 0%, #10b981 100%); }
.activity-panel--work { --panel-bg: linear-gradient(145deg, #c2410c 0%, #e11d48 100%); }
.activity-panel--semi { --panel-bg: linear-gradient(145deg, #1d4ed8 0%, #0891b2 100%); }

.activity-panel__head {
    display: flex; align-items: center; gap: .75rem;
    padding: 1rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.18); position: relative;
}
.activity-panel__icon {
    width: 2.4rem; height: 2.4rem; border-radius: .7rem; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem;
    background: rgba(255,255,255,.2);
}
.activity-panel__count { background: rgba(255,255,255,.22); color: #fff; }

.activity-panel__list {
    height: 26rem; overflow-y: auto; overscroll-behavior: contain;
    padding: .75rem; display: flex; flex-direction: column; gap: .6rem; position: relative;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.45) transparent;
}
.activity-panel__list::-webkit-scrollbar { width: 6px; }
.activity-panel__list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.45); border-radius: 3px; }

.activity-item {
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18);
    border-radius: .7rem; padding: .65rem .8rem; flex-shrink: 0;
    backdrop-filter: blur(4px); transition: background .15s ease;
}
.activity-item:hover { background: rgba(255,255,255,.24); }
.activity-item__title {
    font-weight: 600; font-size: .92rem; line-height: 1.5; margin-bottom: .3rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.activity-item__title a { color: inherit; text-decoration: none; }
.activity-item__title a:hover { text-decoration: underline; }
.activity-item__meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
    font-size: .78rem; opacity: .88;
}
.activity-item__badge { background: #fff; color: #0f172a; font-weight: 600; }

.activity-panel__more {
    display: block; text-align: center; padding: .7rem; position: relative;
    color: #fff; text-decoration: none; font-weight: 500; font-size: .9rem;
    background: rgba(0,0,0,.12); border-top: 1px solid rgba(255,255,255,.15);
}
.activity-panel__more:hover { color: #fff; background: rgba(0,0,0,.2); }
[dir="ltr"] .activity-panel__more .bi-arrow-left-short { display: inline-block; transform: scaleX(-1); }
@media (max-width: 767.98px) { .activity-panel__list { height: 20rem; } }

.navbar-brand {
    font-family: Ruwudu;
    font-weight: bold;
    text-shadow:
    1px 1px 2px rgba(0,0,0,0.25),   /* soft base shadow */
    0 0 6px rgba(0, 123, 255, 0.4), /* outer glow */
    0 0 2px rgba(255,255,255,0.8);  /* inner highlight */
    animation: brandGlow 3s ease-in-out infinite;
    
}

.navbar {
  background-color: #0a3d62; /* Deep academic blue */
}

.navbar-brand {
  color: #ffffff !important;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.25);
}

.navbar .nav-link {
  color: #dfe6e9 !important;
  font-weight: 500;
}

.navbar .nav-link:hover {
  color: #ffd700 !important; /* Gold hover */
}

.navbar .nav-link.active {
  color: #ffffff !important;
  border-bottom: 2px solid #ffd700;
}
.shaded {
    font-family: Ruwudu;
    text-shadow: 0 0 8px rgba(31, 32, 34, 0.6);
}
/* Activities listing (/symp) */
.activity-hero {
    border-radius: 1rem; color: #fff; padding: 2rem; position: relative; overflow: hidden;
    background: var(--panel-bg);
    box-shadow: 0 .75rem 1.75rem -.75rem rgba(15, 23, 42, .45);
}
.activity-hero::before {
    content: ""; position: absolute; inset-block-start: -50%; inset-inline-start: -10%;
    width: 24rem; height: 24rem; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.2), transparent 70%);
}
.activity-hero__icon { width: 3.5rem; height: 3.5rem; font-size: 1.6rem; border-radius: 1rem; }
.activity-hero__search .input-group-text,
.activity-hero__search .form-control { border: 0; }
.activity-hero__search .input-group-text { background: #fff; color: #6c757d; }
.activity-hero__search .form-control:focus { box-shadow: none; }
.activity-hero__search .input-group { border-radius: .75rem; overflow: hidden; box-shadow: 0 .5rem 1rem rgba(0,0,0,.15); }

.activity-tabs .nav-link { border-radius: 2rem; color: var(--bs-body-color); }
.activity-tabs .nav-link.active { background: var(--bs-primary); color: #fff; }

.activity-card { border-inline-start: 4px solid var(--accent, var(--bs-primary)) !important; transition: box-shadow .15s ease; }
.activity-card:hover { box-shadow: 0 .5rem 1.25rem rgba(15, 23, 42, .12) !important; }
.activity-card--conf { --accent: #6d28d9; }
.activity-card--symp { --accent: #0d9488; }
.activity-card--work { --accent: #e11d48; }
.activity-card--semi { --accent: #0891b2; }
.activity-card mark { padding: 0 .15em; border-radius: .2em; background: #fde68a; }
.activity-card__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .85rem; color: var(--bs-secondary-color); }
.activity-card__meta .bi { color: var(--accent); margin-inline-end: .35rem; }
.activity-card__toggle { color: var(--accent); text-decoration: none; font-weight: 500; }
.activity-card__toggle .bi { display: inline-block; transition: transform .2s ease; }
.activity-card__toggle:not(.collapsed) .bi { transform: rotate(180deg); }
.activity-card__details { font-size: .9rem; border-top: 1px dashed var(--bs-border-color); padding-top: .75rem; }
.activity-card__details dt { color: var(--bs-secondary-color); font-weight: 500; }

/* Organising-colleges picker on the activity form */
.college-picker { max-height: 20rem; overflow-y: auto; padding-inline-end: .25rem; }
.min-w-0 { min-width: 0; }

/* Recommendations */
.recoms-list { padding-inline-start: 1.25rem; }
.recoms-list > li { padding-block: .4rem; border-bottom: 1px dashed var(--bs-border-color); }
.recoms-list > li:last-child { border-bottom: 0; }

/* Recommendation review workflow */
.recom-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 0; }
.recom-steps > li {
    flex: 1 1 8rem; position: relative; text-align: center; padding-top: 2.4rem;
    color: var(--bs-secondary-color); font-size: .85rem;
}
.recom-steps > li::before {                      /* connector line */
    content: ""; position: absolute; top: .95rem; inset-inline-start: 50%; width: 100%; height: 2px;
    background: var(--bs-border-color);
}
.recom-steps > li:last-child::before { display: none; }
.recom-steps > li.done::before { background: var(--bs-success); }
.recom-steps__dot {
    position: absolute; top: 0; inset-inline-start: 50%; transform: translateX(50%);
    width: 2rem; height: 2rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--bs-body-bg); border: 2px solid var(--bs-border-color); z-index: 1;
}
[dir="ltr"] .recom-steps__dot { transform: translateX(-50%); }
.recom-steps > li.done { color: var(--bs-body-color); }
.recom-steps > li.done .recom-steps__dot { background: var(--bs-success); border-color: var(--bs-success); color: #fff; }
.recom-steps__label { display: block; font-weight: 600; }
.recom-steps__date { display: block; font-size: .78rem; }
@media (max-width: 575.98px) {                    /* vertical timeline on phones */
    .recom-steps { flex-direction: column; gap: 0; }
    .recom-steps > li { flex: none; text-align: start; padding: .2rem 0 1.1rem; padding-inline-start: 2.9rem; min-height: 3.2rem; }
    .recom-steps > li::before { top: 2rem; bottom: 0; inset-inline-start: .95rem; width: 2px; height: auto; }
    .recom-steps__dot, [dir="ltr"] .recom-steps__dot { inset-inline-start: 0; transform: none; }
}

/* Activity log */
.log-table .badge:empty, .log-table .badge { padding: .25em .3em; }
.log-changes { font-size: .8rem; }
.log-changes td { white-space: pre-wrap; word-break: break-word; max-width: 22rem; }

/* Administration (/mang) */
@media (min-width: 992px) {
    .mang-sidebar { position: sticky; top: 56px; min-height: calc(100vh - 56px); }
}
.mang-sidebar .nav-link.active { background: var(--bs-primary); }
.mang-stat { border-inline-start: 4px solid var(--accent, var(--bs-primary)) !important; }
.mang-stat a { color: inherit; text-decoration: none; }
.mang-stat:hover { box-shadow: 0 .5rem 1rem rgba(15, 23, 42, .1) !important; }

/* About page */
.about-hero {
    position: relative; overflow: hidden; border-radius: 1.25rem; color: #fff; padding: 3rem 2.5rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #4338ca 55%, #7c3aed 100%);
    box-shadow: 0 1rem 2rem -1rem rgba(30, 58, 138, .6);
}
.about-hero::before {
    content: ""; position: absolute; inset-block-start: -35%; inset-inline-end: -10%; width: 28rem; height: 28rem;
    border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
}
.about-hero__badge { background: rgba(255,255,255,.18); font-weight: 500; }
.about-hero__icon { font-size: 9rem; opacity: .25; }
.opacity-90 { opacity: .9; }
.about-figure { border-top: 4px solid var(--bs-primary) !important; }
.about-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); counter-reset: step; }
.about-steps > li { counter-increment: step; text-align: center; position: relative; }
.about-steps__num {
    width: 3.2rem; height: 3.2rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--bs-primary-bg-subtle); color: var(--bs-primary); font-size: 1.35rem; position: relative; margin-bottom: .5rem;
}
.about-steps__num::after {
    content: counter(step); position: absolute; inset-block-start: -.3rem; inset-inline-end: -.3rem;
    width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--bs-primary); color: #fff;
    font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.about-steps__text { display: block; font-size: .9rem; font-weight: 500; }
@media (max-width: 575.98px) { .about-hero { padding: 2rem 1.25rem; } }
