/* ═══════════════════════════════════════════════
   ROOT TOKENS
═══════════════════════════════════════════════ */
:root {
    --primary: #16106a;
    --primary-hover: #221996;
    --primary-light: rgba(22, 16, 106, 0.08);
    --secondary: #bc0610;
    --success: #68bc3a;
    --sky-blue: #0078d4;
    --yellow: #e8ba37;
    --yellow-light: rgba(232, 186, 55, 0.18);
    --white: #ffffff;
    --black: #000000;
    --dark: #1a1a2e;
    --grey: #f6f6f6;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.55);
    --dark-card-bg: #1e1b3a;
    --radius-card: 20px;
    --radius-btn: 30px;
    --radius-sm: 12px;
    --shadow-card: 0 4px 24px rgba(22, 16, 106, 0.07);
    --shadow-hover: 0 8px 32px rgba(22, 16, 106, 0.14);
    --shadow-header: 0 4px 24px rgba(22, 16, 106, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'DM Sans', sans-serif;
    --font-display: 'DM Sans', sans-serif;
}

/* ═══════════════════════════════════════════════
   ANIMATION KEYFRAMES & UTILITIES
═══════════════════════════════════════════════ */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translateY(-30%);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.45;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
    display: inline-block;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    display: inline-block;
}

.fade-up {
    animation: fadeUp 0.5s ease both;
}

.fade-up.delay-1 {
    animation-delay: 0.1s;
}

.fade-up.delay-2 {
    animation-delay: 0.2s;
}

.fade-up.delay-3 {
    animation-delay: 0.3s;
}

.ri-spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    /* background: linear-gradient(135deg, #fef9e7 0%, #fde68a 55%, #fbbf24 100%); */
    background: linear-gradient(135deg, #eeebfdb3 0%, #d6d3e5a1 55%, #e2201b1c 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--dark);
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    width: 420px;
    height: 420px;
    /* background: rgba(255, 200, 50, 0.32); */
    background: rgb(252 237 238);
    top: -110px;
    right: -110px;
    border-radius: 50%;
    filter: blur(65px);
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    width: 320px;
    height: 320px;
    /* background: rgba(255, 220, 80, 0.22); */
    background: rgb(252 237 238);
    bottom: -90px;
    left: -80px;
    border-radius: 50%;
    filter: blur(55px);
    z-index: 0;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════ */
.font-display {
    font-family: var(--font-display);
}

.text-primary-coa {
    color: var(--primary);
}

.text-secondary-coa {
    color: var(--secondary);
}

.text-yellow-coa {
    color: var(--yellow);
}

.text-sm-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #aaa;
}

.text-stat-num {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.text-section-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark);
}

.text-welcome {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
}

/* ═══════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════ */
.main-content {
    position: relative;
    z-index: 1;
    padding: 20px 16px 30px;
    flex-grow: 1;
}

/* ═══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */
.top-header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    margin: 12px 16px 0;
    position: sticky;
    top: 12px;
    z-index: 2;
    box-shadow: var(--shadow-header);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    gap: 12px;
    flex-wrap: nowrap;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Logo */
.logo-wrap {
    width: 170px;
    flex-shrink: 0;
}

.logo-wrap img {
    height: auto;
    object-fit: contain;
}

/* Nav pills */
.nav-pill-active {
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-btn);
    padding: 6px 18px;
    font-weight: 600;
    font-size: 0.83rem;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-pill-active:hover {
    background: var(--primary-hover);
    color: #fff;
}

.nav-link-h {
    color: #444;
    font-size: 0.83rem;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 11px;
    border-radius: 10px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link-h:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
}

/* Icon buttons */
.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: #555;
    font-size: 1rem;
    position: relative;
    flex-shrink: 0;
}

.icon-btn:hover {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    color: var(--primary);
}

.notif-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: var(--success);
    color: #fff;
    border-radius: 50%;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #65b7384a;
    font-weight: 700;
}

.dropdown-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: default;
}

.notif-header-title {
    font-size: 0.9rem;
}

/* Profile avatar in header */
.profile-dropdown-circle {
    width: 34px;
    height: 34px;
}

.header-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition);
}

.header-avatar:hover {
    border-color: var(--yellow);
}

/* ═══════════════════════════════════════════════
   MOBILE SIDEBAR
═══════════════════════════════════════════════ */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(3px);
}

.sidebar-overlay.show {
    display: block;
}

.sidebar-mobile {
    position: fixed;
    top: 0;
    left: -280px;
    width: 262px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px);
    z-index: 2000;
    transition: left 0.34s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
}

.sidebar-mobile.open {
    left: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar-logo img {
    height: 32px;
}

.sidebar-section-label {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #bbb;
    padding: 14px 20px 4px;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    margin: 2px 10px;
    font-size: 0.87rem;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    transition: var(--transition);
}

.side-link i {
    font-size: 1.1rem;
    width: 20px;
    flex-shrink: 0;
}

.side-link:hover,
.side-link.active {
    background: var(--primary);
    color: #fff;
}

.side-link.danger:hover {
    background: #dc3545;
    color: #fff;
}

.side-sub {
    padding-left: 14px;
    display: none;
}

.side-sub .side-link {
    font-size: 0.8rem;
}

/* Custom utility extensions for clean layout */
.breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
    line-height: 1;
    vertical-align: middle;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.action-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════
   MODERN SEARCH UI (HEADER & TABLES)
═══════════════════════════════════════════════ */
.header-search-group {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.header-search-group:focus-within {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(22, 16, 106, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-2px);
}

.header-search-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-search-group:focus-within .header-search-icon {
    color: var(--primary) !important;
    transform: scale(1.15) rotate(-3deg);
}

.search-box input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: rgba(255, 255, 255, 0.6) !important;
}

.search-box input:focus {
    background: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(22, 16, 106, 0.08), 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-1px);
}

.search-box i {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.search-box:focus-within i {
    color: var(--primary) !important;
    transform: translateY(-50%) scale(1.15) !important;
}

.collapse.show {
    visibility: visible;
}

/* Common Style Css  */

.d-float-center {
    display: flex !important;
    align-items: center;
    column-gap: 5px;
    row-gap: 2px;
    flex-flow: wrap;
}

.box-shadow-none {
    box-shadow: none !important;
}

.radius-0 {
    border-radius: 0 !important;
}

.radius-50 {
    border-radius: 50px !important;
}

a {
    text-decoration: none;
}

.btn-round {
    border-radius: 50px !important;
    padding: 7px 14px !important;
}

.btn-round2 {
    border-radius: 50px !important;
    padding: 7px 11px !important;
}

.font-12 {
    font-size: 12px !important;
}

input,
textarea {
    caret-color: #000000 !important;
    color: #333;
}

.w-max-content {
    width: max-content !important;
}

/* ═══════════════════════════════════════════════
   SETTINGS PAGE COMPONENTS
═══════════════════════════════════════════════ */
.settings-card {
    min-height: calc(100vh - 140px);
}

.sidebar-primary-width {
    width: 260px;
    flex-shrink: 0;
}

.sidebar-secondary-width {
    width: 220px;
    flex-shrink: 0;
}

.search-min-width {
    min-width: 200px;
}

.table-content-scroll {
    max-height: calc(100vh - 220px);
}

.min-h-inherit {
    min-height: inherit;
}

.hover-bg-light:hover {
    background-color: rgba(0, 0, 0, 0.02) !important;
}

.settings-sidebar-primary .list-group-item.active {
    background-color: var(--primary) !important;
    box-shadow: 0 4px 15px rgba(22, 16, 106, 0.15);
}

.settings-sidebar-secondary .list-group-item.active {
    border-left: 3px solid var(--primary) !important;
    color: var(--primary) !important;
    background: white !important;
}

.custom-pagination .page-link {
    color: var(--primary);
    font-weight: 500;
    transition: all 0.2s;
}

.custom-pagination .page-item.active .page-link {
    background-color: var(--primary);
    color: #fff;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-right {
    animation: fadeInRight 0.3s ease forwards;
}

/* ═══════════════════════════════════════════════
   BROADBAND & IMPORT COMPONENTS
═══════════════════════════════════════════════ */
.upload-zone {
    border: 2px dashed #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: var(--primary);
    background-color: rgba(22, 16, 106, 0.02) !important;
    transform: translateY(-2px);
}

.mapping-item select {
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.radius-10 {
    border-radius: 10px !important;
}

.radius-5 {
    border-radius: 5px !important;
}

.bg-primary-soft {
    background-color: rgba(22, 16, 106, 0.05);
}

@keyframes pulse-primary {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(22, 16, 106, 0.2);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(22, 16, 106, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(22, 16, 106, 0);
    }
}

.pulse-animation {
    animation: pulse-primary 2s infinite;
}

/* ═══════════════════════════════════════════════
   UTILITIES & HELPER CLASSES
═══════════════════════════════════════════════ */
.cursor-pointer {
    cursor: pointer !important;
}

.transition-all {
    transition: all 0.3s ease;
}

.ls-tight {
    letter-spacing: -0.2px;
}

.ls-wide {
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════
   EXPANDABLE TABLE COMPONENT
═══════════════════════════════════════════════ */
.expandable-table .main-row {
    transition: all 0.3s ease;
}

.expandable-table .main-row.expanded {
    background-color: rgba(22, 16, 106, 0.04) !important;
}

.collapse-icon:hover {
    text-decoration: none !important;
}

.expansion-wrapper {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.expansion-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.expansion-value {
    font-size: 0.85rem;
}

.table>:not(caption)>*>* {
    padding: .35rem .25rem;
}

table tbody td:last-child button {
    line-height: normal;
}

table tbody td {
    color: var(--bs-secondary-color) !important;
    font-size: 0.8rem;
}

table a:hover {
    text-decoration: underline;
}

.text-underline {
    text-decoration: underline !important;
}

button:hover {
    opacity: 0.7;
}

.h-max {
    height: max-content;
}

.text-decoration-none {
    border-radius: 1rem !important;
}

/* ═══════════════════════════════════════════════
   GLASS CARD
═══════════════════════════════════════════════ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.glass-card:hover {
    box-shadow: var(--shadow-hover);
}

.dark-card {
    background: var(--dark-card-bg);
    border-radius: var(--radius-card);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* ═══════════════════════════════════════════════
   PROGRESS BARS
═══════════════════════════════════════════════ */
.prog-row {
    margin-bottom: 0;
}

.prog-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: #555;
}

.prog-pct {
    font-size: 0.76rem;
    font-weight: 700;
}

.prog-track {
    height: 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.prog-fill {
    height: 100%;
    border-radius: 8px;
    width: 0;
    transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.prog-fill.pf-primary {
    background: var(--primary);
}

.prog-fill.pf-yellow {
    background: var(--yellow);
}

.prog-fill.pf-blue {
    background: var(--sky-blue);
}

.prog-fill.pf-green {
    background: #22c55e;
}

/* ═══════════════════════════════════════════════
   STAT CARDS
═══════════════════════════════════════════════ */
.stat-card {
    cursor: pointer;
}

.stat-card:hover .stat-num {
    color: var(--primary);
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.stat-icon-yellow {
    background: var(--yellow-light);
    color: #c9930a;
}

.stat-icon-blue {
    background: rgba(0, 120, 212, 0.1);
    color: var(--sky-blue);
}

.stat-icon-red {
    background: rgba(188, 6, 16, 0.1);
    color: var(--secondary);
}

.stat-icon-green {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.stat-card:hover .stat-icon {
    transform: scale(1.08);
}

.stat-label {
    font-size: 0.72rem;
    color: #888;
    margin-bottom: 1px;
}

.stat-num {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw + 0.5rem, 1.55rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    transition: var(--transition);
}

/* ═══════════════════════════════════════════════
   PROFILE GRID CARD (replaces old horizontal card)
═══════════════════════════════════════════════ */
.profile-grid-card {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: var(--transition);
}

.profile-grid-card:hover {
    box-shadow: var(--shadow-hover);
}

/* Top banner with gradient */
.profile-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #2d25b5 100%);
    height: 76px;
    position: relative;
}

.profile-banner-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(232, 186, 55, 0.12) 0%, transparent 40%);
}

/* Avatar overlapping banner */
.profile-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-top: -36px;
    position: relative;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    object-fit: cover;
    transition: var(--transition);
}

.profile-avatar:hover {
    transform: scale(1.06);
}

/* Grid stats row inside profile card */
.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
}

.profile-info-item {
    background: rgba(22, 16, 106, 0.04);
    border-radius: 12px;
    padding: 10px 12px;
    text-align: center;
    transition: var(--transition);
}

.profile-info-item:hover {
    background: var(--primary-light);
}

.profile-info-val {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw + 0.2rem, 1.25rem);
    font-weight: 800;
    color: var(--primary);
}

h6[data-count] {
    font-size: clamp(1.1rem, 2vw + 0.5rem, 1.5rem);
}

.profile-info-lbl {
    font-size: 0.68rem;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1px;
}

/* Salary badge */
.salary-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--yellow-light);
    color: #8a6200;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(232, 186, 55, 0.3);
    transition: var(--transition);
}

