/* ===== جمعية التوعية بأضرار المخدرات بجازان ===== */
/* Brand palette: Petrol #024E5F | Teal #107C7B | Sea Green #2A9D8F | Mint #34B39C */

:root {
    --navy: #024E5F;
    --navy-light: #0A6173;
    --teal: #107C7B;
    --teal-light: #2A9D8F;
    --sky: #34B39C;
    --sky-light: #7FD4BF;
    --cream: #E2F4EF;
    --cream-dark: #C5E8DF;
    --brand-green: #107C7B;
    --brand-green-light: #2A9D8F;
    --brand-yellow: #34B39C;
    --brand-orange: #2A9D8F;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --success: #16A34A;
    --danger: #dc2626;
    --warning: #E0A100;
    --shadow-sm: 0 1px 3px rgba(2,78,95,0.10);
    --shadow: 0 4px 16px rgba(2,78,95,0.14);
    --shadow-lg: 0 8px 32px rgba(2,78,95,0.18);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.2s ease;
    --navbar-height: 65px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Cairo', 'Segoe UI', sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-800);
    direction: rtl;
    margin: 0;
    min-height: 100vh;
}

/* عرض التواريخ: سنة/شهر/يوم بصيغة 2026/12/02 (LTR للأرقام داخل RTL) */
.date-display,
.event-meta-item .date-display,
td .date-display {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

/* وقت بصيغة 9:30 صباحاً — الوقت ثم الفترة بقراءة عربية صحيحة */
.display-time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    unicode-bidi: isolate;
}

.display-time-period {
    font-weight: inherit;
}

.display-datetime {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem;
    unicode-bidi: isolate;
}

.event-meta-item .display-datetime,
.event-meta-item .display-time,
td .display-datetime,
td .display-time {
    vertical-align: middle;
}

/* حقول التاريخ والوقت في النماذج */
input.datetime-rtl[type="datetime-local"],
input.datetime-rtl[type="date"] {
    direction: rtl;
    text-align: right;
}

/* ===== NAVBAR ===== */
.navbar {
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
    padding: 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.35s ease;
}

.navbar--browsing {
    box-shadow: 0 6px 24px rgba(2, 78, 95, 0.24);
    background: linear-gradient(135deg, rgba(2, 78, 95, 0.98) 0%, rgba(16, 124, 123, 0.98) 100%);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    text-decoration: none;
    color: white !important;
    flex: 1;
    min-width: 0;
    transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1), gap 0.35s ease;
}

.navbar--browsing .navbar-brand {
    padding: 12px 22px;
    gap: 14px;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    width: 100%;
}

.navbar-end {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-inline-end: 12px;
}

.topbar-logout-form {
    margin: 0;
}

.topbar-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
                box-shadow 0.2s ease, transform 0.15s ease,
                width 0.35s ease, height 0.35s ease;
    -webkit-tap-highlight-color: transparent;
}

.navbar--browsing .topbar-logout-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.topbar-logout-btn i {
    font-size: 14px;
    line-height: 1;
}

.navbar--browsing .topbar-logout-btn i {
    font-size: 15px;
}

.topbar-logout-btn:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.topbar-logout-btn:active {
    transform: scale(0.96);
}

body.mobile-nav-admin .topbar-logout-btn--admin {
    background: rgba(255, 255, 255, 0.16);
}

body.mobile-nav-admin .topbar-logout-btn--admin:hover,
body.mobile-nav-admin .topbar-logout-btn--admin:active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border-color: #dc2626;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.22);
}

body.mobile-nav-client .topbar-logout-btn--client:hover,
body.mobile-nav-client .topbar-logout-btn--client:active {
    background: linear-gradient(135deg, var(--teal) 0%, var(--sky) 100%);
    color: #fff;
    border-color: var(--teal);
    box-shadow: 0 4px 14px rgba(16, 124, 123, 0.2);
}

.navbar-start {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.navbar-start .navbar-brand {
    flex: 1;
    min-width: 0;
    padding-inline-end: 8px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-radius 0.35s ease,
                box-shadow 0.35s ease;
}

.navbar--browsing .brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.brand-text .main {
    font-size: 12.6px;
    font-weight: 700;
    color: white;
    transition: font-size 0.35s ease;
}

.brand-text .sub {
    font-size: 11px;
    color: var(--sky-light);
    margin-top: 4px;
    transition: font-size 0.35s ease;
}

.navbar--browsing .brand-text .main { font-size: 13.5px; }
.navbar--browsing .brand-text .sub { font-size: 11.5px; }

.navbar-nav { gap: 4px; }

.nav-link {
    color: rgba(255,255,255,0.85) !important;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,0.15) !important;
    color: white !important;
}

.navbar-toggler { border-color: rgba(255,255,255,0.3); }
.navbar-toggler-icon { filter: invert(1); }

