/* Reusable UI component styles */
/* Image / brand sizes */
.brand-small{width:92px;max-width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:6px;display:block}
.brand-medium{max-height:120px;width:auto}

/* QR images */
.qr-img{max-width:160px;border:1px solid rgba(15,23,42,0.06);padding:4px;border-radius:6px;background:#fff}
.qr-img-lg{max-width:320px;width:100%;height:auto;border-radius:6px;border:1px solid rgba(15,23,42,0.06);padding:6px;background:#fff}

/* Fixed width helper */
.fixed-width-80{width:80px!important}

/* Modal preview area and iframe */
.modal-preview{min-height:min(48vh,480px)}
.iframe-preview{width:100%;height:auto;aspect-ratio:16/9;border:0}

/* Team figure sizing */
.hero-figure{width:100%;height:340px;overflow:hidden}
.hero-figure img{width:100%;height:100%;object-fit:content;display:block}
.avatar-sm{width:84px;max-width:100%;aspect-ratio:1/1;height:auto;object-fit:cover;border-radius:8px}

/* Small utility spacing */
.u-gap-1{gap:.5rem}
.u-gap-2{gap:1rem}

/* Button / form component base (kept minimal; theme.css contains main tokens) */
.btn-sm-rounded{padding:.35rem .6rem;border-radius:8px;font-weight:600}

/* Accessibility: make interactive elements easier to target */
.focus-ring:focus{outline:3px solid rgba(22,163,74,0.15);outline-offset:3px}

/* Legacy Bootstrap `.btn-*` selectors removed — use the namespaced `c-btn` system instead. */

/* Input size helpers (complements Bootstrap's form-control-sm/lg) */
.input-sm{padding:.45rem .6rem;font-size:0.9rem}
.input-lg{padding:.85rem 1rem;font-size:1.02rem}

/* Form group spacing utility */
.form-group{margin-bottom:1rem}

/* Compact card variant */
.card-compact{padding:.75rem;border-radius:10px}

/* Elevated card variant: borderless with consistent shadow, padding and surface background */
.card-elevated{border:0;border-radius:12px;padding:1rem;background:var(--surface);box-shadow:var(--shadow-1)}

/* Team / profile card: compact variant used for member/team tiles */
.card-team{border:0;border-radius:12px;padding:1rem;background:var(--surface);box-shadow:var(--shadow-1);display:flex;flex-direction:column;align-items:center}

/* New namespaced component button system (migration-friendly). */
.c-btn{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;padding:.6rem .9rem;border-radius:10px;font-weight:700;border:0;cursor:pointer;text-decoration:none}
.c-btn:focus{outline:3px solid rgba(22,163,74,0.12);outline-offset:3px}
.c-btn--primary{background:linear-gradient(180deg,var(--accent),var(--accent-600));color:#fff}
.c-btn--primary:hover{opacity:.96}
.c-btn--secondary{background:#f3f4f6;color:var(--text);border:1px solid rgba(15,23,42,0.06)}
.c-btn--outline{background:transparent;border:1px solid rgba(15,23,42,0.06);color:var(--text)}
.c-btn--outline.c-btn--primary{border-color:rgba(22,163,74,0.18);color:var(--accent)}
.c-btn--light{color:#fff;border:1px solid rgba(255,255,255,0.18)}
.c-btn--danger{background:#dc2626;color:#fff}
.c-btn--sm{padding:.35rem .6rem;font-size:.86rem;border-radius:8px}
.c-btn--lg{padding:.85rem 1.15rem;font-size:1.05rem}

/* Utility padding / rounded helpers to replace repeated utility combos */
.u-pad{padding:1rem}
.u-pad-md{padding:1.25rem}
.u-pad-lg{padding:1.5rem}
.u-rounded-lg{border-radius:1rem}

/* Glossy / legacy-variant modifiers (migration targets for `.btn-glossy` etc.) */
.c-btn--glossy{background:linear-gradient(180deg,var(--accent),var(--accent-600));color:#fff;box-shadow:var(--btn-shadow,0 12px 30px rgba(25,135,84,0.16));padding:.5rem .95rem;border:none;border-radius:10px;font-weight:700}
.c-btn--glossy:focus{outline:none;box-shadow:0 6px 22px rgba(16,185,129,0.16),0 0 0 4px rgba(16,185,129,0.06)}
.c-btn--glossy:hover{transform:translateY(-2px);box-shadow:0 18px 40px rgba(25,135,84,0.22)}
.c-btn--glossy:active{transform:translateY(0);box-shadow:0 8px 20px rgba(25,135,84,0.14)}
.c-btn--glossy[disabled],.c-btn--glossy.disabled{opacity:.65;pointer-events:none;box-shadow:none}

.c-btn--outline-gloss{background:transparent;border:1px solid rgba(25,135,84,0.18);color:var(--accent-600)}
.c-btn--outline-gloss:hover{background:linear-gradient(180deg,rgba(25,135,84,0.06),rgba(25,135,84,0.03));color:#0b5132;transform:translateY(-1px)}

.c-btn--icon{display:inline-flex;align-items:center;gap:.5rem;padding:.45rem .65rem}

.c-btn--loading{position:relative;pointer-events:none;opacity:.85}
.c-btn--loading::after{content:"";position:absolute;right:12px;top:50%;width:14px;height:14px;margin-top:-7px;border:2px solid rgba(255,255,255,0.45);border-top-color:rgba(255,255,255,0.95);border-radius:50%;animation:cbtn-spin .8s linear infinite}
@keyframes cbtn-spin{to{transform:rotate(360deg)}}

/* Responsive helpers */
img{max-width:100%;height:auto;display:block}

/* Small-screen adjustments */
@media (max-width:600px){
	.modal-preview{min-height:32vh}
	.avatar-sm{width:56px}
	.brand-small{width:56px}
}

@media (max-width:480px){
	.fixed-width-80{width:auto!important}
	.hero-figure{aspect-ratio:16/9}
}

/* Shared sidebar styles (extracted from members.css)
   Used by member and admin layouts via the `.member-sidebar` class
*/
.member-sidebar{background:#fff;border:1px solid #e9ecef;border-radius:14px;padding:12px;box-shadow:0 4px 18px rgba(0,0,0,0.05)}
.member-sidebar .sidebar-title{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#98a2b3;padding:10px 12px 8px}
.member-sidebar .sidebar-link{display:flex;align-items:center;gap:11px;padding:11px 12px;margin:3px 0;border-radius:9px;color:#344054;text-decoration:none;font-size:14px;font-weight:500;transition:all .2s ease}
.member-sidebar .sidebar-link i{width:20px;text-align:center;font-size:16px;color:#667085;transition:all .2s ease}
.member-sidebar .sidebar-link:hover{background:#f5f8ff;color:#2457d6}
.member-sidebar .sidebar-link:hover i{color:#2457d6}
.member-sidebar .sidebar-link.active{background:#eef4ff;color:#2457d6;font-weight:600}
.member-sidebar .sidebar-link.active i{color:#2457d6}
.member-sidebar .apply-header{display:flex;align-items:center;justify-content:space-between;cursor:pointer}
.member-sidebar .apply-header .arrow{font-size:12px;transition:transform .2s ease}
.member-sidebar .apply-header[aria-expanded="true"] .arrow{transform:rotate(180deg)}
.member-sidebar .submenu{margin:2px 0 7px 31px;padding-left:12px;border-left:1px solid #e4e7ec}
.member-sidebar .submenu a{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:7px;color:#667085;text-decoration:none;font-size:13px;transition:all .2s ease}
.member-sidebar .submenu a::before{content:"";width:5px;height:5px;border-radius:50%;background:#98a2b3;transition:all .2s ease}
.member-sidebar .submenu a:hover{color:#2457d6;background:#f8faff}
.member-sidebar .submenu a:hover::before{background:#2457d6}
.member-sidebar .sidebar-divider{height:1px;background:#f0f2f5;margin:10px 8px}