.salary-badge:hover {
    background: var(--yellow);
    color: #333;
}

/* Accordion */
.acc-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.acc-item:last-child {
    border-bottom: none;
}

.acc-btn {
    background: none;
    border: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    font-weight: 600;
    font-size: 0.87rem;
    cursor: pointer;
    color: #222;
    transition: var(--transition);
}

.acc-btn:hover {
    color: var(--primary);
}

.acc-btn .acc-arrow {
    transition: transform 0.3s;
    font-size: 1.1rem;
    color: #aaa;
}

.acc-btn.open .acc-arrow {
    transform: rotate(180deg);
}

.acc-content {
    display: none;
    padding-bottom: 10px;
}

.acc-content.open {
    display: block;
    animation: fadeDown 0.22s ease;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.acc-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.acc-row:last-child {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════
   BAR CHART (Progress card)
═══════════════════════════════════════════════ */
.bar-chart-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 120px;
    padding-top: 30px;
}

.bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 8px;
    /* space between dot and label */
    position: relative;
}

.bar-col-inner {
    height: 60px;
    /* Max height of the bar container */
    display: flex;
    align-items: flex-end;
    width: 6px;
    margin-bottom: 2px;
    /* space between bar and dot */
}

.bar-col-bar {
    width: 100%;
    border-radius: 10px;
    transition: height 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

.bar-light {
    background-color: #e2e8f0;
}

.bar-dark {
    background-color: #334155;
}

.bar-yellow {
    background-color: #fcd34d;
}

.bar-col-lbl {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 500;
}

.active-badge-pill {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fde68a;
    color: #92400e;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
    animation: fadeUp 0.5s ease 0.3s both;
}

/* ═══════════════════════════════════════════════
   TIME TRACKER
═══════════════════════════════════════════════ */
.bg-cream-card {
    background-color: #fbf7eb;
    border-radius: 1.5rem;
}

.btn-cream-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fbf1d8;
    color: #4a4a4a;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.2s;
}

.btn-cream-circle:hover {
    background-color: #fcebc0;
    color: #000;
}

.btn-dark-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #2b2b2b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.2s;
}

.btn-dark-circle:hover {
    background-color: #000;
}

.ring-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto;
}

.ring-svg {
    transform: rotate(-90deg);
}

.ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: #111;
    color: var(--dark);
    white-space: nowrap;
}

.timer-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: #555;
    font-size: 0.9rem;
}