.mobile-menu-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 11px;
    background: #fff;
    color: var(--navy);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus-visible {
    background: var(--cream);
    color: var(--teal);
    outline: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.mobile-menu-btn:active {
    transform: scale(0.94);
}

.mobile-menu-btn.is-open {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 4px 16px rgba(2,78,95,0.35);
}

.mobile-menu-btn__icon {
    font-size: 18px;
    line-height: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-menu-btn__icon--close {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg) scale(0.7);
}

.mobile-menu-btn.is-open .mobile-menu-btn__icon--open {
    opacity: 0;
    transform: rotate(90deg) scale(0.7);
}

.mobile-menu-btn.is-open .mobile-menu-btn__icon--close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.mobile-menu-btn:not(.is-open) .mobile-menu-btn__icon--open {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* ===== SIDEBAR ===== */
.sidebar {
    background: var(--white);
    width: 260px;
    min-height: calc(100vh - var(--navbar-height, 65px));
    border-left: 1px solid var(--gray-200);
    padding: 20px 0;
    position: sticky;
    top: var(--navbar-height, 65px);
    overflow-y: auto;
    box-shadow: var(--shadow-sm);
    transition: top 0.35s ease;
}

.sidebar-section-title {
    font-size: 11px;
    color: var(--gray-600);
    text-transform: uppercase;
    font-weight: 700;
    padding: 12px 20px 6px;
    letter-spacing: 0.5px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: 0;
    transition: var(--transition);
    font-size: 14px;
    border-right: 3px solid transparent;
}

.sidebar-link:hover {
    background: var(--cream);
    color: var(--navy);
    border-right-color: var(--teal);
}

.sidebar-link.active {
    background: linear-gradient(135deg, var(--cream) 0%, #C5E8DF 100%);
    color: var(--navy);
    border-right-color: var(--navy);
    font-weight: 600;
}

.sidebar-link .icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    background: var(--gray-100);
    flex-shrink: 0;
}

.sidebar-link.active .icon {
    background: var(--navy);
    color: white;
}

.mobile-sidebar {
    width: min(300px, 88vw);
    border-inline-start: 1px solid var(--gray-200);
}

.mobile-sidebar .offcanvas-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
    color: white;
    padding: 16px 20px;
}

.mobile-sidebar .offcanvas-title {
    font-weight: 700;
    font-size: 16px;
}

.mobile-sidebar .btn-close {
    filter: invert(1);
    opacity: 0.85;
}

.mobile-sidebar .offcanvas-body {
    background: var(--white);
}

/* ===== MOBILE BOTTOM NAV (floating + role distinction) ===== */
.mobile-bottom-nav-wrap {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1040;
    pointer-events: none;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-bottom-nav__badge {
    position: absolute;
    top: 6px;
    inset-inline-start: 12px;
    z-index: 2;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(2, 78, 95, 0.2);
    pointer-events: none;
}

.mobile-bottom-nav-wrap--admin .mobile-bottom-nav__badge {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

.mobile-bottom-nav-wrap--client .mobile-bottom-nav__badge {
    background: linear-gradient(135deg, var(--teal) 0%, var(--sky) 100%);
}

.mobile-bottom-nav {
    position: relative;
    pointer-events: auto;
    display: flex;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    min-height: 64px;
    padding: 8px 8px 6px;
    border-radius: 0;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.mobile-bottom-nav-wrap--admin .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.98);
    border: none;
    border-top: 1px solid rgba(2, 78, 95, 0.12);
    box-shadow: 0 -8px 28px rgba(2, 78, 95, 0.12);
}

.mobile-bottom-nav-wrap--admin .mobile-bottom-nav::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    border-radius: 0;
    background: linear-gradient(90deg, var(--navy), var(--teal));
}

.mobile-bottom-nav-wrap--client .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.98);
    border: none;
    border-top: 1px solid rgba(16, 124, 123, 0.12);
    box-shadow: 0 -8px 28px rgba(42, 157, 143, 0.1);
}

.mobile-bottom-nav-wrap--client .mobile-bottom-nav::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    border-radius: 0;
    background: linear-gradient(90deg, var(--teal), var(--sky));
}

.mobile-bottom-nav__item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 2px;
    border: none;
    background: transparent;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
    transition: color 0.2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-nav__icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.mobile-bottom-nav__icon-wrap i {
    font-size: 18px;
    color: var(--gray-600);
    transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-bottom-nav__label {
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.mobile-bottom-nav__item:active .mobile-bottom-nav__icon-wrap {
    transform: scale(0.9);
}

/* — نشط: إدارة — */
.mobile-bottom-nav--admin .mobile-bottom-nav__item.active,
.mobile-bottom-nav--admin .mobile-bottom-nav__item.is-open {
    color: var(--navy);
}

.mobile-bottom-nav--admin .mobile-bottom-nav__item.active .mobile-bottom-nav__icon-wrap,
.mobile-bottom-nav--admin .mobile-bottom-nav__item.is-open .mobile-bottom-nav__icon-wrap {
    background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 100%);
    box-shadow: 0 4px 14px rgba(2, 78, 95, 0.28);
}

.mobile-bottom-nav--admin .mobile-bottom-nav__item.active .mobile-bottom-nav__icon-wrap i,
.mobile-bottom-nav--admin .mobile-bottom-nav__item.is-open .mobile-bottom-nav__icon-wrap i {
    color: #fff;
}

/* — نشط: عميل — */
.mobile-bottom-nav--client .mobile-bottom-nav__item.active,
.mobile-bottom-nav--client .mobile-bottom-nav__item.is-open {
    color: var(--teal);
}

.mobile-bottom-nav--client .mobile-bottom-nav__item.active .mobile-bottom-nav__icon-wrap,
.mobile-bottom-nav--client .mobile-bottom-nav__item.is-open .mobile-bottom-nav__icon-wrap {
    background: linear-gradient(145deg, var(--cream) 0%, var(--cream-dark) 100%);
    box-shadow: 0 4px 14px rgba(42, 157, 143, 0.22);
}

.mobile-bottom-nav--client .mobile-bottom-nav__item.active .mobile-bottom-nav__icon-wrap i,
.mobile-bottom-nav--client .mobile-bottom-nav__item.is-open .mobile-bottom-nav__icon-wrap i {
    color: var(--teal);
    transform: scale(1.06);
}

/* ===== MOBILE BOTTOM SHEETS ===== */
.mobile-sheet.offcanvas-bottom {
    inset-inline: 0;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    width: 100%;
    height: auto;
    max-height: calc(100dvh - 64px - env(safe-area-inset-bottom, 0px) - var(--navbar-height, 58px) - 8px);
    border-radius: 20px 20px 0 0;
    border: none;
    background: var(--white);
    overflow: hidden;
}

.mobile-sheet--admin {
    box-shadow: 0 16px 48px rgba(2, 78, 95, 0.2);
}

.mobile-sheet--client {
    box-shadow: 0 16px 48px rgba(42, 157, 143, 0.18);
}

.mobile-sheet__handle {
    width: 42px;
    height: 4px;
    margin: 10px auto 4px;
    border-radius: 4px;
    background: var(--gray-300);
    flex-shrink: 0;
}

.mobile-sheet .offcanvas-body {
    flex-grow: 0 !important;
    overflow: visible !important;
    overflow-y: visible !important;
    padding: 0 0 calc(8px + env(safe-area-inset-bottom, 0px));
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.mobile-sheet .offcanvas-body::-webkit-scrollbar {
    display: none;
}

.mobile-sheet .sidebar-link {
    padding: 8px 16px;
    font-size: 13px;
    gap: 8px;
}

.mobile-sheet .sidebar-link .icon {
    width: 28px;
    height: 28px;
    font-size: 13px;
    border-radius: 7px;
}

.mobile-sheet .sidebar-link.text-danger,
.mobile-sheet .sidebar-link.text-danger .icon {
    color: var(--danger) !important;
}

.mobile-sheet .sidebar-link.text-danger:hover {
    background: #fef2f2;
}
/* ===== MAIN LAYOUT ===== */
.app-layout {
    display: flex;
    min-height: calc(100vh - 65px);
}

.main-content {
    flex: 1;
    padding: 24px;
    max-width: 100%;
    overflow-x: hidden;
}

/* ===== SITE FOOTER ===== */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 16px;
    text-align: center;
    font-size: 12px;
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-footer-light {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 12px;
}

.site-footer-text {
    display: inline-block;
    line-height: 1.4;
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h5, .card-header h6 {
    margin: 0;
    font-weight: 700;
    color: var(--navy);
}

.card-body { padding: 20px; }

/* ===== SURVEY PROMPT CARD (لوحة المشارك) ===== */
.survey-prompt-card {
    border: 1px solid rgba(42, 157, 143, 0.35);
    border-radius: calc(var(--radius) + 2px);
    background: linear-gradient(180deg, #f8fcfb 0%, var(--white) 42%);
    box-shadow: 0 10px 28px rgba(2, 78, 95, 0.08);
    overflow: hidden;
}

.survey-prompt-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--navy) 0%, #0d6b6a 52%, var(--teal) 100%);
    color: #fff;
}

.survey-prompt-card__header-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.survey-prompt-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.survey-prompt-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.survey-prompt-card__subtitle {
    margin: 2px 0 0;
    font-size: 12px;
    opacity: 0.9;
}

.survey-prompt-card__count {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.survey-prompt-card__list {
    padding: 12px 14px 4px;
}

.survey-prompt-card__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border-inline-start: 4px solid var(--teal);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.survey-prompt-card__item:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 78, 95, 0.1);
}

.survey-prompt-card__item.last {
    margin-bottom: 0;
}

.survey-prompt-card__item-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--cream) 0%, #dff3ee 100%);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.survey-prompt-card__item-body {
    flex: 1;
    min-width: 0;
}

