/* ===================================================
   KOKUKTI — Elegant Animated Design System v2.0
   Palette: Deep Indigo · Violet · Soft White
   Strategy: CSS-only animations, GPU-accelerated,
             no layout repaints = buttery smooth
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* ── CSS Custom Properties ──────────────────────── */
:root {
    --primary:        #4361ee;
    --primary-dark:   #3451d1;
    --primary-light:  #5b74f5;
    --primary-pale:   #eef2ff;
    --accent-teal:    #06b6d4;
    --accent-purple:  #7c3aed;
    --accent-green:   #10b981;
    --accent-amber:   #f59e0b;
    --accent-red:     #ef4444;

    --bg:             #f1f5ff;
    --bg-card:        #ffffff;

    --text-dark:      #0f172a;
    --text-medium:    #475569;
    --text-light:     #94a3b8;

    --sidebar-width:  252px;
    --topbar-h:       64px;
    --radius-xs:      6px;
    --radius-sm:      10px;
    --radius:         14px;
    --radius-lg:      20px;
    --radius-xl:      28px;

    --shadow-xs:  0 1px 4px rgba(67,97,238,0.06);
    --shadow-sm:  0 2px 10px rgba(67,97,238,0.09);
    --shadow-md:  0 6px 28px rgba(67,97,238,0.13);
    --shadow-lg:  0 16px 52px rgba(67,97,238,0.17);
    --shadow-xl:  0 32px 80px rgba(67,97,238,0.22);

    --sidebar-bg-1: #1a2980;
    --sidebar-bg-2: #26265e;

    --anim-fast:   0.18s;
    --anim-mid:    0.28s;
    --anim-slow:   0.45s;
    --ease-spring: cubic-bezier(.22,.68,0,1.2);
    --ease-out:    cubic-bezier(0,0,.2,1);
    --ease-in-out: cubic-bezier(.4,0,.2,1);
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    margin: 0;
    overflow-x: hidden;
    /* Subtle animated dot grid */
    background-image:
        radial-gradient(circle at 1px 1px, rgba(67,97,238,0.06) 1px, transparent 0);
    background-size: 32px 32px;
}

/* ══════════════════════════════════════════════════
   PAGE ENTRY ANIMATION
══════════════════════════════════════════════════ */
@keyframes pageIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}
.page-content {
    padding: 28px;
    flex: 1;
    animation: pageIn var(--anim-slow) var(--ease-out);
}

/* ══════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════ */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    flex-shrink: 0;
    background: linear-gradient(160deg, #1a2980 0%, #1e3a8a 40%, #26265e 100%);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
    /* Frosted glass highlight line */
    border-right: 1px solid rgba(255,255,255,0.08);
    box-shadow: 6px 0 32px rgba(26,41,128,0.30);
    animation: sidebarIn var(--anim-slow) var(--ease-out) both;
}
@keyframes sidebarIn {
    from { transform: translateX(-20px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}
.sidebar::-webkit-scrollbar { display: none; }

/* Animated gradient shimmer overlay */
.sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.04) 0%,
        transparent 50%,
        rgba(255,255,255,0.02) 100%
    );
    pointer-events: none;
}

/* ── Brand ─────────────────────────────────────── */
.sidebar .brand {
    padding: 26px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 8px;
}
.sidebar .brand .brand-icon {
    width: 46px; height: 46px;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #fff;
    margin: 0 auto 12px;
    box-shadow: 0 6px 20px rgba(96,165,250,0.45);
    animation: brandIconPop 0.7s var(--ease-spring) 0.2s both;
    position: relative;
}
@keyframes brandIconPop {
    from { transform: scale(0.6) rotate(-10deg); opacity: 0; }
    to   { transform: scale(1) rotate(0); opacity: 1; }
}
/* Orbiting dot on brand icon */
.sidebar .brand .brand-icon::after {
    content: '';
    position: absolute;
    width: 8px; height: 8px;
    background: #34d399;
    border-radius: 50%;
    bottom: -2px; right: -2px;
    border: 2px solid #1e3a8a;
    animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
    0%,100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.4); opacity: 0.6; }
}