.timer-btn:hover {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timer-btn-stop {
    background: var(--dark-card-bg);
    color: #fff;
    border-color: var(--dark-card-bg);
}

.timer-btn-stop:hover {
    background: #2d2a50;
    color: #fff;
}

/* ═══════════════════════════════════════════════
   CALENDAR
═══════════════════════════════════════════════ */
.cal-header-label {
    font-family: var(--font-display);
    font-size: 0.96rem;
    font-weight: 800;
}

.cal-nav-badge {
    font-size: 0.76rem;
    font-weight: 700;
    background: var(--yellow);
    color: #333;
    padding: 5px 13px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.cal-nav-badge:hover {
    background: #d4a820;
    color: #fff;
}

.cal-grid-header {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.cal-grid-body {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.cal-hdr-cell {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: #bbb;
    padding: 3px 0 5px;
}

.cal-day {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.79rem;
    font-weight: 500;
    cursor: pointer;
    margin: 0 auto;
    transition: var(--transition);
}

.cal-day:hover {
    background: var(--primary-light);
}

.cal-day.today {
    background: var(--primary);
    color: #fff;
}

.cal-day.has-event::after {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--yellow);
    margin: -5px auto 0;
}

.cal-event-chip {
    background: var(--primary-light);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.78rem;
}

.cal-event-title {
    font-weight: 600;
    color: var(--dark);
}

.cal-event-sub {
    font-size: 0.71rem;
    color: #888;
}

.cal-avatars img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #fff;
    margin-left: -5px;
    object-fit: cover;
}

.cal-avatars img:first-child {
    margin-left: 0;
}

/* ═══════════════════════════════════════════════
   ONBOARDING / TASK LIST
═══════════════════════════════════════════════ */
.onboard-progress-bars {
    display: flex;
    gap: 5px;
}

.ob-bar-wrap {
    flex: 1;
}

.ob-bar-pct {
    font-size: 0.65rem;
    color: #aaa;
    margin-bottom: 3px;
}

.ob-bar {
    height: 5px;
    border-radius: 4px;
}

.ob-bar-lbl {
    font-size: 0.65rem;
    color: #aaa;
    margin-top: 2px;
}

.ob-bar-yellow {
    background: var(--yellow);
}

.ob-bar-white1 {
    background: rgba(255, 255, 255, 0.22);
}

.ob-bar-white2 {
    background: rgba(255, 255, 255, 0.1);
}

.task-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.task-row:last-child {
    border-bottom: none;
}

.task-check {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.7rem;
    transition: var(--transition);
}

.task-check.done {
    background: #22c55e;
    color: #fff;
}

.task-check.pending {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.task-icon-wrap {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

.task-title {
    font-size: 0.82rem;
    font-weight: 500;
}

.task-date {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ═══════════════════════════════════════════════
   TABLE SECTION
═══════════════════════════════════════════════ */
.tbl-wrap {
    overflow-x: auto;
}

.coa-table {
    font-size: 0.84rem;
    margin: 0;
}

.coa-table thead th {
    font-weight: 700;
    font-size: 0.71rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #777;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06) !important;
    padding: 10px 12px;
    background: transparent;
    white-space: nowrap;
}

.coa-table tbody td {
    padding: 10px 12px;
    vertical-align: middle;
    border-color: rgba(0, 0, 0, 0.04);
}

.coa-table tbody tr {
    transition: var(--transition);
}

.coa-table tbody tr:hover {
    background: rgba(22, 16, 106, 0.025);
}

.reg-id {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.82rem;
}

.member-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.member-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(22, 16, 106, 0.1);
    flex-shrink: 0;
}

/* Status badges */
.badge-active {
    background: #dcfce7;
    color: #15803d;
    font-weight: 700;
    font-size: 0.71rem;
    padding: 4px 10px;
    border-radius: 20px;
}

.badge-pending {
    background: #fef9c3;
    color: #a16207;
    font-weight: 700;
    font-size: 0.71rem;
    padding: 4px 10px;
    border-radius: 20px;
}

.badge-inactive {
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 700;
    font-size: 0.71rem;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Action buttons */
.btn-action-view {
    background: var(--primary-light);
    border: none;
    border-radius: 8px;
    font-size: 0.74rem;
    color: var(--primary);
    padding: 4px 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-action-view:hover {
    background: rgba(22, 16, 106, 0.16);
}

.btn-action-del {
    background: rgba(220, 53, 69, 0.09);
    border: none;
    border-radius: 8px;
    font-size: 0.74rem;
    color: #dc3545;
    padding: 4px 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-action-del:hover {
    background: rgba(220, 53, 69, 0.2);
}

/* Table toolbar */
.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.table-search {
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 0.8rem;
    outline: none;
    font-family: var(--font-body);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.6);
    width: 165px;
}

.table-search:focus {
    border-color: var(--primary);
    background: #fff;
}

/* Pagination */
.pagination-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════
   PRIMARY BUTTONS
═══════════════════════════════════════════════ */
button.radius-btn {
    border-radius: var(--radius-btn) !important;
}

.btn-coa-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-btn);
    padding: 7px 18px;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
}

.btn-coa-primary:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 16, 106, 0.25);
}

.btn-coa-ghost {
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    border-radius: var(--radius-btn);
    padding: 7px 18px;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
}

.btn-coa-ghost:hover {
    background: rgba(22, 16, 106, 0.14);
}

/* ═══════════════════════════════════════════════
   DROPDOWN OVERRIDES
═══════════════════════════════════════════════ */
.dropdown-menu {
    border: none;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.13);
    padding: 8px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
}

/* ═══════════════════════════════════════════════
   DROPDOWN — Desktop header/nav anchoring
   ONLY applies to header nav dropdowns, NOT table cell
   dropdowns which use data-bs-strategy="fixed".
═══════════════════════════════════════════════ */


/* A — Header/nav: full keyframe animation */
.top-header .dropdown-menu.show,
.nav-left-menus .dropdown-menu.show {
    animation: dropdownSlideFade 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-fullscreen .modal-content {
    border-radius: 0 !important;
}

.modal-fullscreen .hover-elevate:hover {
    background: transparent;
}

.search-result-modal .close-btn {
    position: absolute;
    right: -10px;
    top: -40px;
}

.top-header .dropdown-menu.show {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    border-radius: 24px;
}

.top-header .header-inner .header-left .icon-btn {
    width: 25px;
    height: 25px;
}

@keyframes dropdownSlideFade {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* B — Table cell dropdowns: CSS4 individual scale + opacity transition.
   `scale` is a separate CSS property from `transform` in CSS4,
   so it composes with Popper's inline translate3d safely. */
.dropdown-coa-menu {
    border-radius: 12px !important;
    min-width: 160px;
    box-shadow: 0 4px 20px rgba(22, 16, 106, 0.12) !important;
    z-index: 9999;
    transform-origin: top right;
    /* Entry state: hidden and scaled down */
    opacity: 0;
    scale: 0.96;
    transition: opacity 0.18s ease, scale 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-coa-menu.show {
    opacity: 1;
    scale: 1;
}


.dropdown-item {
    border-radius: 8px;
    font-size: 0.83rem;
    padding: 8px 12px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item i {
    font-size: 1rem;
    width: 18px;
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
}

.dropdown-divider {
    margin: 6px 0;
}

.notif-dropdown {
    width: 300px;
    padding: 14px;
}

.notif-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

.notif-dot-red {
    background: var(--secondary);
}

.notif-dot-yellow {
    background: var(--yellow);
}

.notif-dot-blue {
    background: var(--sky-blue);
}

.notif-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark);
}

.notif-sub {
    font-size: 0.75rem;
    color: #888;
}

.notif-time {
    font-size: 0.7rem;
    color: #bbb;
}

.notif-all-link {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 10px;
}

.notif-all-link:hover {
    text-decoration: underline;
}

.settings-dropdown {
    width: 240px;
}

.badge-yellow-pill {
    background: var(--yellow);
    color: #333;
    font-weight: 700;
    font-size: 0.68rem;
    padding: 3px 10px;
    border-radius: 20px;
}

.profile-dropdown-header {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-dropdown-name {
    font-weight: 700;
    font-size: 0.87rem;
    color: var(--dark);
}

.profile-dropdown-role {
    font-size: 0.73rem;
    color: #888;
}

/* ═══════════════════════════════════════════════
   MODALS
═══════════════════════════════════════════════ */
.modal-content {
    border: none;
    border-radius: var(--radius-card);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
}

.modal-header {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.modal-footer {
    border-top-color: rgba(0, 0, 0, 0.06);
}

.modal-title {
    font-family: var(--font-display);
    font-weight: 800;
}

.view-field {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 11px 14px;
    margin-bottom: 8px;
}

.view-field-label {
    font-size: 0.69rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bs-secondary-color);
    margin-bottom: 2px;
}

.view-field-value {
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--dark);
}

.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    font-family: var(--font-body);
    font-size: 0.84rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 16, 106, 0.08);
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.sticky-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    margin: 0 16px 12px;
    position: sticky;
    bottom: 12px;
    z-index: 1040;
    box-shadow: 0 -4px 24px rgba(22, 16, 106, 0.05);
    padding: 10px 20px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
}

.footer-ver {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 8px;
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(232, 186, 55, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(232, 186, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(232, 186, 55, 0);
    }
}

.fade-up {
    animation: fadeUp 0.5s ease forwards;
    opacity: 0;
}

.scale-in {
    animation: scaleIn 0.4s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.05s;
}

.delay-2 {
    animation-delay: 0.1s;
}

.delay-3 {
    animation-delay: 0.15s;
}

.delay-4 {
    animation-delay: 0.2s;
}

.delay-5 {
    animation-delay: 0.25s;
}

.delay-6 {
    animation-delay: 0.3s;
}

/* ═══════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(22, 16, 106, 0.2);
    border-radius: 10px;
}

/* ═══════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════ */
.custom-pagination {
    gap: 4px;
}

.custom-pagination .page-item .page-link {
    border: 1px solid #e2e8f0;
    color: #64748b;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s;
    background: #fff;
    margin: 0;
}

.custom-pagination .page-item .page-link:hover {
    background: #f8fafc;
    color: var(--primary);
    border-color: #cbd5e1;
}

.custom-pagination .page-item.active .page-link {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 4px rgba(22, 16, 106, 0.2);
}

.custom-pagination .page-item.disabled .page-link {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
}

.calender-time {
    font-size: 0.68rem;
}

/* ═══════════════════════════════════════════════
   MEMBER DETAILS MODAL (FULLSCREEN & GLASS)
═══════════════════════════════════════════════ */
.modal-theme-glass .modal-content {
    background: linear-gradient(135deg, #eeebfdb3 0%, #d6d3e5a1 55%, #e2201b1c 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    position: relative;
    overflow: hidden;
}

.modal-theme-glass .modal-content::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    background: rgb(252 237 238);
    top: -110px;
    right: -110px;
    border-radius: 50%;
    filter: blur(65px);
    z-index: 0;
    pointer-events: none;
}

.modal-theme-glass .modal-content::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: rgb(252 237 238);
    bottom: -90px;
    left: -80px;
    border-radius: 50%;
    filter: blur(55px);
    z-index: 0;
    pointer-events: none;
}

.modal-theme-glass .modal-header,
.modal-theme-glass .glass-tabs-container,
.modal-theme-glass .modal-footer {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.modal-theme-glass .modal-body {
    position: relative;
    z-index: 1;
}

/* Reusable Modern Card Components for Dashboard Integration */


.modern-glass-card {
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 1rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-glass-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04) !important;
}

.modern-card-header {
    background: transparent !important;
    border-bottom: none !important;
    padding-top: 1.25rem !important;
    padding-bottom: 0.5rem !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}

.modern-card-title {
    color: #1e293b !important;
    font-size: 1.125rem !important;
}

.modal-avatar {
    width: 55px;
    height: 55px;
}

.grid-avatar {
    width: 72px;
    height: 72px;
}

.fs-7 {
    font-size: 0.8rem;
}

.fs-8 {
    font-size: 0.7rem;
}

.modern-btn-action {
    background: #0c134f !important;
    color: #ffffff !important;
    border-radius: 0.5rem !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 0.75rem !important;
    transition: background-color 0.2s;
}

.modern-btn-action:hover {
    background: #16106a !important;
}

.modal-theme-glass .table tr {
    background: transparent !important;
}

.modal-theme-glass .table-hover tbody tr:hover {
    background: rgba(255, 255, 255, 0.5) !important;
}

.modal-theme-glass .nav-link {
    color: #475569 !important;
}

.modal-theme-glass .insurance-modal .nav-link {
    color: #fff !important;
}

.modal-theme-glass .nav-link.active {
    color: var(--primary) !important;
    background: transparent !important;
}

.modal-theme-glass hr {
    border-color: rgba(22, 16, 106, 0.15) !important;
    opacity: 1 !important;
}

.border-dashed {
    border-style: dashed !important;
}

.custom-tabs {
    border-bottom: 0 !important;
}

.custom-tabs .nav-link {
    border: none !important;
    border-bottom: 3px solid transparent !important;
    color: #64748b;
    padding: 1rem 0.5rem !important;
    margin: 0 0.5rem;
    border-radius: 0;
    transition: all 0.3s ease;
    background: transparent !important;
    width: max-content;
}

.custom-tabs .nav-link:hover {
    color: var(--primary);
}

.custom-tabs .nav-link.active {
    color: var(--primary) !important;
    border-bottom: 4px solid var(--primary) !important;
    font-weight: 600 !important;
    border-radius: 3px !important;
}

/* Hide scrollbar for cleanly scrolling tabs horizontally on small screens */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    /* IE & Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* ═══════════════════════════════════════════════
   ADD MEMBER PAGE (FORM COMPONENTS)
═══════════════════════════════════════════════ */
.sys-warning-banner {
    background-color: #fefce8;
    color: #854d0e;
    border-bottom: 1px solid #fef08a;
    font-size: 0.85rem;
    font-weight: 500;
}

.form-label-req::after {
    content: " *";
    color: #ef4444;
}

.form-float-anim:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 16, 106, 0.1);
    border-color: var(--primary);
}

/* ═══════════════════════════════════════════════
   MODAL HEADER ABSTRACTIONS
═══════════════════════════════════════════════ */
.badge-sm {
    font-size: 0.65rem;
    padding: 3px 8px;
}

.btn-hover-primary:hover {
    color: var(--primary) !important;
}