.survey-prompt-card__item-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 4px;
}

.survey-prompt-card__item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: 11px;
    color: var(--gray-600);
}

.survey-prompt-card__item-meta > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.survey-prompt-card__item-meta i {
    color: var(--teal);
    font-size: 10px;
}

.survey-prompt-card__tag {
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff7e8;
    color: #b45309;
    border: 1px solid #fde6b8;
    font-size: 10px;
    font-weight: 700;
}

.survey-prompt-card__cta {
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.survey-prompt-card__footer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 18px 14px;
    font-size: 11px;
    line-height: 1.55;
    color: var(--gray-600);
    border-top: 1px dashed rgba(42, 157, 143, 0.28);
    background: rgba(42, 157, 143, 0.04);
}

.survey-prompt-card__footer i {
    color: var(--teal);
    margin-top: 2px;
}

/* ===== UPCOMING EVENTS CARD (لوحة المشارك) ===== */
.upcoming-events-card {
    border: 1px solid rgba(2, 78, 95, 0.14);
    border-radius: calc(var(--radius) + 2px);
    background: linear-gradient(180deg, #f7fafb 0%, var(--white) 38%);
    box-shadow: 0 10px 28px rgba(2, 78, 95, 0.07);
    overflow: hidden;
}

.upcoming-events-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #024e5f 0%, #1a6b8a 55%, #2a9d8f 100%);
    color: #fff;
}

.upcoming-events-card__header-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.upcoming-events-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.upcoming-events-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.upcoming-events-card__subtitle {
    margin: 2px 0 0;
    font-size: 12px;
    opacity: 0.9;
}

.upcoming-events-card__count {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.upcoming-events-card__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
}

.upcoming-event-item {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.upcoming-event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(2, 78, 95, 0.1);
}

.upcoming-event-item__media {
    position: relative;
    display: block;
    height: 118px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy), var(--teal));
}

.upcoming-event-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.upcoming-event-item:hover .upcoming-event-item__media img {
    transform: scale(1.04);
}

.upcoming-event-item__media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 30px;
}

.upcoming-event-item__date-chip {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    min-width: 48px;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--navy);
    text-align: center;
    line-height: 1.1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.upcoming-event-item__date-day {
    display: block;
    font-size: 18px;
    font-weight: 800;
}

.upcoming-event-item__date-month {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--teal);
}

.upcoming-event-item__registered-badge {
    position: absolute;
    bottom: 10px;
    inset-inline-end: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(25, 135, 84, 0.92);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.upcoming-event-item__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px 10px;
    flex: 1;
}

.upcoming-event-item__when {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--teal);
}

.upcoming-event-item__title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
}

.upcoming-event-item__title a {
    color: var(--navy);
    text-decoration: none;
}

.upcoming-event-item__title a:hover {
    color: var(--teal);
}

.upcoming-event-item__desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--gray-600);
}

.upcoming-event-item__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: var(--gray-600);
}

.upcoming-event-item__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.upcoming-event-item__meta i {
    color: var(--teal);
    width: 12px;
    text-align: center;
}