.sidebar .brand .brand-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    text-align: center;
    background: linear-gradient(90deg, #c7d2fe, #e0e7ff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    animation: shimmerText 4s linear infinite;
    display: block;
    letter-spacing: 0.5px;
}
@keyframes shimmerText {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
.sidebar .brand .brand-sub {
    display: block;
    text-align: center;
    font-size: 0.65rem;
    color: rgba(165,180,252,0.50);
    font-weight: 500;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* ── Nav Label ─────────────────────────────────── */
.sidebar .nav-label {
    padding: 16px 20px 5px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(148,163,184,0.40);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar .nav-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.06);
}

/* ── Nav Links ─────────────────────────────────── */
.sidebar a {
    color: rgba(199,210,255,0.72);
    text-decoration: none;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius-sm);
    margin: 2px 10px;
    font-size: 0.855rem;
    font-weight: 500;
    transition: color var(--anim-fast) var(--ease-out),
                background var(--anim-fast) var(--ease-out),
                transform var(--anim-fast) var(--ease-out);
    position: relative;
    overflow: hidden;
}
/* Ripple on hover */
.sidebar a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background var(--anim-fast);
    border-radius: inherit;
}
.sidebar a .nav-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    font-size: 0.83rem;
    flex-shrink: 0;
    transition: background var(--anim-mid) var(--ease-out),
                transform var(--anim-mid) var(--ease-spring),
                box-shadow var(--anim-mid);
}
.sidebar a:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
    transform: translateX(3px);
}
.sidebar a:hover .nav-icon {
    background: rgba(255,255,255,0.12);
    transform: scale(1.1);
}
.sidebar a.active {
    color: #fff;
    background: rgba(99,125,255,0.20);
    font-weight: 600;
}
.sidebar a.active .nav-icon {
    background: linear-gradient(135deg, #4361ee, #7c3aed);
    box-shadow: 0 4px 14px rgba(67,97,238,0.45);
    color: #fff;
    transform: scale(1.05);
}
/* Active left accent bar */
.sidebar a.active::after {
    content: '';
    position: absolute;
    left: -10px; top: 20%; bottom: 20%;
    width: 3px;
    background: linear-gradient(180deg, #60a5fa, #a78bfa);
    border-radius: 0 3px 3px 0;
    animation: accentBarIn 0.3s var(--ease-spring) both;
}
@keyframes accentBarIn {
    from { transform: scaleY(0); opacity: 0; }
    to   { transform: scaleY(1); opacity: 1; }
}

/* ── Sidebar Bottom ────────────────────────────── */
.sidebar .sidebar-bottom {
    margin-top: auto;
    padding: 10px 10px 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.sidebar a.link-danger {
    color: #fca5a5 !important;
}
.sidebar a.link-danger:hover {
    background: rgba(239,68,68,0.14) !important;
    color: #fca5a5 !important;
}
.sidebar a.link-danger .nav-icon { color: #fca5a5; }

/* ══════════════════════════════════════════════════
   TOPBAR
══════════════════════════════════════════════════ */
.topbar {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    padding: 0 28px;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(67,97,238,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(67,97,238,0.07);
    animation: topbarIn 0.5s var(--ease-out) both;
}
@keyframes topbarIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.topbar-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.topbar-user {
    display: flex; align-items: center; gap: 10px;
}
.topbar-avatar {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(67,97,238,0.30);
    transition: transform var(--anim-mid) var(--ease-spring),
                box-shadow var(--anim-mid);
}
.topbar-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(67,97,238,0.40);
}
.topbar-username {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}
.topbar-role {
    font-size: 0.72rem;
    color: var(--text-light);
}
/* Topbar dropdown */
.topbar .dropdown-menu {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    animation: dropIn 0.22s var(--ease-spring) both;
    overflow: hidden;
}
@keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ══════════════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════════════ */
.main-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
}

/* ══════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════ */
.card {
    border: 1px solid rgba(67,97,238,0.06);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    background: var(--bg-card);
    transition: box-shadow var(--anim-mid) var(--ease-out),
                transform var(--anim-mid) var(--ease-out),
                border-color var(--anim-mid);
    animation: cardSlideUp 0.4s var(--ease-out) both;
    position: relative;
    overflow: hidden;
}
@keyframes cardSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* Stagger cards */
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.10s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.20s; }
.card:nth-child(5) { animation-delay: 0.25s; }

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: rgba(67,97,238,0.13);
}
/* Subtle top accent line */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent-purple), var(--accent-teal));
    opacity: 0;
    transition: opacity var(--anim-mid);
    border-radius: var(--radius) var(--radius) 0 0;
}
.card:hover::before { opacity: 1; }

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(67,97,238,0.07);
    font-weight: 700;
    padding: 16px 22px;
    font-size: 0.9rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.card-header i { color: var(--primary-light); }