.btn-hover-opacity {
    transition: opacity 0.2s;
}

.btn-hover-opacity:hover {
    opacity: 1 !important;
}

/* ═══════════════════════════════════════════════
   LOGIN PAGE
═══════════════════════════════════════════════ */
.login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.login-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
}

.login-bg-shape.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--yellow-light);
    top: -100px;
    left: -100px;
}

.login-bg-shape.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(22, 16, 106, 0.05);
    /* Primary tint */
    bottom: -50px;
    right: -50px;
}

.login-container {
    max-width: 440px;
}

.login-logo {
    width: 65%;
}

.login-container a:hover {
    text-decoration: underline;
}

.input-group-modern .input-group-text {
    border-color: #dee2e6;
    border-top-left-radius: var(--bs-border-radius-lg);
    border-bottom-left-radius: var(--bs-border-radius-lg);
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group-modern .form-control {
    border-color: #dee2e6;
    border-radius: 0 !important;
}

.input-group-modern .form-control:last-child {
    border-top-right-radius: var(--bs-border-radius-lg) !important;
    border-bottom-right-radius: var(--bs-border-radius-lg) !important;
}

.input-group-modern .btn {
    border-top-right-radius: var(--bs-border-radius-lg) !important;
    border-bottom-right-radius: var(--bs-border-radius-lg) !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.input-group-modern .form-control:focus {
    border-color: var(--primary) !important;
}

.input-group-modern:focus-within .input-group-text,
.input-group-modern:focus-within .btn-white {
    border-color: var(--primary) !important;
}

/* View detail rows */
.detail-row {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 12px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-key {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #aaa;
    min-width: 130px;
    flex-shrink: 0;
    padding-top: 2px;
}

.detail-val {
    font-size: 0.86rem;
    color: var(--dark);
    font-weight: 500;
}

.notification-page {
    .space-y-4> :not([hidden])~ :not([hidden]) {
        --tw-space-y-reverse: 0;
        margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
        margin-bottom: calc(1rem * var(--tw-space-y-reverse));
    }
}

/* Notifications Page Custom Classes */
.notif-page-avatar {
    width: 48px;
    height: 48px;
}

.notif-badge-indicator {
    width: 14px;
    height: 14px;
}

.notif-time-sm {
    font-size: 0.75rem;
}

.notif-status-dot {
    width: 8px;
    height: 8px;
}

.notif-read-state {
    filter: grayscale(0.3);
}

.notif-card-item {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none !important;
    /* Fully removes full-box borders */
    border-left: 5px solid transparent !important;
    /* Thick left border */
    border-radius: 16px !important;
    /* 16px radius applied to container which curves the left border */
}

.notif-card-item.border-primary {
    border-left-color: var(--primary) !important;
}

.notif-card-item.border-warning {
    border-left-color: var(--yellow) !important;
}

.notif-card-item.border-secondary {
    border-left-color: #cbd5e1 !important;
}

/* ═══════════════════════════════════════════════
   MODAL UI OVERRIDES (Fixing transparency)
═══════════════════════════════════════════════ */
.modal-content {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: var(--radius-card, 16px) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

.modal-backdrop.show {
    opacity: 0.65 !important;
    background-color: #000000 !important;
    backdrop-filter: blur(4px);
}

.modal-header,
.modal-footer {
    border-color: rgba(0, 0, 0, 0.05) !important;
}

.hover-elevate {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-elevate:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08) !important;
    background: #ffffff !important;
    color: var(--black) !important;
}

/* ═══════════════════════════════════════════════
   MEETINGS UTILITY CLASSES
═══════════════════════════════════════════════ */
.min-w-70 {
    min-width: 70px;
}

.min-w-250 {
    min-width: 250px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up-anim {
    animation: fadeUp 0.3s ease both;
}

/* ═══════════════════════════════════════════════
   AGENDA COMPONENTS
   Clean, modern list items with quick actions
═══════════════════════════════════════════════ */
.agenda-list-item {
    background: #fff;
    border: 1px solid rgba(22, 16, 106, 0.08);
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.75rem;
}

.agenda-list-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(22, 16, 106, 0.06);
    transform: translateY(-2px);
}

.agenda-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0;
}

.agenda-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.btn-add-minutes {
    color: #3b82f6;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.btn-add-minutes:hover {
    color: var(--primary);
}

.btn-delete-agenda {
    color: #f43f5e;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    transition: all 0.2s;
    opacity: 0.7;
}

.btn-delete-agenda:hover {
    opacity: 1;
    transform: scale(1.1);
}

.badge-executive {
    background: #16106a18;
    color: #16106a;
    font-weight: 700;
    font-size: 0.71rem;
    padding: 3px 9px;
    border-radius: 20px;
}

/* ═══════════════════════════════════════════════
   DYNAMIC NAVIGATION MENU
═══════════════════════════════════════════════ */
.nav-menu-dropdown {
    min-width: 260px;
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
}

.menu-label-heading {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.menu-item-text {
    font-size: 0.9rem;
}

.menu-list-item {
    transition: all 0.2s ease;
}

.menu-star-icon {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 10px;
    margin-left: auto;
}

.dropdown-item .menu-star-icon.text-muted {
    opacity: 0.55;
}

.dropdown-item .menu-star-icon.text-muted:hover {
    opacity: 1;
}

.dropdown-item .menu-star-icon {
    margin-right: 10px;
}

/* ════════════════════════════════════════════════
   BROADBAND — OFFICE-STYLE MAPPING DIALOG
════════════════════════════════════════════════ */
.mapping-type-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
}

.mapping-center-controls {
    flex-shrink: 0;
    width: 80px;
    padding-top: 3.5rem;
}

.mapping-list-box {
    min-height: 240px;
    height: 240px;
}

.mapping-source-item.active {
    background-color: var(--primary, #16106a) !important;
    color: #fff !important;
}

.mapping-source-item.active .mapping-type-chip {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.mapping-source-item.active span {
    color: #fff !important;
}

/* Draggable row hover in mapped list */
.mapping-pane-right .list-group-item:hover {
    background-color: rgba(22, 16, 106, 0.04);
    cursor: pointer;
}

.dropend .menu-star-icon {
    margin-right: 0;
}

.menu-star-icon:hover {
    transform: scale(1.2);
}

.nav-counter-badge {
    font-size: 0.65rem;
    padding: 0.25em 0.45em;
    transition: transform 0.2s ease;
    left: auto;
    right: -5px;
    top: 7px;
    font-size: 10px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(5px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-nav-item {
    animation: fadeInScale 0.3s ease-out forwards;
}

/* Nested Dropdown (dropend) Fixes */
.dropdown-menu .dropend {
    position: relative;
}

.dropdown-menu .dropend .dropdown-menu {
    position: absolute !important;
    inset: 0 auto auto 100% !important;
    margin-top: 0 !important;
    margin-left: 0.125rem !important;
    transform: none !important;
    /* Prevent Popper.js from breaking position */
}

.dropdown-menu .dropend .dropdown-toggle {
    display: flex;
    align-items: center;
}

.accordion-flush .accordion-item .accordion-button,
.accordion-flush .accordion-item .accordion-button.collapsed {
    padding: 0.5rem 1.25rem;
}

/* ═══════════════════════════════════════════════
   ART GRID CARD (Members Grid View)
═══════════════════════════════════════════════ */
.art-grid-card {
    display: block;
    background: var(--glass-bg);
    padding: 6px;
    /* Tighter frame for denser grid */
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    height: 100%;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.art-grid-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.art-grid-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    /* Square shape */
    overflow: hidden;
    border-radius: 10px;
}

.hide-mobile {
    display: none !important;
}

.art-grid-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.art-grid-card:hover .art-grid-img-wrap img {
    transform: scale(1.1);
    /* Zoom in effect */
}

.art-grid-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.9;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.art-grid-card:hover .art-grid-overlay {
    opacity: 1;
}

.art-grid-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 10px;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.art-grid-title {
    color: #fff;
    font-size: clamp(0.75rem, 1.5vw + 0.4rem, 1rem);
    /* Auto scaling font */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0px;
    margin-bottom: 2px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
}

.art-grid-id {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.6rem, 1vw + 0.45rem, 0.75rem);
    /* Auto scaling font */
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
}

/* Reveal full wrapped text dynamically on card hover */
.art-grid-card:hover .art-grid-title,
.art-grid-card:hover .art-grid-id {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    /* Increase shadow intensity purely for the wrapped readable overflow */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 1);
}

.art-grid-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
}

.art-grid-badge .badge {
    font-size: clamp(0.55rem, 1vw + 0.3rem, 0.7rem);
    /* Auto scaling badge */
    padding: 0.25em 0.5em;
    /* Tighter padding for badge */
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ═══════════════════════════════════════════════
   AUTOMATIC FLEXIBLE GALLERY GRID
   Maximum columns per row based on optimal widths (Compact Mode)
═══════════════════════════════════════════════ */
.auto-gallery-grid {
    display: grid;
    /* Fit absolute maximum tiny cards on smallest mobile */
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 5px;
    /* Decrease grid gap minimum */
}







.auto-gallery-grid>* {
    /* Resets any bootstrap col properties conflicting with pure CSS grid */
    flex: unset !important;
    max-width: none !important;
    width: auto !important;
    min-width: 0;
}

/* ═══════════════════════════════════════════════
   A-Z ALPHABET SORTING MODULE
═══════════════════════════════════════════════ */
.alphabet-sort-container {
    width: 100%;
    margin-bottom: 24px;
    position: relative;
    border-radius: 16px;
    background: transparent;
}

.alphabet-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    /* space for scrollbar */
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: rgba(22, 16, 106, 0.2) transparent;
    -webkit-overflow-scrolling: touch;
    /* Smooth iOS scroll */
}

/* Chrome/Safari tiny scrollbar */
.alphabet-scroll-wrapper::-webkit-scrollbar {
    height: 4px;
}

.alphabet-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.alphabet-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(22, 16, 106, 0.15);
    border-radius: 10px;
}

.alpha-btn {
    flex: 0 0 auto;
    /* Prevent from shrinking */
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-dark, #333);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* "All" button wider padding */
.alpha-btn:first-child {
    padding: 0 20px;
}

.alpha-btn:hover {
    background: linear-gradient(135deg, var(--primary), #4e40c6);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(22, 16, 106, 0.2);
    border-color: transparent;
}

.alpha-btn.active {
    background: linear-gradient(135deg, var(--primary), #4e40c6);
    color: #fff;
    border-color: transparent;
    /* box-shadow: 0 4px 12px rgba(22, 16, 106, 0.25); */
    transform: translateY(-1px);
}

/* Advanced Mobile Optimizations */


.shares-tab {
    text-transform: initial;
}

/* ═══════════════════════════════════════════════
   EXTRACTED INLINE STYLES & UTILITIES
═══════════════════════════════════════════════ */
.min-w-0 {
    min-width: 0;
}

.directory-search-input {
    padding-left: 42px !important;
    height: 44px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.directory-search-icon {
    left: 16px;
}

.img-grayscale {
    filter: grayscale(100%);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE CARD TABLE (MOBILE)
═══════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════
   UTILITY CLASSES (REPLACING INLINE STYLES)
═══════════════════════════════════════════════ */
.fs-tiny {
    font-size: 0.7rem !important;
}

.fs-xtra-tiny {
    font-size: 0.65rem !important;
}

.fs-small {
    font-size: 0.8rem !important;
}

.fs-medium {
    font-size: 1rem !important;
}

.fs-7 {
    font-size: 0.85rem !important;
}

.fs-75 {
    font-size: 0.75rem !important;
}

.ls-tight {
    letter-spacing: 0.5px !important;
}

.radius-10 {
    border-radius: 10px !important;
}

.radius-12 {
    border-radius: 12px !important;
}

.radius-20 {
    border-radius: 20px !important;
}

.members-left-box .fs-xtra-tiny {
    font-size: 0.75rem !important;
}

.glass-modal-content {
    border-radius: 20px !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.btn-coa-gradient {
    background: linear-gradient(135deg, var(--primary), #3b82f6) !important;
    color: white !important;
    border: none !important;
    transition: var(--transition) !important;
}

.btn-coa-gradient:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.pos-tr-15 {
    position: absolute;
    top: 15px;
    right: 15px;
}

/* Entry Delays */
.delay-05 {
    animation-delay: 0.05s !important;
}

.delay-10 {
    animation-delay: 0.10s !important;
}

.delay-15 {
    animation-delay: 0.15s !important;
}

.trans-all-3 {
    transition: all 0.3s ease !important;
}

.trans-transform-4 {
    transition: transform 0.4s ease !important;
}

.lh-relaxed {
    line-height: 1.6 !important;
}

.h-260 {
    height: 260px !important;
}



.obj-cover {
    object-fit: cover !important;
}

.fade-up-anim {
    animation: fadeUp 0.3s ease !important;
}

/* -----------------------------------------------
   PREMIUM COMPONENTS
----------------------------------------------- */
.modern-banner-wrap {
    width: 100%;
    border-radius: var(--radius-sm, 12px);
    margin-bottom: 1.5rem;
    background: var(--grey, #f8f9fa);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    overflow: hidden;
    height: 260px;
    position: relative;
}



.modern-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* -----------------------------------------------
   SELECT2 CUSTOM STYLING (GLASSMORPHISM)
----------------------------------------------- */
.select2-container--default .select2-selection--multiple,
.select2-container--default .select2-selection--single {
    background-color: #f8f9fa !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 2px 8px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    font-size: 0.85rem !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--single {
    border: 1px solid var(--primary-light) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(22, 16, 106, 0.1) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--primary) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 2px 10px !important;
    margin-top: 5px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff !important;
    margin-right: 5px !important;
    border: none !important;
    background: transparent !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.select2-dropdown {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    overflow: hidden !important;
    margin-top: 5px !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border-radius: 8px !important;
    border: 1px solid #eee !important;
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
}


/* -----------------------------------------------
   PROFILE DASHBOARD STYLES
----------------------------------------------- */

/* Sidebar Utilities */
.profile-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), #4e40c6);
    color: #fff;
    font-size: 1rem;
}

.profile-stat-icon.secondary {
    background: linear-gradient(135deg, #12c2e9, #c471ed);
}

/* Social Links */
.social-link-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.social-link-card:hover {
    transform: translateY(-5px);
    background-color: var(--white) !important;
    box-shadow: 0 10px 25px rgba(22, 16, 106, 0.1);
    border-color: var(--primary-light);
}

.social-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-link-card:hover .social-icon-btn {
    background-color: var(--primary);
    color: #fff;
}

/* Activity Timeline */
.activity-timeline {
    position: relative;
    padding-left: 32px;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: rgba(22, 16, 106, 0.1);
    border-radius: 2px;
}

.live-activity-card .activity-timeline {
    padding-left: 10px;
}

.live-activity-card .activity-timeline::before {
    display: none;
}

.activity-item {
    position: relative;
    padding-bottom: 24px;
}

.activity-marker {
    position: absolute;
    left: -28px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--success);
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(22, 16, 106, 0.05);
}

.activity-item:last-child {
    padding-bottom: 0;
}

.activity-content {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(22, 16, 106, 0.05);
}


/* -----------------------------------------------
   MODERN UI COMPONENTS
----------------------------------------------- */

/* Toast Notifications */
.coa-toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.coa-toast {
    min-width: 320px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(22, 16, 106, 0.1);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.coa-toast.show {
    transform: translateX(0);
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.toast-success .toast-icon {
    background: #dcfce7;
    color: #16a34a;
}

.toast-error .toast-icon {
    background: #fee2e2;
    color: #dc2626;
}

/* Modern Inputs */
.form-floating-modern>.form-control {
    padding: 1.25rem 0.75rem;
    border-radius: 12px;
    background: var(--glass-bg);
    transition: all 0.3s ease;
}

.form-floating-modern>.form-control:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(22, 16, 106, 0.08);
}

/* Glass Modal Extra */
.glass-modal-content {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 24px !important;
}


/* -----------------------------------------------
   FINE-TUNED MODERN UI (ENHANCED)
----------------------------------------------- */
:root {
    --glass-blur: 16px;
    --glass-opacity: 0.7;
    --premium-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'DM Sans', sans-serif !important;
    background: #f8f9fc;
}

.modern-glass-card {
    background: rgba(255, 255, 255, var(--glass-opacity)) !important;
    backdrop-filter: blur(var(--glass-blur)) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 20px !important;
    box-shadow: var(--premium-shadow) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modern-glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(22, 16, 106, 0.08) !important;
}

.view-field {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(22, 16, 106, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.view-field:hover {
    background: #fff;
    border-color: var(--primary-light);
    transform: scale(1.02);
}

.view-field-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    opacity: 0.7;
    margin-bottom: 4px;
}

.view-field-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}


/* -----------------------------------------------
   THEMATIC DASHBOARD TABS
----------------------------------------------- */
.theme-tab-nav-wrapper {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 15px rgba(22, 16, 106, 0.03);
}

.theme-tab-nav {
    display: flex;
    gap: 4px;
    border: none !important;
}

.theme-tab-nav .nav-link {
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: var(--dark) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: transparent !important;
    /* display: flex !important; */
    align-items: center !important;
    gap: 10px !important;
    position: relative;
    overflow: hidden;
}

.theme-tab-nav .nav-link .stat-num {
    font-size: 0.75rem !important;
}

.theme-tab-nav .nav-link:hover {
    background: rgba(22, 16, 106, 0.05) !important;
    color: var(--primary) !important;
}

.theme-tab-nav .nav-link.active {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(22, 16, 106, 0.2) !important;
}

.theme-tab-nav .nav-link.active .stat-num {
    color: var(--white);
}

/* Content Area Refinement */
.theme-card-premium {
    border-top: 4px solid var(--primary) !important;
    position: relative;
}

.theme-card-accent {
    border-left: 4px solid var(--secondary) !important;
}


/* -----------------------------------------------
   PIXEL-PERFECT PROFILE UPGRADE (EXACT MIRROR)
----------------------------------------------- */

/* Value Box Grid System */
.profile-value-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px 16px;
    height: 100%;
    transition: all 0.3s ease;
}

.profile-value-box:hover {
    background: #fff;
    box-shadow: 0 4px 15px rgba(22, 16, 106, 0.05);
    transform: translateY(-2px);
}

.value-box-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #a0aec0;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.value-box-content {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2d3748;
}

/* Sidebar v2 */
.v2-banner {
    height: 125px;
    background: linear-gradient(135deg, #3f36c5, #6366f1);
    border-radius: 20px 20px 0 0;
}

/* ── Banner Edit Button ── */
@keyframes shimmer-slide {
    0% {
        transform: translateX(-120%) skewX(-15deg);
    }

    100% {
        transform: translateX(220%) skewX(-15deg);
    }
}

@keyframes icon-shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-12deg);
    }

    75% {
        transform: rotate(12deg);
    }
}

.v2-banner-edit-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px 5px 10px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.04em;
    overflow: hidden;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
    z-index: 10;
}

.v2-banner-edit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: rgba(255, 255, 255, 0.28);
    filter: blur(6px);
    transform: translateX(-120%) skewX(-15deg);
    pointer-events: none;
}

.v2-banner-edit-btn:hover {
    background: rgba(255, 255, 255, 0.32);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
    color: #fff;
}

.v2-banner-edit-btn:hover::before {
    animation: shimmer-slide 0.65s ease forwards;
}

.v2-banner-edit-btn i {
    font-size: 0.88rem;
    transition: transform 0.3s ease;
}

.v2-banner-edit-btn:hover i {
    animation: icon-shake 0.4s ease;
}


.v2-avatar-wrap {
    margin-top: -65px;
    position: relative;
    z-index: 5;
    display: inline-block;
}

/* ═══════════════════════════════════════════
   DISTRICT VIEW CUSTOM CLASSES FROM INLINE STYLES
═══════════════════════════════════════════ */
.dist-icon-wrap {
    width: 56px;
    height: 56px;
}

.dist-section-line {
    height: 1px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1), transparent);
}

.gov-card-top-bar {
    height: 3px;
    background: linear-gradient(90deg, #ca8a04, #facc15);
}

.gov-menu-btn {
    width: 28px;
    height: 28px;
}

.gov-card-img {
    width: 85px;
    height: 85px;
    object-fit: cover;
}

.gov-card-title {
    color: #b48608;
    letter-spacing: 0.5px;
}

.modal-label-sm {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════
   MEMBER THUMBNAIL GRID
═══════════════════════════════════════════ */
.mem-thumb-grid {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, 1fr);
}

.mem-thumb-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    animation: fadeUp 0.4s ease both;
}

.mem-thumb-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #e8e8e8;
}