.upcoming-event-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.upcoming-event-item__tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.upcoming-event-item__tag--free {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.upcoming-event-item__tag--paid {
    background: rgba(2, 78, 95, 0.1);
    color: var(--navy);
}

.upcoming-event-item__tag--closed {
    background: rgba(108, 117, 125, 0.12);
    color: var(--gray-600);
}

.upcoming-event-item__tag--ongoing {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.upcoming-event-item__tag--ended {
    background: rgba(108, 117, 125, 0.16);
    color: var(--gray-600);
}

.participant-events-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px 0;
    border-bottom: 1px solid var(--gray-200);
    background: #fff;
}

.participant-events-tabs__nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--gray-200);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 700;
    padding: 10px 14px;
    background: #f8fafb;
}

.participant-events-tabs__nav .nav-link.active {
    color: var(--navy);
    background: #fff;
    border-color: rgba(2, 78, 95, 0.18);
    box-shadow: inset 0 2px 0 var(--teal);
}

.participant-events-tabs__badge {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(2, 78, 95, 0.08);
    color: var(--navy);
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.participant-events-tabs__nav .nav-link.active .participant-events-tabs__badge {
    background: rgba(42, 157, 143, 0.14);
    color: var(--teal);
}

.participant-events-tabs__content .tab-pane {
    background: #fff;
}

.upcoming-event-item__tag--open {
    background: rgba(42, 157, 143, 0.12);
    color: #1d7a70;
}

.upcoming-event-item__tag--registered {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.upcoming-event-item__tag--closed {
    background: var(--gray-100);
    color: var(--gray-600);
}

.upcoming-event-item__footer {
    padding: 0 14px 14px;
}

.upcoming-event-item__cta {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.upcoming-events-card__empty {
    padding: 36px 20px 40px;
    text-align: center;
}

.upcoming-events-card__empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background: var(--gray-100);
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.upcoming-events-card__empty h5 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
}

.upcoming-events-card__empty p {
    margin: 0;
    font-size: 13px;
    color: var(--gray-600);
}

@media (max-width: 991.98px) {
    .upcoming-events-card__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .upcoming-events-card__header {
        flex-direction: column;
        align-items: stretch;
    }

    .upcoming-events-card__count {
        align-self: flex-end;
    }

    .upcoming-events-card__grid {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 12px;
    }

    .upcoming-event-item__media {
        height: 132px;
    }
}

/* ===== STAT CARDS ===== */
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
}

.stat-card.navy::before { background: var(--navy); }
.stat-card.teal::before { background: var(--teal); }
.stat-card.sky::before { background: var(--sky); }
.stat-card.success::before { background: var(--success); }
.stat-card.warning::before { background: var(--warning); }

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
}

.stat-icon.navy { background: rgba(2,78,95,0.1); color: var(--navy); }
.stat-icon.teal { background: rgba(63,155,46,0.12); color: var(--teal); }
.stat-icon.sky { background: rgba(141,198,63,0.15); color: var(--sky); }
.stat-icon.success { background: rgba(22,163,74,0.1); color: var(--success); }
.stat-icon.warning { background: rgba(217,119,6,0.1); color: var(--warning); }
.stat-icon.cream { background: var(--cream); color: var(--navy); }

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--gray-600);
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 18px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.btn > i,
.btn > svg {
    flex-shrink: 0;
}

.btn-primary {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}
.btn-primary:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2,78,95,0.3);
}

.btn-teal {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
}
.btn-teal:hover {
    background: var(--teal-light);
    color: white;
    transform: translateY(-1px);
}

.btn-outline-primary {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-outline-primary:hover {
    background: var(--navy);
    color: white;
}

.btn-outline-teal {
    background: transparent;
    color: var(--teal);
    border-color: var(--teal);
}
.btn-outline-teal:hover { background: var(--teal); color: white; }

.btn-outline-danger {
    background: transparent;
    color: var(--danger);
    border-color: var(--danger);
}
.btn-outline-danger:hover { background: var(--danger); color: white; }

.btn-outline-success {
    background: transparent;
    color: var(--success);
    border-color: var(--success);
}
.btn-outline-success:hover { background: var(--success); color: white; }

.btn-success { background: var(--success); color: white; border-color: var(--success); }
.btn-success:hover { background: #15803d; color: white; }

.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; color: white; }

.btn-warning { background: var(--warning); color: white; border-color: var(--warning); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 16px; }

/* ===== FORMS ===== */
.form-label {
    font-weight: 600;
    color: var(--navy);
    font-size: 14px;
    margin-bottom: 6px;
}

.form-control, .form-select {
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-800);
    width: 100%;
}

.form-control:focus, .form-select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(63,155,46,0.18);
    outline: none;
}

.form-control.is-invalid { border-color: var(--danger); }
.invalid-feedback { font-size: 12px; color: var(--danger); }