.card-body { padding: 22px; }

/* ══════════════════════════════════════════════════
   STAT CARDS  (animated number + icon)
══════════════════════════════════════════════════ */
.stat-card {
    border: 1px solid rgba(67,97,238,0.06) !important;
    border-radius: var(--radius) !important;
    overflow: hidden;
    position: relative;
    transition: transform var(--anim-mid) var(--ease-spring),
                box-shadow var(--anim-mid);
}
.stat-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-lg) !important;
}
.stat-card .stat-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    transition: transform var(--anim-mid) var(--ease-spring);
}
.stat-card:hover .stat-icon { transform: scale(1.12) rotate(-5deg); }

.stat-card .stat-label {
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--text-light);
    margin-bottom: 4px;
}
.stat-card .stat-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.95rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-dark);
    transition: color var(--anim-mid);
}
.stat-card:hover .stat-value { color: var(--primary); }

.stat-card .stat-bg-icon {
    position: absolute;
    right: -14px; bottom: -14px;
    font-size: 6.5rem;
    opacity: 0.04;
    color: #000;
    transition: opacity var(--anim-mid), transform var(--anim-mid);
}
.stat-card:hover .stat-bg-icon { opacity: 0.07; transform: scale(1.05) rotate(-5deg); }

/* Color variants */
.stat-blue   { border-top: 3px solid var(--primary) !important; background: linear-gradient(135deg, #fff 60%, #eef2ff 100%); }
.stat-teal   { border-top: 3px solid var(--accent-teal) !important; background: linear-gradient(135deg, #fff 60%, #ecfeff 100%); }
.stat-purple { border-top: 3px solid var(--accent-purple) !important; background: linear-gradient(135deg, #fff 60%, #f5f3ff 100%); }
.stat-green  { border-top: 3px solid var(--accent-green) !important; background: linear-gradient(135deg, #fff 60%, #ecfdf5 100%); }
.stat-amber  { border-top: 3px solid var(--accent-amber) !important; background: linear-gradient(135deg, #fff 60%, #fffbeb 100%); }
.stat-red    { border-top: 3px solid var(--accent-red) !important; background: linear-gradient(135deg, #fff 60%, #fef2f2 100%); }

.icon-blue   { background: #dbeafe; color: var(--primary); }
.icon-teal   { background: #cffafe; color: var(--accent-teal); }
.icon-purple { background: #ede9fe; color: var(--accent-purple); }
.icon-green  { background: #d1fae5; color: var(--accent-green); }
.icon-amber  { background: #fef3c7; color: var(--accent-amber); }
.icon-red    { background: #fee2e2; color: var(--accent-red); }

/* ══════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════ */
.btn {
    font-weight: 600;
    border-radius: var(--radius-sm);
    font-size: 0.845rem;
    transition: transform var(--anim-fast) var(--ease-spring),
                box-shadow var(--anim-fast),
                background var(--anim-fast),
                opacity var(--anim-fast);
    position: relative;
    overflow: hidden;
}
/* Ripple effect on button click */
.btn::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.30);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    pointer-events: none;
}
.btn:active::after {
    width: 200px; height: 200px;
    opacity: 1;
    transition: 0s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(67,97,238,0.28);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(67,97,238,0.38);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
}
.btn-primary:active { transform: translateY(0); }

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    box-shadow: 0 4px 14px rgba(16,185,129,0.25);
}
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(16,185,129,0.35);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    color: #fff;
    box-shadow: 0 4px 14px rgba(245,158,11,0.25);
}
.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(245,158,11,0.35);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    box-shadow: 0 4px 14px rgba(239,68,68,0.22);
}
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(239,68,68,0.32);
}

.btn-sm { border-radius: var(--radius-xs); font-size: 0.80rem; }
.btn-outline-success, .btn-outline-secondary, .btn-outline-danger {
    transition: all var(--anim-fast) var(--ease-out);
}
.btn-outline-success:hover { transform: translateY(-1px); }
.btn-outline-secondary:hover { transform: translateY(-1px); }

/* ══════════════════════════════════════════════════
   TABLE
══════════════════════════════════════════════════ */
.table-responsive {
    border-radius: var(--radius-sm);
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 0.5rem;
}
.table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}
.table thead th {
    background: linear-gradient(90deg, var(--primary) 0%, #5b74f5 50%, var(--accent-purple) 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    border: none;
    padding: 13px 16px;
    white-space: nowrap;
}
.table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.table thead th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }

.table tbody tr {
    transition: background var(--anim-fast), transform var(--anim-fast);
}
.table tbody tr:hover td {
    background: #eef2ff;
}
.table tbody tr:hover {
    transform: scale(1.002);
    box-shadow: 0 2px 12px rgba(67,97,238,0.08);
}
.table td {
    vertical-align: middle;
    padding: 11px 16px;
    font-size: 0.88rem;
    border-top: 1px solid rgba(67,97,238,0.05);
}
/* Alternating rows */
.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(67,97,238,0.018);
}

/* ══════════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════════ */
.badge {
    border-radius: var(--radius-xs);
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: transform var(--anim-fast), filter var(--anim-fast);
}
.badge:hover {
    transform: scale(1.05);
    filter: brightness(1.08);
}

/* ══════════════════════════════════════════════════
   ALERTS
══════════════════════════════════════════════════ */
.alert {
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    animation: alertSlideIn 0.35s var(--ease-spring) both;
    position: relative;
    overflow: hidden;
}
.alert::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.alert-success::before { background: var(--accent-green); }
.alert-warning::before { background: var(--accent-amber); }
.alert-danger::before  { background: var(--accent-red); }
.alert-info::before    { background: var(--accent-teal); }
@keyframes alertSlideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ══════════════════════════════════════════════════
   FORM CONTROLS
══════════════════════════════════════════════════ */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid #e2e8f0;
    font-size: 0.875rem;
    background-color: #fafbff;
    transition: border var(--anim-mid), box-shadow var(--anim-mid),
                background var(--anim-mid);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(67,97,238,0.12);
    background-color: #fff;
}
.form-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 5px;
}

/* ══════════════════════════════════════════════════
   MODALS & BACKDROP
══════════════════════════════════════════════════ */
.modal-backdrop {
    z-index: 1040 !important;
}
.modal {
    z-index: 1050 !important;
}
.modal-dialog {
    z-index: 1055 !important;
    position: relative;
    pointer-events: auto !important;
}
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35) !important;
    background-color: #ffffff !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 1060 !important;
}
.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(67,97,238,0.08);
}
.modal-body { 
    padding: 24px; 
    pointer-events: auto !important;
    background-color: #ffffff !important;
}
.modal-body input,
.modal-body select,
.modal-body textarea {
    pointer-events: auto !important;
    position: relative;
    z-index: 1070 !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    background-color: #ffffff !important;
}
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(67,97,238,0.06);
    background: #f8faff !important;
}
.modal-backdrop.show { backdrop-filter: blur(3px); }

/* ══════════════════════════════════════════════════
   PROGRESS BARS
══════════════════════════════════════════════════ */
.progress {
    border-radius: 50px;
    background: #e8ecf8;
    overflow: hidden;
}
.progress-bar {
    border-radius: 50px;
    background: linear-gradient(90deg, var(--primary), var(--accent-purple));
    animation: progressFill 1s var(--ease-out) both;
    position: relative;
    overflow: hidden;
}
.progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
    animation: progressShimmer 2s linear infinite;
}
@keyframes progressShimmer {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
}
@keyframes progressFill {
    from { transform: scaleX(0); transform-origin: left; }
    to   { transform: scaleX(1); }
}

/* ══════════════════════════════════════════════════
   FORM CHECK (Checkboxes)
══════════════════════════════════════════════════ */
.form-check-input {
    cursor: pointer;
    transition: transform var(--anim-fast) var(--ease-spring);
}
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
    animation: checkPop 0.25s var(--ease-spring);
}
@keyframes checkPop {
    0%   { transform: scale(0.8); }
    60%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ══════════════════════════════════════════════════
   SKELETON LOADING PULSE (for any .loading class)
══════════════════════════════════════════════════ */
@keyframes skeleton {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, #e8ecf8 25%, #f0f4ff 50%, #e8ecf8 75%);
    background-size: 200% 100%;
    animation: skeleton 1.4s ease-in-out infinite;
    border-radius: var(--radius-xs);
}

/* ══════════════════════════════════════════════════
   TOAST / NOTIFICATION BELL BADGE
══════════════════════════════════════════════════ */
.chat-menu-badge {
    animation: badgePop 0.35s var(--ease-spring) both;
}
@keyframes badgePop {
    from { transform: translate(-50%, -50%) scale(0); }
    to   { transform: translate(-50%, -50%) scale(1); }
}

/* ══════════════════════════════════════════════════
   DATATABLES OVERRIDES
══════════════════════════════════════════════════ */
div.dataTables_wrapper div.dataTables_filter input {
    border-radius: var(--radius-sm);
    border: 1.5px solid #e2e8f0;
    padding: 6px 12px;
    font-size: 0.84rem;
    transition: border var(--anim-mid), box-shadow var(--anim-mid);
}
div.dataTables_wrapper div.dataTables_filter input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(67,97,238,0.10);
    outline: none;
}
div.dataTables_wrapper div.dataTables_length select {
    border-radius: var(--radius-sm);
    border: 1.5px solid #e2e8f0;
    padding: 5px 10px;
    font-size: 0.84rem;
}
.dataTables_paginate .paginate_button {
    border-radius: var(--radius-xs) !important;
    transition: all var(--anim-fast) !important;
    font-size: 0.82rem !important;
}
.dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(67,97,238,0.30) !important;
}
.dataTables_paginate .paginate_button:hover:not(.current) {
    background: #eef2ff !important;
    border: 1px solid #c7d2fe !important;
    color: var(--primary) !important;
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════
   SWEETALERT2 OVERRIDES
══════════════════════════════════════════════════ */
.swal2-popup {
    border-radius: var(--radius-lg) !important;
    font-family: 'Inter', sans-serif !important;
    box-shadow: var(--shadow-xl) !important;
}
.swal2-confirm { border-radius: var(--radius-sm) !important; }
.swal2-cancel  { border-radius: var(--radius-sm) !important; }

/* ══════════════════════════════════════════════════
   SCROLL REVEAL — elements with .reveal class
══════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════════════════
   UTILITY ANIMATIONS
══════════════════════════════════════════════════ */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideRight {
    from { opacity: 0; transform: translateX(-15px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

.anim-fadein    { animation: fadeIn var(--anim-mid) var(--ease-out) both; }
.anim-slideup   { animation: slideUp var(--anim-slow) var(--ease-out) both; }
.anim-slideright{ animation: slideRight var(--anim-slow) var(--ease-out) both; }
.anim-scalein   { animation: scaleIn var(--anim-mid) var(--ease-spring) both; }
.anim-float     { animation: floatY 3s ease-in-out infinite; }

/* Delay utilities */
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
.delay-5 { animation-delay: 0.40s; }


/* ══════════════════════════════════════════════════
   LOGIN PAGE  (Vibrant Glassmorphism)
══════════════════════════════════════════════════ */
body.login-page {
    background: #dde4ff;
    overflow: hidden;
    height: 100vh;
}

/* Animated mesh gradient BG */
.login-bg {
    position: fixed; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse at 12% 58%, rgba(67,97,238,0.35) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 12%, rgba(124,58,237,0.28) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 95%, rgba(6,182,212,0.22) 0%, transparent 50%),
        linear-gradient(135deg, #c7d2fe 0%, #e9d5ff 50%, #bae6fd 100%);
    animation: bgPulse 8s ease-in-out infinite alternate;
}
@keyframes bgPulse {
    from { filter: brightness(1); }
    to   { filter: brightness(1.05) saturate(1.05); }
}

/* Subtle grid */
.grid-overlay {
    position: fixed; inset: 0; z-index: 1;
    background-image:
        linear-gradient(rgba(67,97,238,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(67,97,238,0.06) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(65px);
    pointer-events: none;
    animation: blobPulse ease-in-out infinite alternate;
    z-index: 1;
}
.blob-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(67,97,238,0.30), transparent 70%);
    top: -220px; left: -200px;
    animation-duration: 10s;
}
.blob-2 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(124,58,237,0.25), transparent 70%);
    bottom: -140px; right: -110px;
    animation-duration: 13s;
}
.blob-3 {
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(6,182,212,0.22), transparent 70%);
    top: 55%; left: 55%;
    transform: translate(-50%, -50%);
    animation-duration: 8s;
}
@keyframes blobPulse {
    from { transform: scale(1); }
    to   { transform: scale(1.2); }
}

/* Floating shapes */
.shapes { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.shape {
    position: absolute;
    border-radius: 50%;
    animation: shapeFloat linear infinite;
}
@keyframes shapeFloat {
    0%   { transform: translateY(110vh) scale(0) rotate(0deg); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 0.5; }
    100% { transform: translateY(-15vh) scale(1) rotate(360deg); opacity: 0; }
}

/* Wrapper */
.login-wrapper {
    position: relative; z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    padding: 20px;
}

/* Left hero side */
.login-hero {
    flex: 1; max-width: 440px;
    display: flex; flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    animation: heroIn 0.8s var(--ease-out) both;
}
@keyframes heroIn {
    from { opacity: 0; transform: translateX(-35px); }
    to   { opacity: 1; transform: translateX(0); }
}
.login-hero .hero-badge {
    background: rgba(67,97,238,0.10);
    border: 1px solid rgba(67,97,238,0.22);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    display: inline-flex; align-items: center; gap: 6px;
    animation: slideRight 0.5s var(--ease-out) 0.2s both;
}
.login-hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3.1rem;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1.12;
    margin: 0;
    letter-spacing: -1px;
    animation: slideRight 0.5s var(--ease-out) 0.35s both;
}
.login-hero h1 span {
    background: linear-gradient(135deg, #4361ee, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.login-hero p {
    font-size: 0.975rem;
    color: #475569;
    margin: 0;
    line-height: 1.7;
    max-width: 360px;
    animation: slideRight 0.5s var(--ease-out) 0.45s both;
}
.login-hero .hero-features {
    display: flex; flex-direction: column; gap: 12px;
    margin-top: 8px;
}
.hero-feature {
    display: flex; align-items: center; gap: 12px;
    animation: slideRight 0.5s var(--ease-out) both;
}
.hero-feature:nth-child(1) { animation-delay: 0.55s; }
.hero-feature:nth-child(2) { animation-delay: 0.65s; }
.hero-feature:nth-child(3) { animation-delay: 0.75s; }
.hero-feature .hf-icon {
    width: 38px; height: 38px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: transform var(--anim-mid) var(--ease-spring);
}
.hero-feature:hover .hf-icon { transform: scale(1.1) rotate(-5deg); }
.hero-feature p { font-size: 0.875rem; margin: 0; color: #475569; }
.hero-feature strong { font-size: 0.875rem; color: #1e293b; display: block; }

/* Glass Login Card */
.login-card {
    width: 100%; max-width: 420px;
    background: rgba(255,255,255,0.80);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1.5px solid rgba(255,255,255,0.92);
    border-radius: 26px;
    padding: 44px 40px;
    box-shadow:
        0 24px 64px rgba(67,97,238,0.18),
        0 0 0 1px rgba(255,255,255,0.8) inset,
        0 2px 0 rgba(255,255,255,0.9) inset;
    animation: cardIn 0.8s var(--ease-spring) 0.1s both;
    position: relative;
    overflow: hidden;
}
/* Glossy top highlight */
.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(32px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Logo */
.login-logo {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, #4361ee, #7c3aed);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; color: #fff;
    margin: 0 auto 22px;
    box-shadow: 0 10px 30px rgba(67,97,238,0.40);
    animation: logoPop 0.7s var(--ease-spring) 0.3s both;
    position: relative;
}
.login-logo::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 24px;
    border: 2px solid rgba(67,97,238,0.20);
    animation: logoPulseRing 2s ease-in-out infinite;
}
@keyframes logoPulseRing {
    0%,100% { transform: scale(1); opacity: 0.4; }
    50%      { transform: scale(1.08); opacity: 0.15; }
}
@keyframes logoPop {
    from { opacity: 0; transform: scale(0.5) rotate(-15deg); }
    to   { opacity: 1; transform: scale(1) rotate(0); }
}

.login-card h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 4px;
}
.login-card .sub {
    text-align: center;
    color: #64748b;
    font-size: 0.84rem;
    margin-bottom: 28px;
}

/* Role pills */
.role-pills {
    display: flex; gap: 7px; justify-content: center;
    margin-bottom: 28px; flex-wrap: wrap;
}
.role-pill {
    font-size: 0.72rem; font-weight: 700;
    padding: 5px 13px; border-radius: 50px;
    border: 1.5px solid;
    display: inline-flex; align-items: center; gap: 5px;
    animation: pillIn 0.4s var(--ease-spring) both;
    transition: transform var(--anim-fast) var(--ease-spring), box-shadow var(--anim-fast);
}
.role-pill:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.10); }
.pill-admin  { color: #b45309; border-color: #fcd34d; background: #fffbeb; animation-delay:0.4s; }
.pill-guru   { color: #047857; border-color: #6ee7b7; background: #ecfdf5; animation-delay:0.5s; }
.pill-siswa  { color: #1d4ed8; border-color: #93c5fd; background: #eff6ff; animation-delay:0.6s; }
@keyframes pillIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

/* Input */
.lf-group {
    position: relative;
    margin-bottom: 18px;
}
.lf-group .lf-icon {
    position: absolute; left: 15px; top: 50%;
    transform: translateY(-50%);
    color: #94a3b8; font-size: 0.95rem;
    transition: color var(--anim-mid); z-index: 2;
}
.lf-group:focus-within .lf-icon { color: var(--primary); }
.lf-group input {
    width: 100%;
    background: rgba(248,250,255,0.8);
    border: 1.5px solid #e2e8f0;
    border-radius: 13px;
    padding: 13px 46px 13px 44px;
    font-size: 0.95rem;
    color: var(--text-dark);
    outline: none;
    transition: all var(--anim-mid);
    font-family: 'Inter', sans-serif;
    backdrop-filter: blur(4px);
}
.lf-group input::placeholder { color: #b0bec5; }
.lf-group input:focus {
    background: #fff;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3.5px rgba(67,97,238,0.14);
    transform: translateY(-1px);
}
.lf-toggle {
    position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    color: #94a3b8; font-size: 0.9rem; z-index: 2;
    transition: color var(--anim-fast); padding: 0;
}
.lf-toggle:hover { color: var(--primary); }

/* Submit button */
.lf-btn {
    width: 100%; padding: 13px;
    border: none; border-radius: 13px;
    background: linear-gradient(135deg, #4361ee 0%, #7c3aed 100%);
    color: #fff; font-size: 0.95rem; font-weight: 700;
    cursor: pointer; position: relative; overflow: hidden;
    box-shadow: 0 8px 24px rgba(67,97,238,0.36);
    transition: all var(--anim-mid);
    font-family: 'Inter', sans-serif;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.lf-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transition: left 0.5s ease;
}
.lf-btn:hover::before { left: 100%; }
.lf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(67,97,238,0.44);
}
.lf-btn:active { transform: translateY(0); }

/* Error */
.lf-error {
    display: flex; align-items: center; gap: 8px;
    background: #fff5f5;
    border: 1.5px solid #fecaca;
    color: #dc2626;
    border-radius: 11px;
    padding: 11px 15px;
    font-size: 0.84rem;
    margin-bottom: 18px;
    animation: shakeError 0.4s ease;
}
@keyframes shakeError {
    0%,100%{transform:translateX(0)}
    20%{transform:translateX(-6px)}
    40%{transform:translateX(6px)}
    60%{transform:translateX(-4px)}
    80%{transform:translateX(4px)}
}

.lf-hint {
    text-align: center;
    font-size: 0.74rem;
    color: #94a3b8;
    margin-top: 22px;
}
.lf-hint code {
    background: #eef2ff;
    color: var(--primary);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.77rem;
}

/* Responsive — hide hero on small screens */
@media (max-width: 900px) {
    .login-hero { display: none; }
    .login-wrapper { justify-content: center; }
    .login-card { padding: 36px 26px; }
}

/* ══════════════════════════════════════════════════
   MOBILE & PORTRAIT RESPONSIVE LAYOUT
══════════════════════════════════════════════════ */
@media (max-width: 991.98px), screen and (orientation: portrait) {
    .d-flex { flex-direction: column !important; }
    .sidebar {
        position: fixed !important;
        top: 0 !important; left: 0 !important;
        width: 268px !important;
        height: 100vh !important;
        z-index: 1050 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.32s var(--ease-out) !important;
        box-shadow: 8px 0 32px rgba(0,0,0,0.25) !important;
    }
    .sidebar.show { transform: translateX(0) !important; }
    .sidebar-overlay {
        position: fixed; top: 0; left: 0;
        width: 100vw; height: 100vh;
        background: rgba(15,23,42,0.52);
        backdrop-filter: blur(3px);
        z-index: 1040; display: none;
    }
    .sidebar-overlay.show { display: block !important; }
    .main-content {
        width: 100% !important; min-width: 100% !important;
        margin-left: 0 !important; overflow-x: hidden !important;
    }
    .topbar { padding: 0.75rem 1rem !important; }
    .page-content { padding: 1rem 0.75rem !important; }
    .chat-wrapper {
        height: calc(100vh - 100px) !important;
        margin: -0.25rem !important;
        border-radius: 10px !important;
    }
    .chat-left-sidebar {
        width: 100% !important; min-width: 100% !important;
    }
    .chat-wrapper.in-chat .chat-left-sidebar { display: none !important; }
    .chat-wrapper.in-chat .chat-main-area {
        display: flex !important; width: 100% !important;
    }
    .chat-wrapper:not(.in-chat) .chat-main-area { display: none !important; }
}

/* ══════════════════════════════════════════════════
   PORTAL LANDING SELECTION BUTTONS
══════════════════════════════════════════════════ */
.portal-card-box {
    width: 100%; max-width: 440px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1.5px solid rgba(255,255,255,0.92);
    border-radius: 26px;
    padding: 44px 36px;
    box-shadow: 0 24px 64px rgba(67,97,238,0.18);
    animation: cardIn 0.8s var(--ease-spring) 0.1s both;
    position: relative; overflow: hidden;
}

.btn-portal-action {
    display: flex; align-items: center; gap: 14px;
    width: 100%; padding: 16px 20px;
    border-radius: 16px; border: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem; font-weight: 700;
    text-decoration: none !important;
    transition: all 0.28s var(--ease-spring);
    cursor: pointer; position: relative; overflow: hidden;
    margin-bottom: 16px; text-align: left;
}

.btn-portal-kokurikuler {
    background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(13,148,136,0.32);
}
.btn-portal-kokurikuler:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 32px rgba(13,148,136,0.45);
    color: #ffffff !important;
}

.btn-portal-kti {
    background: linear-gradient(135deg, #4361ee 0%, #7c3aed 100%);
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(67,97,238,0.32);
}
.btn-portal-kti:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 32px rgba(67,97,238,0.45);
    color: #ffffff !important;
}

.btn-portal-action .btn-portal-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.22);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; color: #fff;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
    transition: transform 0.25s var(--ease-spring);
}
.btn-portal-action:hover .btn-portal-icon {
    transform: scale(1.12) rotate(-5deg);
}

.btn-portal-action .btn-portal-arrow {
    transition: transform 0.25s var(--ease-spring);
}
.btn-portal-action:hover .btn-portal-arrow {
    transform: translateX(4px);
}

/* ══════════════════════════════════════════════════
   REDUCED MOTION — respect user preferences
══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ══════════════════════════════════════════════════
   INTERACTIVE DOCUMENT ANNOTATIONS & MARKUP
   (Sorot Kuning, Sorot Hijau, Coret Merah, Komentar)
══════════════════════════════════════════════════ */
.doc-annot {
    border-radius: 4px;
    padding: 1px 4px;
    cursor: pointer;
    position: relative;
    display: inline;
    transition: all 0.2s ease;
    user-select: text;
}
.annot-yellow {
    background-color: #fef08a !important;
    border-bottom: 2px solid #eab308;
    color: #713f12 !important;
}
.annot-yellow:hover {
    background-color: #fde047 !important;
    box-shadow: 0 0 6px rgba(234, 179, 8, 0.4);
}
.annot-green {
    background-color: #bbf7d0 !important;
    border-bottom: 2px solid #22c55e;
    color: #14532d !important;
}
.annot-green:hover {
    background-color: #86efac !important;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}
.annot-strike {
    text-decoration: line-through !important;
    text-decoration-color: #ef4444 !important;
    text-decoration-thickness: 2.5px !important;
    background-color: #fee2e2 !important;
    color: #991b1b !important;
    border-bottom: 1px dashed #f87171;
}
.annot-strike:hover {
    background-color: #fecaca !important;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}
.annot-comment-pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    margin-left: 3px;
    margin-right: 2px;
    vertical-align: super;
    cursor: pointer;
    background: #4361ee;
    color: #ffffff;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(67, 97, 238, 0.35);
    transition: transform 0.15s ease;
}
.annot-comment-pin:hover {
    transform: scale(1.25);
    background: #3451d1;
}
.annot-doc-box {
    user-select: text !important;
}
.annot-doc-box * {
    user-select: text !important;
}
.annot-toolbar .btn {
    font-size: 0.78rem;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 500;
}
.annot-summary {
    animation: fadeIn 0.2s ease;
}
.annot-item-row {
    transition: background 0.15s ease;
}
.annot-item-row:hover {
    background-color: #f8fafc !important;
}