.mem-thumb-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mem-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 8, 50, 0.82) 0%, rgba(10, 8, 50, 0.1) 55%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 10px 8px;
    transition: background 0.3s ease;
}

.mem-thumb-info {
    width: 100%;
    transform: translateY(4px);
    transition: transform 0.3s ease;
}

.mem-thumb-name {
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.mem-thumb-loc {
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.mem-thumb-card:hover .mem-thumb-img-wrap img {
    transform: scale(1.08);
}

.mem-thumb-card:hover .mem-thumb-overlay {
    background: linear-gradient(to top, rgba(22, 16, 106, 0.88) 0%, rgba(22, 16, 106, 0.18) 60%, transparent 100%);
}

.mem-thumb-card:hover .mem-thumb-info {
    transform: translateY(0);
}

.grid-section {
    animation: fadeUp 0.4s ease both;
}

/* ═══════════════════════════════════════════
   EXECUTIVE THUMBNAIL GRID
═══════════════════════════════════════════ */
.exec-thumb-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
}

.exec-thumb-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(22, 16, 106, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeUp 0.4s ease both;
}

.exec-thumb-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(22, 16, 106, 0.14);
}

.exec-thumb-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #16a34a, #4ade80);
    z-index: 2;
}

.exec-thumb-menu {
    position: absolute;
    top: 10px;
    right: 8px;
    z-index: 4;
}