/* ===== BADGES ===== */
.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.badge-navy { background: var(--navy); color: white; }
.badge-teal { background: var(--teal); color: white; }
.badge-sky { background: var(--sky); color: white; }
.badge-success { background: #dcfce7; color: var(--success); }
.badge-danger { background: #fee2e2; color: var(--danger); }
.badge-warning { background: #fef3c7; color: var(--warning); }
.badge-secondary { background: var(--gray-200); color: var(--gray-600); }
.badge-info { background: #e0f2fe; color: #0369a1; }
.badge-primary { background: rgba(2,78,95,0.1); color: var(--navy); }

/* ===== TABLES ===== */
.table { width: 100%; border-collapse: collapse; }
.table th {
    background: var(--gray-50);
    color: var(--navy);
    font-weight: 700;
    font-size: 13px;
    padding: 12px 16px;
    text-align: right;
    border-bottom: 2px solid var(--gray-200);
    white-space: nowrap;
}
.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
    vertical-align: middle;
}
.table tr:hover td { background: var(--cream); }
.table-responsive { overflow-x: auto; border-radius: var(--radius); }

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
    color: white;
    padding: 20px 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-header h1 { font-size: 22px; font-weight: 700; margin: 0; }
.page-header p { margin: 4px 0 0; opacity: 0.85; font-size: 14px; }

/* ===== WELCOME BANNER (Dashboard hero) ===== */
.welcome-banner {
    position: relative;
    background: linear-gradient(120deg, var(--navy) 0%, var(--teal) 70%, var(--sky) 130%);
    color: #fff;
    border-radius: 18px;
    padding: 28px 30px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.welcome-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 12% 20%, rgba(255,255,255,0.10) 0, transparent 35%),
        radial-gradient(circle at 88% 80%, rgba(255,255,255,0.08) 0, transparent 40%);
    pointer-events: none;
}

.welcome-banner .wb-content { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.welcome-banner .wb-avatar {
    width: 60px; height: 60px; border-radius: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.12);
    object-fit: cover;
}
.welcome-banner .wb-greeting { font-size: 13px; opacity: 0.85; margin: 0 0 2px; }
.welcome-banner .wb-name { font-size: 24px; font-weight: 800; margin: 0; line-height: 1.2; }
.welcome-banner .wb-meta { font-size: 13px; opacity: 0.85; margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; }
.welcome-banner .wb-meta span { display: inline-flex; align-items: center; gap: 6px; }
.welcome-banner .wb-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.welcome-banner .wb-actions .btn {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
}
.welcome-banner .wb-actions .btn:hover { background: rgba(255,255,255,0.3); transform: translateY(-1px); }
.welcome-banner .wb-actions .btn-light-solid { background: #fff; color: var(--navy); border-color: #fff; }
.welcome-banner .wb-actions .btn-light-solid:hover { background: var(--cream); }

/* ===== QUICK ACTIONS ===== */
.quick-action {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 18px;
    text-decoration: none;
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--shadow-sm);
}
.quick-action:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sky); }
.quick-action .qa-icon {
    width: 46px; height: 46px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff;
}
.quick-action .qa-title { font-weight: 700; color: var(--navy); font-size: 14px; }
.quick-action .qa-sub { font-size: 11px; color: var(--gray-600); }
.qa-navy { background: var(--navy); }
.qa-teal { background: var(--teal); }
.qa-sky { background: var(--sky); }
.qa-success { background: var(--success); }
.qa-warning { background: var(--warning); }
.qa-purple { background: #7c3aed; }

/* ===== MODERN STAT CARD (horizontal) ===== */
.stat-modern {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}
.stat-modern:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-modern .sm-icon {
    width: 54px; height: 54px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.stat-modern .sm-value { font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-modern .sm-label { font-size: 12px; color: var(--gray-600); margin-top: 4px; }
.stat-modern .sm-trend { font-size: 11px; font-weight: 700; margin-top: 4px; display: inline-flex; align-items: center; gap: 3px; }
.sm-trend.up { color: var(--success); }
.sm-trend.down { color: var(--danger); }

/* ===== EVENT CARD ===== */
.event-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--sky);
}

.event-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
    position: relative;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-body { padding: 16px; }
.event-card-title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--gray-600);
}

/* ===== EVENT VENUE MAP ===== */
.event-map-wrap {
    position: relative;
}

.event-map {
    height: 300px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    z-index: 0;
}

.event-map-fs-btn {
    position: absolute;
    z-index: 500;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(2, 78, 95, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.event-map-fs-btn:active {
    transform: scale(0.94);
}

.event-map-fs-btn--expand {
    inset-inline-end: 10px;
    bottom: 10px;
    background: var(--white);
    color: var(--navy);
}

.event-map-fs-btn--shrink {
    top: calc(10px + env(safe-area-inset-top, 0px));
    inset-inline-start: calc(10px + env(safe-area-inset-left, 0px));
    background: var(--navy);
    color: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.event-map-wrap.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: var(--white);
    padding:
        env(safe-area-inset-top, 0px)
        env(safe-area-inset-right, 0px)
        env(safe-area-inset-bottom, 0px)
        env(safe-area-inset-left, 0px);
    display: flex;
    flex-direction: column;
}

.event-map-wrap.is-fullscreen .event-map {
    flex: 1;
    height: auto !important;
    min-height: 0;
    border-radius: 0;
    border: none;
}

body.event-map-fullscreen-open {
    overflow: hidden;
}

/* ===== SEAT MAP ===== */
.seat-map-container {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 20px;
    overflow-x: auto;
}

.stage-bar {
    background: linear-gradient(135deg, var(--navy), var(--teal));
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 14px;
}

.seats-grid { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.seat-row { display: flex; gap: 6px; align-items: center; }
.seat-row-label { width: 24px; font-size: 12px; font-weight: 700; color: var(--gray-600); text-align: center; }

.seat {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 2px solid;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.seat.available { background: #dcfce7; border-color: #16a34a; color: #15803d; }
.seat.available:hover { background: #16a34a; color: white; transform: scale(1.1); }
.seat.booked { background: #fee2e2; border-color: #dc2626; color: #b91c1c; cursor: not-allowed; }
.seat.reserved { background: #fef3c7; border-color: #d97706; color: #92400e; cursor: not-allowed; }
.seat.blocked { background: var(--gray-200); border-color: var(--gray-300); color: var(--gray-600); cursor: not-allowed; }
.seat.selected { background: var(--navy); border-color: var(--navy); color: white; transform: scale(1.1); }
.seat.mine { background: var(--teal); border-color: var(--teal); color: white; }

.seat-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
    font-size: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid;
}

/* ===== QR SCANNER ===== */
.qr-scanner-container {
    max-width: 400px;
    margin: 0 auto;
}

#qr-reader {
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--teal);
}

/* ===== ALERTS ===== */
.alert {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success { background: #dcfce7; border-color: #86efac; color: #15803d; }
.alert-danger { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
.alert-warning { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.alert-info { background: #e0f2fe; border-color: #7dd3fc; color: #0369a1; }

/* ===== AUTH PAGES ===== */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 50%, var(--sky) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, var(--navy), var(--teal));
    padding: 32px 40px;
    text-align: center;
    color: white;
}

.auth-logo {
    width: 84px;
    height: 84px;
    background: rgba(255,255,255,0.15);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
    border: 2px solid rgba(255,255,255,0.3);
}

.auth-title { font-size: 14.96px; font-weight: 700; margin: 0; }
.auth-subtitle { font-size: 13px; opacity: 0.85; margin-top: 10px; }

.auth-body { padding: 32px 40px; }

/* ===== CERTIFICATE ===== */
.certificate-preview {
    background: var(--cream);
    border: 8px solid var(--navy);
    border-radius: 4px;
    padding: 40px;
    text-align: center;
    position: relative;
    min-height: 400px;
    font-family: 'Cairo', sans-serif;
}

.certificate-preview::before, .certificate-preview::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 2px solid var(--teal);
    pointer-events: none;
}

.cert-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
}

.cert-subtitle { font-size: 16px; color: var(--teal); margin-bottom: 30px; }

.cert-recipient {
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    border-bottom: 2px solid var(--teal);
    display: inline-block;
    padding-bottom: 4px;
    margin: 10px 0 20px;
}

.cert-body { font-size: 15px; color: var(--gray-600); line-height: 1.8; max-width: 600px; margin: 0 auto; }
.cert-event { font-weight: 700; color: var(--teal); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 16px;
    font-size: 13px;
}

.breadcrumb-item a { color: var(--teal); text-decoration: none; }
.breadcrumb-item.active { color: var(--gray-600); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--gray-300); content: "\276F"; }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-bottom: 0;
    padding: 0;
}
.page-link {
    border-radius: var(--radius-sm) !important;
    color: var(--navy);
    border-color: var(--gray-200);
    font-size: 13px;
    min-width: 36px;
    text-align: center;
    padding: 6px 12px;
    line-height: 1.25;
}
.page-link svg {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}
.page-item.active .page-link {
    background: var(--navy);
    border-color: var(--navy);
}
.page-item.disabled .page-link {
    color: var(--gray-400);
    background: var(--gray-50);
}

/* ===== PROGRESS BAR ===== */
.progress { border-radius: 20px; background: var(--gray-200); height: 8px; }
.progress-bar { border-radius: 20px; }

/* ===== TOP EVENTS RANKING (Dashboard) ===== */
.top-event-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.15s ease;
}
.top-event-item:hover { background: var(--cream); }
.top-event-item.last { border-bottom: none; }

.top-event-rank {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
    color: #fff;
}
.top-event-rank.rank-gold { background: linear-gradient(135deg, #d97706, #f59e0b); box-shadow: 0 2px 8px rgba(217,119,6,0.35); }
.top-event-rank.rank-silver { background: linear-gradient(135deg, #64748b, #94a3b8); box-shadow: 0 2px 6px rgba(100,116,139,0.3); }
.top-event-rank.rank-bronze { background: linear-gradient(135deg, #b45309, #cd7f32); box-shadow: 0 2px 6px rgba(180,83,9,0.3); }
.top-event-rank.rank-default { background: var(--gray-200); color: var(--gray-600); }

.top-event-body { flex: 1; min-width: 0; }

.top-event-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.top-event-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--navy);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.top-event-count { text-align: left; flex-shrink: 0; }
.top-event-count-num {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--teal);
    line-height: 1;
}
.top-event-count-label { font-size: 10px; color: var(--gray-600); }

.top-event-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 8px;
    font-size: 11px;
    color: var(--gray-600);
}
.top-event-meta-item { display: inline-flex; align-items: center; gap: 4px; }
.top-event-meta-item i { color: var(--teal); font-size: 10px; }
.top-event-status .badge { font-size: 10px; padding: 3px 7px; }

.top-event-progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.top-event-progress {
    flex: 1;
    height: 6px;
    background: var(--gray-100);
    border-radius: 20px;
    overflow: hidden;
}
.top-event-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--sky));
    border-radius: 20px;
    transition: width 0.4s ease;
}
.top-event-progress-pct {
    font-size: 11px;
    font-weight: 700;
    color: var(--teal);
    min-width: 32px;
    text-align: left;
}

.top-event-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}
.top-event-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--gray-600);
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 20px;
    padding: 3px 9px;
}
.top-event-stat i { color: var(--teal); font-size: 10px; }

.top-event-footer {
    padding: 10px 16px;
    background: var(--cream);
    border-top: 1px solid var(--gray-100);
    font-size: 12px;
    color: var(--gray-600);
    text-align: center;
}
.top-event-footer strong { color: var(--navy); }
.bg-navy { background-color: var(--navy) !important; }
.bg-teal { background-color: var(--teal) !important; }
.bg-sky { background-color: var(--sky) !important; }

/* ===== TABS ===== */
.nav-tabs {
    border-bottom: 2px solid var(--gray-200);
    gap: 4px;
}

.nav-tabs .nav-link {
    color: var(--gray-600) !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 0 !important;
    font-size: 14px;
    border-bottom: 2px solid transparent !important;
    margin-bottom: -2px;
}

.nav-tabs .nav-link:hover {
    background: var(--cream) !important;
    color: var(--navy) !important;
}

.nav-tabs .nav-link.active {
    background: none !important;
    color: var(--navy) !important;
    border-bottom-color: var(--navy) !important;
    font-weight: 700;
}

/* ===== MODALS ===== */
.modal-content { border-radius: var(--radius); border: none; box-shadow: var(--shadow-lg); }
.modal-header {
    background: linear-gradient(135deg, var(--navy), var(--teal));
    color: white;
    border-radius: var(--radius) var(--radius) 0 0;
}
.modal-header .btn-close { filter: invert(1); }
.modal-title { font-weight: 700; }