.exec-menu-btn {
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #555;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease;
    padding: 0;
}

.exec-menu-btn:hover {
    background: #fff;
    color: var(--primary);
}

.exec-thumb-img-wrap {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.exec-thumb-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.exec-thumb-card:hover .exec-thumb-img-wrap img {
    transform: scale(1.07);
}

.exec-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 8, 50, 0.88) 0%, rgba(10, 8, 50, 0.12) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 12px 10px;
    transition: background 0.3s ease;
}

.exec-thumb-card:hover .exec-thumb-overlay {
    background: linear-gradient(to top, rgba(22, 16, 106, 0.92) 0%, rgba(22, 16, 106, 0.22) 55%, transparent 100%);
}

.exec-thumb-info {
    width: 100%;
    transform: translateY(3px);
    transition: transform 0.3s ease;
}

.exec-thumb-card:hover .exec-thumb-info {
    transform: translateY(0);
}

.exec-thumb-name {
    font-size: clamp(0.75rem, 1.5vw + 0.2rem, 1rem);
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.exec-thumb-role {
    font-size: clamp(0.65rem, 1vw + 0.2rem, 0.85rem);
    font-weight: 600;
    color: #86efac;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 3px;
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════
   UTILITY FOR HOVER ROTATION
═══════════════════════════════════════════ */
.hover-rotate-icon i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-rotate-icon:hover i {
    transform: rotate(180deg);
}

.v2-avatar {
    width: 130px;
    height: 130px;
    border: 5px solid #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    object-fit: cover;
}

/* ═══════════════════════════════════════════
   FAQ ACCORDION STYLES
═══════════════════════════════════════════ */
.faq-delete-btn {
    width: 38px;
    height: 38px;
    transition: all 0.3s ease;
}

.faq-delete-btn:hover {
    background-color: var(--bs-danger);
    color: white !important;
    transform: scale(1.05);
}

.faq-glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.custom-glass-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
    color: var(--bs-primary);
    box-shadow: none;
}

.custom-glass-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(var(--bs-primary-rgb), 0.2);
}

/* ═══════════════════════════════════════════
   PERMISSIONS TOGGLE SWITCHES
═══════════════════════════════════════════ */
.perm-switch {
    margin-bottom: 0;
    display: flex;
    justify-content: center;
}

.perm-switch .form-check-input {
    width: 3.2rem;
    height: 1.6rem;
    cursor: pointer;
    border: none;
    background-color: #e2e8f0;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3cpath d='M-1.5 -1.5 L1.5 1.5 M1.5 -1.5 L-1.5 1.5' stroke='%23cbd5e1' stroke-width='0.8' stroke-linecap='round'/%3e%3c/svg%3e");
    transition: background-position .25s ease-in-out, background-color .25s ease-in-out;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.perm-switch .form-check-input:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3cpath d='M-1.5 -1.5 L1.5 1.5 M1.5 -1.5 L-1.5 1.5' stroke='%23cbd5e1' stroke-width='0.8' stroke-linecap='round'/%3e%3c/svg%3e");
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 0.25rem rgba(104, 188, 58, 0.25);
}

.perm-switch .form-check-input:checked {
    background-color: var(--success);
    border-color: var(--success);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3cpath d='M-1.2 0.2 L -0.2 1.2 L 1.5 -1' fill='none' stroke='%2368bc3a' stroke-width='0.8' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
}

.perm-group-header td {
    background-color: #f1f5f9 !important;
    font-weight: 600;
    color: #334155;
    padding: 0.75rem 1rem;
}

.perm-group-header.cursor-pointer {
    cursor: pointer;
}

.perm-group-header[aria-expanded="false"] .toggle-arrow {
    transform: translateY(-50%) rotate(180deg) !important;
}

.transition-all {
    transition: all 0.3s ease;
}

/* ═══════════════════════════════════════════
   ROLE PERMISSIONS MANAGER
═══════════════════════════════════════════ */
.role-perm-table th,
.role-perm-table td {
    border-right: 1px solid #e2e8f0;
    vertical-align: top;
    padding: 1.25rem 1rem;
}

.role-perm-table th:last-child,
.role-perm-table td:last-child {
    border-right: none;
}

.perm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 15px;
    row-gap: 12px;
}