/* ===== TOOLTIPS ===== */
.tooltip-inner { background: var(--navy); border-radius: var(--radius-sm); font-size: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .sidebar { display: none; }
    .main-content { padding: 16px; }
    .stat-value { font-size: 22px; }

    html {
        scroll-padding-top: var(--navbar-height, 58px);
    }

    .navbar-brand { padding: 8px 12px; gap: 8px; }
    .navbar--browsing .navbar-brand { padding: 10px 14px; gap: 10px; }
    .navbar-start { gap: 8px; padding-inline: 4px; min-width: 0; flex: 1; }
    .brand-logo { width: 38px; height: 38px; }
    .navbar--browsing .brand-logo { width: 42px; height: 42px; }
    .brand-text {
        min-width: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 6px;
        --brand-main-max: 13px;
        --brand-main-min: 9px;
    }
    .navbar--browsing .brand-text {
        --brand-main-max: 13.5px;
    }
    .brand-text .main {
        overflow: visible;
        text-overflow: unset;
        white-space: nowrap;
        line-height: 1.25;
    }
    .brand-text .sub {
        display: block;
        font-size: 10px;
        line-height: 1.4;
        margin-top: 0;
        color: rgba(255, 255, 255, 0.88);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.has-mobile-bottom-nav .main-content {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }

    body.has-mobile-bottom-nav footer {
        margin-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 768px) {
    .page-header { flex-direction: column; gap: 12px; text-align: center; }
    .auth-body { padding: 24px 20px; }
    .auth-header { padding: 24px 20px; }
    .event-card-image { height: 140px; }
    .seat { width: 28px; height: 28px; font-size: 8px; }
    .table th, .table td { padding: 8px 10px; }

    .survey-prompt-card__header {
        flex-direction: column;
        align-items: stretch;
    }

    .survey-prompt-card__count {
        align-self: flex-end;
    }

    .survey-prompt-card__item {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .survey-prompt-card__cta {
        width: 100%;
        justify-content: center;
        margin-top: 4px;
    }
}

@media (max-width: 576px) {
    .card-body { padding: 14px; }
    .card-header { padding: 12px 14px; }
    .btn { padding: 7px 14px; font-size: 13px; }
    .navbar-brand .brand-text {
        --brand-main-max: 12.5px;
        --brand-main-min: 8.5px;
    }
    .navbar-brand .brand-text .sub {
        font-size: 9.5px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .navbar,
    .navbar-brand,
    .brand-logo,
    .brand-text .main,
    .brand-text .sub,
    .topbar-logout-btn,
    .sidebar {
        transition: none !important;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.3s ease; }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse { animation: pulse 2s infinite; }

/* ===== UTILITIES ===== */
.text-navy { color: var(--navy) !important; }
.text-teal { color: var(--teal) !important; }
.text-sky { color: var(--sky) !important; }
.text-cream { color: var(--cream-dark) !important; }
.bg-cream { background-color: var(--cream) !important; }
.bg-navy { background-color: var(--navy) !important; }
.bg-teal { background-color: var(--teal) !important; }
.border-navy { border-color: var(--navy) !important; }
.border-teal { border-color: var(--teal) !important; }
.divider { height: 1px; background: var(--gray-200); margin: 16px 0; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-600); }
.empty-state i { font-size: 56px; color: var(--gray-300); margin-bottom: 16px; }
.empty-state h5 { font-weight: 700; color: var(--gray-600); }

.participant-search-field {
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.participant-search-card.participant-search-card--open,
.card.participant-search-card:has(.participant-search-results:not(.d-none)) {
    overflow: visible;
    position: relative;
    z-index: 100;
}

.participant-search-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    font-size: 14px;
}

.participant-picker {
    position: relative;
    z-index: 3;
}

.participant-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    min-height: 48px;
    background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.participant-search-box:focus-within {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.12);
}

.participant-search-icon {
    color: var(--teal);
    font-size: 15px;
    flex-shrink: 0;
}

.participant-search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 12px 0;
    font-size: 14px;
    color: var(--navy);
    outline: none;
}

.participant-search-input::placeholder {
    color: var(--gray-400, #9ca3af);
}

.participant-search-results {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 1060;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(13, 43, 85, 0.16);
}

.participant-search-item {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid var(--gray-100);
    background: #fff;
    text-align: right;
    transition: background 0.15s ease;
}

.participant-search-item:last-child {
    border-bottom: 0;
}

.participant-search-item__name {
    font-weight: 700;
    color: var(--navy);
    font-size: 14px;
    margin-bottom: 6px;
}

.participant-search-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.participant-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--cream);
    color: var(--gray-600);
    font-size: 11px;
    line-height: 1.2;
}

.participant-meta-chip i {
    color: var(--teal);
    font-size: 10px;
}

.participant-search-item:hover:not(:disabled) {
    background: rgba(42, 157, 143, 0.06);
}

.participant-search-item.is-attended {
    opacity: 0.72;
    cursor: not-allowed;
}

.participant-search-empty {
    padding: 22px 14px;
    text-align: center;
    color: var(--gray-600);
    font-size: 13px;
}

.participant-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 14px 16px;
    border: 2px solid rgba(42, 157, 143, 0.25);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.08), var(--cream));
}

.participant-selected__avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--navy), var(--teal));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.participant-selected__body {
    flex: 1;
    min-width: 0;
}

.participant-selected__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.participant-selected__clear {
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .participant-selected {
        flex-wrap: wrap;
    }

    .participant-selected__clear {
        width: 100%;
    }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--sky); border-radius: 3px; }

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2,78,95,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-border-navy { border-color: var(--navy); border-right-color: transparent; }

/* ===== DROPDOWN MENU ===== */
.dropdown-menu {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 10px 34px rgba(13, 43, 85, 0.14);
    padding: 6px;
    font-size: 13px;
    min-width: 210px;
    z-index: 1055;
    animation: dropdownFade 0.16s ease;
}

.dropdown-item {
    border-radius: 8px;
    padding: 9px 12px;
    color: var(--navy);
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--cream);
    color: var(--navy);
}