.role-item-title {
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════════
   ROLES & PERMISSIONS MODULE
═══════════════════════════════════════════════ */

/* Filter label above dropdowns */
.perm-filter-label {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Master checkbox label offset */
.perm-master-lbl {
    margin-top: 5px;
}

/* Permission child checkbox label size */
.perm-child-lbl {
    font-size: 0.82rem;
}

/* Accordion arrow rotation animation */
.collapse-trigger {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.collapse-trigger.collapsed {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

/* ── Permissions Table Column Widths (desktop) ── */
.perm-th-check {
    width: 50px;
}

.perm-th-action {
    width: 110px;
}

.perm-desc {
    font-size: 0.8rem;
}

/* ═══════════════════════════════════════════════
   NEWS TICKER BAR
═══════════════════════════════════════════════ */
.news-ticker-bar {
    display: flex;
    align-items: center;
    width: 100%;
    height: 34px;
    background: linear-gradient(15deg, rgba(22, 16, 106, 1) 0%, rgba(188, 6, 16, 1) 70%, rgba(104, 188, 58, 1) 100%);
    overflow: hidden;
    position: relative;
    /* z-index: 1100; */
}

/* LIVE badge on the left */
.news-ticker-label {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 14px 0 12px;
    height: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    white-space: nowrap;
}

.news-ticker-label i {
    font-size: 0.78rem;
    animation: tickerPulse 1.2s ease-in-out infinite;
    color: #ff6b6b;
}

@keyframes tickerPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

/* Scrolling track */
.news-ticker-track-wrap {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.news-ticker-track {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: tickerScroll 38s linear infinite;
    will-change: transform;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.news-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0 24px;
    cursor: default;
}

.news-ticker-item i {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.news-ticker-item strong {
    color: #fff;
    font-weight: 700;
}

.news-ticker-item:hover {
    color: #fff;
}

/* Bullet separator between items */
.news-ticker-sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.5rem;
    padding: 0 4px;
    flex-shrink: 0;
}

/* Dismiss × button on the right */
.news-ticker-close {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    height: 100%;
    width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.news-ticker-close:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ═══════════════════════════════════════════════
   DASHBOARD — INDEX.PHP COMPONENT STYLES
═══════════════════════════════════════════════ */

/* ── Stat Card Trend Badges ── */
.badge-trend {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.trend-up {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.trend-down {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.trend-neutral {
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
}

.stat-sub {
    font-size: 0.68rem;
    color: #9ca3af;
    margin-top: 2px;
}

/* ── Extended Stat Icon Colors ── */
.stat-icon-purple {
    background: rgba(139, 92, 246, 0.12);
    color: #7c3aed;
}

.stat-icon-teal {
    background: rgba(20, 184, 166, 0.12);
    color: #0d9488;
}

.stat-icon-orange {
    background: rgba(249, 115, 22, 0.12);
    color: #ea580c;
}

.stat-icon-indigo {
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
}

/* ── KPI progress pct text helpers ── */
.kpi-blue {
    color: var(--sky-blue, #38bdf8);
}

.kpi-green {
    color: #22c55e;
}

/* ── pf-purple, pf-orange, pf-teal progress fills ── */
.pf-purple {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.pf-orange {
    background: linear-gradient(90deg, #ea580c, #fb923c);
}

.pf-teal {
    background: linear-gradient(90deg, #0d9488, #34d399);
}

/* ── Quick Action Buttons ── */
.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    border-radius: 14px;
    border: 1.5px solid rgba(22, 16, 106, 0.08);
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.22s ease;
    cursor: pointer;
}

.quick-action-btn i {
    font-size: 1.4rem;
    color: var(--primary);
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.quick-action-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 16, 106, 0.18);
}

.quick-action-btn:hover i {
    color: #fff;
    transform: scale(1.15);
    opacity: 1;
}

/* ── Activity Timeline ── */
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 14px;
    position: relative;
}

.activity-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 16px;
    bottom: 0;
    width: 1.5px;
    background: rgba(22, 16, 106, 0.08);
}

.activity-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    border: 2.5px solid #fff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

.dot-green {
    background: #22c55e;
}

.dot-blue {
    background: #3b82f6;
}

.dot-yellow {
    background: #f59e0b;
}

.dot-red {
    background: #ef4444;
}

.dot-purple {
    background: #8b5cf6;
}

.activity-body {
    flex: 1;
}

.activity-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
}

.activity-sub {
    font-size: 0.72rem;
    color: #6b7280;
    margin-top: 2px;
}

.activity-time {
    font-size: 0.65rem;
    color: #9ca3af;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ── Calendar Event Chip Variants ── */
.cal-event-primary {
    background: var(--primary-light, rgba(22, 16, 106, 0.06));
    border-left: 3px solid var(--primary);
}

.cal-event-yellow {
    background: rgba(253, 224, 71, 0.15);
    border-left: 3px solid #f59e0b;
}

.cal-event-teal {
    background: rgba(20, 184, 166, 0.1);
    border-left: 3px solid #14b8a6;
}

.cal-event-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--dark);
}

.cal-event-sub {
    font-size: 0.68rem;
    color: #6b7280;
    margin-top: 2px;
}

/* ── Calendar: 7-column grid (Mon–Sun) ── */
.cal-grid-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.cal-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

/* ── Upcoming Events ── */
.upcoming-event-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid rgba(22, 16, 106, 0.07);
    transition: all 0.2s ease;
}

.upcoming-event-card:hover {
    border-color: rgba(22, 16, 106, 0.18);
    box-shadow: 0 4px 14px rgba(22, 16, 106, 0.08);
    transform: translateY(-1px);
}

.upcoming-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    padding: 6px 4px;
    flex-shrink: 0;
}

.event-day {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
}

.event-month {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

.upcoming-event-body {
    flex: 1;
    min-width: 0;
}

.upcoming-event-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

.upcoming-event-sub {
    font-size: 0.68rem;
    color: #6b7280;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.event-badge-pill {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
}

.badge-primary-pill {
    background: rgba(22, 16, 106, 0.1);
    color: var(--primary);
}

.badge-success-pill {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.badge-warning-pill {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.badge-info-pill {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.badge-danger-pill {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

/* ═══════════════════════════════════════════════
   DASHBOARD HERO BANNER
═══════════════════════════════════════════════ */
.db-hero-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(120deg, var(--primary) 0%, #2d1d8f 55%, #3b1fd4 100%);
    border-radius: var(--radius-card);
    padding: 20px 24px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.db-hero-banner::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    top: -60px;
    right: -60px;
    pointer-events: none;
}

.db-hero-banner::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    bottom: -40px;
    left: 160px;
    pointer-events: none;
}

.db-hero-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.db-hero-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.db-hero-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    object-fit: cover;
}

.db-hero-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #fff;
}

.db-hero-greeting {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.db-hero-sub {
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 3px;
    font-weight: 500;
}

.db-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.65);
}

.db-hero-dot {
    color: rgba(255, 255, 255, 0.3);
}

.db-hero-meta i {
    font-size: 0.75rem;
}

.text-success-soft {
    color: #86efac;
}

.db-hero-right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.db-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.22s ease;
    white-space: nowrap;
}

.db-hero-btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    background: transparent;
}

.db-hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.db-hero-btn-solid {
    background: #fff;
    color: var(--primary);
    border: 1.5px solid #fff;
}

.db-hero-btn-solid:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ═══════════════════════════════════════════════
   GRADIENT HERO STAT CARDS
═══════════════════════════════════════════════ */
.db-stat-hero {
    border-radius: 16px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.db-stat-hero::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -30px;
    right: -30px;
}

.db-stat-blue {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

.db-stat-green {
    background: linear-gradient(135deg, #14532d 0%, #16a34a 100%);
}

.db-stat-amber {
    background: linear-gradient(135deg, #78350f 0%, #d97706 100%);
}

.db-stat-red {
    background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 100%);
}

.db-stat-hero-icon {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.db-stat-hero-num {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.5px;
}

.db-stat-hero-lbl {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    margin-top: 4px;
}

.db-stat-hero-footer {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ═══════════════════════════════════════════════
   CARD HEADER COMPONENTS
═══════════════════════════════════════════════ */
.db-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(22, 16, 106, 0.07);
    gap: 8px;
    flex-wrap: wrap;
}

.db-card-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.db-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
}

.db-card-sub {
    font-size: 0.65rem;
    color: #9ca3af;
    margin-top: 1px;
}

.db-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-top: 1px solid rgba(22, 16, 106, 0.06);
    flex-wrap: wrap;
    gap: 4px;
}

.db-card-header-sm {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.db-card-title-sm {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ═══════════════════════════════════════════════
   SEARCH INPUT
═══════════════════════════════════════════════ */
.db-search-input {
    font-size: 0.76rem;
    padding: 6px 12px;
    border: 1.5px solid rgba(22, 16, 106, 0.12);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.7);
    outline: none;
    color: var(--dark);
    transition: border-color 0.2s;
    width: 140px;
}

.db-search-input:focus {
    border-color: var(--primary);
    width: 180px;
}

/* ═══════════════════════════════════════════════
   WEEKLY BAR CHART
═══════════════════════════════════════════════ */
.db-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
    padding: 0 0 0 0;
}

.db-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 4px;
}

.db-bar-inner {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
}

.db-bar-fill {
    width: 100%;
    border-radius: 6px 6px 0 0;
    height: 0;
    transition: height 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.db-bar-xlow {
    background: rgba(22, 16, 106, 0.12);
}

.db-bar-low {
    background: rgba(22, 16, 106, 0.22);
}

.db-bar-med {
    background: rgba(22, 16, 106, 0.45);
}

.db-bar-high {
    background: var(--primary);
}

.db-bar-accent {
    background: linear-gradient(180deg, #f59e0b, #d97706);
}

.db-bar-lbl {
    font-size: 0.6rem;
    color: #9ca3af;
    font-weight: 600;
    text-align: center;
}

.db-bar-val {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
}

.db-bar-active .db-bar-lbl {
    color: var(--primary);
    font-weight: 800;
}

/* ═══════════════════════════════════════════════
   MINI STAT CHIPS
═══════════════════════════════════════════════ */
.db-mini-chip {
    background: var(--primary-light);
    border-radius: 10px;
    padding: 8px 10px;
    text-align: center;
}

.db-mini-val {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.db-mini-lbl {
    display: block;
    font-size: 0.6rem;
    color: #6b7280;
    margin-top: 3px;
}

/* ═══════════════════════════════════════════════
   NOTICE / ANNOUNCEMENT CARDS
═══════════════════════════════════════════════ */
.db-notice-card {
    border-radius: 12px;
    padding: 10px 12px;
    border-left: 3px solid transparent;
    position: relative;
}

.db-notice-urgent {
    background: rgba(239, 68, 68, 0.06);
    border-color: #ef4444;
}

.db-notice-info {
    background: rgba(59, 130, 246, 0.06);
    border-color: #3b82f6;
}

.db-notice-success {
    background: rgba(34, 197, 94, 0.06);
    border-color: #22c55e;
}

.db-notice-default {
    background: rgba(22, 16, 106, 0.04);
    border-color: var(--primary);
}

.db-notice-badge {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 20px;
    margin-bottom: 4px;
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.db-notice-badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

.db-notice-badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.db-notice-badge-default {
    background: rgba(22, 16, 106, 0.1);
    color: var(--primary);
}

.db-notice-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3px;
}

.db-notice-body {
    font-size: 0.68rem;
    color: #6b7280;
    line-height: 1.45;
}

.db-notice-meta {
    font-size: 0.62rem;
    color: #9ca3af;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ═══════════════════════════════════════════════
   TOP MEMBER ROWS
═══════════════════════════════════════════════ */
.db-member-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(22, 16, 106, 0.05);
    transition: background 0.18s;
}

.db-member-row:last-child {
    border-bottom: none;
}

.db-mem-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(22, 16, 106, 0.1);
    flex-shrink: 0;
}

.db-mem-info {
    flex: 1;
    min-width: 0;
}

.db-mem-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-mem-meta {
    font-size: 0.65rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════
   GRIEVANCE TRACKER
═══════════════════════════════════════════════ */
.db-griev-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.db-griev-box {
    border-radius: 10px;
    padding: 10px 4px;
    text-align: center;
}

.db-griev-open {
    background: rgba(239, 68, 68, 0.08);
}

.db-griev-progress {
    background: rgba(245, 158, 11, 0.08);
}

.db-griev-resolved {
    background: rgba(34, 197, 94, 0.08);
}

.db-griev-closed {
    background: rgba(99, 102, 241, 0.08);
}

.db-griev-num {
    font-size: 1.2rem;
    font-weight: 900;
}

.db-griev-open .db-griev-num {
    color: #dc2626;
}

.db-griev-progress .db-griev-num {
    color: #d97706;
}

.db-griev-resolved .db-griev-num {
    color: #16a34a;
}

.db-griev-closed .db-griev-num {
    color: #4f46e5;
}

.db-griev-lbl {
    font-size: 0.58rem;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

.db-griev-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(22, 16, 106, 0.05);
}

.db-griev-item:last-child {
    border-bottom: none;
}

.db-griev-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.griev-dot-red {
    background: #ef4444;
}

.griev-dot-yellow {
    background: #f59e0b;
}

.griev-dot-green {
    background: #22c55e;
}

.db-griev-title {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--dark);
}

.db-griev-meta {
    font-size: 0.62rem;
    color: #9ca3af;
}

.dot-teal {
    background: #14b8a6;
}

/* ═══════════════════════════════════════════════
   FINANCE / FEE CARDS
═══════════════════════════════════════════════ */
.db-fin-card {
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.db-fin-collected {
    background: rgba(34, 197, 94, 0.08);
}

.db-fin-pending {
    background: rgba(239, 68, 68, 0.08);
}

.db-fin-icon {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.db-fin-collected .db-fin-icon {
    color: #16a34a;
}

.db-fin-pending .db-fin-icon {
    color: #dc2626;
}

.db-fin-num {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
}

.db-fin-lbl {
    font-size: 0.62rem;
    color: #9ca3af;
    margin-top: 2px;
}

.db-txn-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(22, 16, 106, 0.05);
}

.db-txn-row:last-child {
    border-bottom: none;
}

.db-txn-name {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--dark);
}

.db-txn-meta {
    font-size: 0.62rem;
    color: #9ca3af;
}

.db-txn-amt {
    font-size: 0.78rem;
    font-weight: 700;
}

/* text purple/orange helpers */
.text-purple-coa {
    color: #7c3aed;
}

.text-orange-coa {
    color: #ea580c;
}



/* Dashboard Native CSS Grid */
.db-grid-view {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

.db-grid-item {
    width: 100%;
    /* Auto height by default based on content */
}

/* Calendar wrapper class to replace inline style */
.cal-day-wrap {
    padding: 2px;
    text-align: center;
    /* Standardized Dashboard Cards */
}

.db-card-standard {
    height: 420px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.db-card-header {
    flex-shrink: 0;
}

.db-card-body-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(22, 16, 106, 0.2) transparent;
}

/* Custom Scrollbar for Card Body */
.db-card-body-scroll::-webkit-scrollbar {
    width: 6px;
}

.db-card-body-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.db-card-body-scroll::-webkit-scrollbar-thumb {
    background: rgba(22, 16, 106, 0.1);
    border-radius: 10px;
}

.db-card-body-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(22, 16, 106, 0.2);
}

/* Utility Font Sizes (Removing Inline Styles) */
.fs-xtra-tiny-8 {
    font-size: 0.65rem !important;
}

.fs-tiny-9 {
    font-size: 0.72rem !important;
}

.fs-sm-75 {
    font-size: 0.75rem !important;
}

.fs-sm-8 {
    font-size: 0.8rem !important;
}

.fs-sm-82 {
    font-size: 0.82rem !important;
}

.fs-sm-85 {
    font-size: 0.85rem !important;
}

.fs-sm-9 {
    font-size: 0.9rem !important;
}

.fs-lg-18 {
    font-size: 1.8rem !important;
}

/* Ring Timer Styles (Removing Inline Styles) */
.ring-timer-header {
    font-size: 0.9rem;
}

.ring-timer-icon-small {
    font-size: 0.8rem;
}

.ring-timer-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
}

.ring-timer-svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.05));
    display: block;
    margin: 0 auto;
}

.ring-timer-track {
    stroke: #eee;
    stroke-width: 4;
    stroke-dasharray: 4 6;
    opacity: 0.5;
}

.ring-timer-progress {
    stroke: #fed85c;
    stroke-width: 10;
    stroke-dasharray: 345.5;
    stroke-dashoffset: 140;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

/* Progress Stat Text */
.prog-stat-value {
    font-size: 1.8rem;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
}

/* Bar Chart Utility Fills */
.bar-h-35 {
    height: 35%;
}

.bar-h-65 {
    height: 65%;
}

.bar-h-50 {
    height: 50%;
}

.bar-h-40 {
    height: 40%;
}

.bar-h-80 {
    height: 80%;
}

/* Calendar Buttons Standard */
.btn-cal-nav {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none !important;
    background: rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.btn-cal-nav:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* ═══════════════════════════════════════════════
   ACTIVITY LOG ROWS (compact log-line style)
═══════════════════════════════════════════════ */
.activity-log-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 16px 10px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease;
    cursor: default;
}

.activity-log-row:last-child {
    border-bottom: none;
}

.activity-log-row:hover {
    background: rgba(22, 16, 106, 0.03);
}

.activity-log-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.activity-log-time {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 128px;
    gap: 1px;
}

.activity-log-date {
    font-size: 0.72rem;
    font-weight: 700;
    color: #444;
    letter-spacing: 0.02em;
}

.activity-log-ts {
    font-size: 0.68rem;
    font-family: 'Courier New', monospace;
    color: #999;
    font-weight: 600;
}

.activity-log-body {
    flex: 1;
    font-size: 0.78rem;
    color: #555;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
}

.activity-log-user {
    font-weight: 700;
    color: #222;
    white-space: nowrap;
}

.activity-log-sep {
    color: #bbb;
    font-weight: 400;
}

.activity-log-msg {
    color: #666;
}

/* ═══════════════════════════════════════════════
   ACTIVITY LOG — TERMINAL / SYSTEM-LOG STYLE
═══════════════════════════════════════════════ */
.activity-log-terminal {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.775rem;
    line-height: 1.6;
    background: #fff;
}

.alt-log-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 2px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.045);
    transition: background 0.15s ease;
}

.alt-log-row:last-child {
    border-bottom: none;
}

.alt-log-row:hover {
    background: rgba(22, 16, 106, 0.04) !important;
}

.alt-log-row--shade {
    background: #f9f9fc;
}

.alt-log-ts {
    flex-shrink: 0;
    color: #888;
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    font-weight: 600;
}

.alt-log-text {
    color: #444;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    flex: 1;
    line-height: 1.55;
}

.alt-log-user {
    font-weight: 700;
    color: #1a1a2e;
}

.alt-log-role {
    font-weight: 400;
    color: #888;
    margin-left: 3px;
}

.list-group-item.active {
    color: var(--white) !important;
}

.v2-avatar-status {
    width: 25px;
    height: 25px;
    margin-bottom: 10px;
    margin-right: 10px;
}

/* ═══════════════════════════════════════════════
   CMS & MEETING MANAGEMENT SYSTEM
═══════════════════════════════════════════════ */
.ls-tight {
    letter-spacing: -0.02em;
}

.hover-elevate {
    transition: all 0.3s ease;
}

.hover-elevate:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.stat-card {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px);
}