.dropdown-item.text-danger:hover,
.dropdown-item.text-danger:focus {
    background: #fee2e2;
    color: var(--danger) !important;
}

.dropdown-menu form { margin: 0; }
.dropdown-menu form .dropdown-item { width: 100%; border: 0; background: transparent; text-align: inherit; }
.dropdown-divider { margin: 6px 4px; border-color: var(--gray-200); }

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* منع قص عناصر القائمة المنسدلة داخل الحاويات ذات overflow:hidden */
.card:has(.dropdown-menu.show),
.card:has(.participant-search-results:not(.d-none)),
.event-card:has(.dropdown-menu.show),
.stat-card:has(.dropdown-menu.show),
.table-responsive:has(.dropdown-menu.show),
.page-header:has(.dropdown-menu.show) {
    overflow: visible;
}

/* محاذاة موحّدة لعناصر القائمة المنسدلة: أيقونة بعرض ثابت ثم النص */
.dropdown-item { gap: 8px; }
.dropdown-item i,
.dropdown-item .fa,
.dropdown-item .fas,
.dropdown-item .far {
    width: 18px;
    flex-shrink: 0;
    text-align: center;
    margin: 0 !important;
    font-size: 14px;
}

/* رأس القائمة المنسدلة */
.dropdown-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--teal);
    padding: 6px 12px 4px;
}

/* قائمة الإجراءات الطويلة: تمرير عند تجاوز الارتفاع */
.dropdown-menu.actions-menu {
    min-width: 230px;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.dropdown-menu.actions-menu::-webkit-scrollbar { width: 6px; }
.dropdown-menu.actions-menu::-webkit-scrollbar-thumb {
    background: var(--gray-300, #cbd5e1);
    border-radius: 6px;
}

/* ===== زر القائمة المنسدلة (مظهر الصورة) ===== */
.dropdown-toggle::after {
    display: inline-block;
    margin-inline-start: auto;
    margin-inline-end: 0;
    flex-shrink: 0;
    vertical-align: middle;
}

.dropdown .dropdown-toggle:not(.select-dropdown-toggle) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.select-dropdown .select-dropdown-toggle {
    background: var(--white);
    border: 2px solid var(--teal);
    color: var(--navy);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 10px;
    border-radius: 10px;
    padding: 10px 36px;
    box-shadow: none;
}

.select-dropdown .select-dropdown-toggle::after {
    position: absolute;
    inset-inline-end: 14px;
    margin: 0;
}

.select-dropdown .select-dropdown-label {
    flex: 1;
    text-align: center;
}

.select-dropdown .select-dropdown-toggle:hover,
.select-dropdown .select-dropdown-toggle:focus,
.select-dropdown .select-dropdown-toggle.show,
.select-dropdown .select-dropdown-toggle:active {
    background: var(--white) !important;
    border-color: var(--teal) !important;
    color: var(--navy) !important;
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.15);
}

.select-dropdown-menu {
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 8px 24px rgba(13, 43, 85, 0.12);
    max-height: 280px;
    overflow-y: auto;
}

.select-dropdown-menu .dropdown-item {
    border-radius: 6px;
    text-align: start;
    font-weight: 500;
    padding: 10px 14px;
    border: 0;
    width: 100%;
    background: transparent;
}

.select-dropdown-menu .dropdown-item.active,
.select-dropdown-menu .dropdown-item:active,
.select-dropdown-menu .dropdown-item:focus.active {
    background: #0b5ed7;
    color: #fff;
}

.select-dropdown-menu .dropdown-item:hover:not(.active) {
    background: var(--cream);
    color: var(--navy);
}

/* ===== EVENT LIST THUMBNAIL (صفحة إدارة الفعاليات) ===== */
.event-thumb-card {
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--gray-200);
}

.event-thumb {
    position: relative;
    height: 100%;
    min-height: 120px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
    overflow: hidden;
    border-radius: inherit;
}

.event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.event-thumb-card:hover .event-thumb img { transform: scale(1.06); }

.event-thumb::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 70px;
    background: linear-gradient(180deg, rgba(13, 43, 85, 0.45), transparent);
    pointer-events: none;
}

.event-thumb-placeholder {
    width: 100%;
    height: 100%;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-thumb-placeholder i {
    font-size: 44px;
    color: rgba(255, 255, 255, 0.55);
}

.event-thumb-badge {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    z-index: 2;
}

@media (min-width: 992px) {
    .col-lg-70 { flex: 0 0 auto; width: 70%; }
    .col-lg-50 { flex: 0 0 auto; width: 50%; }
    .col-lg-30 { flex: 0 0 auto; width: 30%; }
}

/* محتوى المحرر المرئي — انظر public/css/rich-content.css */

/* ===== مسارات صور المحرر (أقسام المحتوى) ===== */
.section-image-paths {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px dashed var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--gray-50);
}

.section-image-paths__title {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.section-image-path-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--gray-200);
}

.section-image-path-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.section-image-path-item__thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.section-image-path-item__path {
    flex: 1;
    min-width: 0;
    font-size: 11px;
    font-family: Consolas, 'Courier New', monospace;
    direction: ltr;
    text-align: left;
    color: var(--gray-600);
    word-break: break-all;
}

.section-image-path-item__copy.copied {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

/* ===== ATTENDANCE CHECK-IN SUCCESS ===== */
.checkin-success-card {
    text-align: center;
    padding: 22px 18px;
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 14px;
}

.checkin-success-card__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16a34a;
    font-size: 32px;
}

.checkin-success-card__title {
    margin: 0 0 8px;
    color: #15803d;
    font-weight: 800;
    font-size: 18px;
}

.checkin-success-card__message {
    margin: 0;
    color: var(--navy);
    font-size: 14px;
    line-height: 1.6;
}

.checkin-success-card__time {
    margin-top: 8px;
    font-size: 12px;
    color: var(--gray-600);
}

.checkin-success-card__actions {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #bbf7d0;
}

.checkin-success-card__hint {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
}