.article-thumb img {
    transition: transform 0.5s ease;
}

tr:hover .article-thumb img {
    transform: scale(1.1);
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.pulse-indicator::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    animation: pulse-ring 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.article-dropzone:hover {
    border-color: var(--primary) !important;
    background: var(--primary-light) !important;
}

/* Modal Enhancements */
.radius-24 {
    border-radius: 24px !important;
}

.radius-12 {
    border-radius: 12px !important;
}

.modal-confirm-delete .modal-content {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.icon-box-danger {
    width: 70px;
    height: 70px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.btn-gradient-danger {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
    transition: all 0.3s ease !important;
}

.btn-gradient-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(239, 68, 68, 0.3) !important;
    filter: brightness(1.1);
}

.modal-header-danger {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}

.modal-header-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #2e27b5 100%);
}

.modal-header-dark {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Sizing Utilities for CMS */
.thumb-article {
    width: 50px;
    height: 40px;
}

.text-limit-sm {
    max-width: 280px;
}

.dot-status {
    width: 8px;
    height: 8px;
}

.modal-avatar {
    width: 50px;
    height: 50px;
}

.icon-box-success {
    width: 70px;
    height: 70px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.icon-box-warning {
    width: 70px;
    height: 70px;
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.btn-gradient-success {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%) !important;
    transition: all 0.3s ease !important;
}

.btn-gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    transition: all 0.3s ease !important;
}

/* ═══════════════════════════════════════════════
   PROFESSIONAL UI UTILITIES
═══════════════════════════════════════════════ */
.avatar-lg-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-sm-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.radius-20 {
    border-radius: 20px !important;
}

.radius-16 {
    border-radius: 16px !important;
}

.radius-8 {
    border-radius: 8px !important;
}

.file-drop-area {
    border: 2px dashed rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.file-drop-area:hover {
    border-color: var(--primary);
    background: rgba(22, 16, 106, 0.05) !important;
}

.no-caret::after {
    display: none !important;
}

.radius-10 {
    border-radius: 10px !important;
}

.fs-xtra-tiny {
    font-size: 0.65rem !important;
}

.ls-tight {
    letter-spacing: -0.02em;
}

/* Timeline V2 */
.timeline-v2 {
    margin-top: 5px;
}

.timeline-item-v2 {
    border-color: rgba(0, 0, 0, 0.05) !important;
}

.timeline-item-v2:last-child {
    border-left: none !important;
}

.timeline-dot {
    z-index: 1;
}

.list-group-flush>.list-group-item {
    border-color: #eee !important;
}

.animate-number,
.counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* ═══════════════════════════════════════════
   DISTRICT VIEW RESPONSIVE GRIDS
═══════════════════════════════════════════ */
/* MEMBER THUMBNAIL GRID */
.mem-thumb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.mem-thumb-card {
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mem-thumb-img-wrap {
    flex-grow: 1;
    height: 100%;
    width: 100%;
    position: relative;
}

.mem-thumb-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}











/* EXECUTIVE THUMBNAIL GRID */
.exec-thumb-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.exec-thumb-card {
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gov-grid-section .exec-thumb-card {
    aspect-ratio: 1 / 1;
}

.gov-grid-section .exec-thumb-card {
    .exec-thumb-top-bar {
        background: linear-gradient(90deg, #ffc107, #d4c69b);
    }

    .exec-thumb-name {
        font-size: clamp(1.2rem, 3vw + 0.5rem, 1.35rem);
    }

    .exec-thumb-role {
        font-size: clamp(0.9rem, 2vw + 0.3rem, 1.05rem);
        color: var(--yellow);
    }

    .exec-thumb-role:last-child {
        font-size: clamp(0.7rem, 1.5vw + 0.1rem, 0.685rem);
        color: var(--grey);
    }
}

.exec-thumb-img-wrap {
    flex-grow: 1;
    height: 100%;
    width: 100%;
    position: relative;
}

.exec-thumb-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}