/* ── CRM Crypto Ticker Styles ── */
.crm-crypto-ticker {
    overflow: hidden;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}
.crm-crypto-ticker .swiper-slide {
    width: fit-content !important;
    padding: 12px 0;
    white-space: nowrap;
    border-right: 1px solid var(--bs-border-color);
    border-left: 4px solid var(--kurs-color, var(--bs-border-color));
    line-height: 1.8;
    transition: background .2s;
}
.crm-crypto-ticker .swiper-slide:hover {
    background: color-mix(in srgb, var(--kurs-color, transparent) 8%, transparent);
}
.crm-crypto-ticker .kurs-flag {
    font-size: 1.35rem;
    line-height: 1;
}
.crm-crypto-ticker .kurs-code {
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .3px;
    color: var(--kurs-color, inherit);
}
.crm-crypto-ticker .kurs-name {
    font-size: 12px;
    color: var(--bs-secondary-color);
}
.crm-crypto-ticker .kurs-val {
    font-size: 13px;
}
.crm-crypto-ticker .kurs-label {
    font-size: 10.5px;
    color: var(--bs-secondary-color);
}
.crm-crypto-ticker .kurs-pct {
    font-size: 12px;
    font-weight: 600;
}

/* ── CRM Stat Card Styles ── */
.crm-stat-card {
    position: relative;
    overflow: hidden;
    color: #fff;
    border: none;
    border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
    text-decoration: none;
}
.crm-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,.25) !important;
    color: #fff;
}
.crm-stat-card .card-body {
    position: relative;
    z-index: 2;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.crm-stat-card .stat-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    background: rgba(255,255,255,.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.crm-stat-card .stat-content {
    flex: 1;
    min-width: 0;
}
.crm-stat-card .stat-label {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .82;
    margin-bottom: .2rem;
    white-space: nowrap;
}
.crm-stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: .3rem;
}
.crm-stat-card .stat-pct {
    font-size: .74rem;
    opacity: .9;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}
.crm-stat-card .stat-pct .pct-up {
    color: #a8ffcc;
}
.crm-stat-card .stat-pct .pct-down {
    color: #ffb3b3;
}

/* ── Ripple Wave Effect ── */
.crm-stat-card .ripple-1,
.crm-stat-card .ripple-2,
.crm-stat-card .ripple-3,
.crm-stat-card .ripple-4,
.crm-stat-card .ripple-5 {
    height: 1px;
    width: 1px;
    position: absolute;
    left: 10%;
    bottom: -10%;
    background-color: rgba(255,255,255,.18);
    border-radius: 50%;
    transform: translate3d(-50%,50%,0);
    animation: 8s crm-ripple infinite ease-out;
    will-change: transform, opacity;
    z-index: 1;
}
.crm-stat-card .ripple-2 {
    animation-delay: 1.5s;
    left: 20%;
}
.crm-stat-card .ripple-3 {
    animation-delay: 3s;
    left: 50%;
}
.crm-stat-card .ripple-4 {
    animation-delay: 4.5s;
    left: 70%;
}
.crm-stat-card .ripple-5 {
    animation-delay: 6s;
    left: 85%;
}
@keyframes crm-ripple {
    0% {
        transform: translate3d(-50%,50%,0) scale(1);
        opacity: .6;
    }
    100% {
        transform: translate3d(-50%,50%,0) scale(280);
        opacity: 0;
    }
}

/* ── Activity Monitor Card ── */
.activity-monitor-card {
    display: flex;
    flex-direction: column;
    height: 520px;
}
.activity-monitor-card .card-body {
    flex: 1;
    overflow-y: auto;
}

/* ── Chat List Styles ── */
.chat-list-row {
    transition: background .15s ease;
    border-bottom: 1px solid var(--bs-border-color);
}
.chat-list-row:last-child {
    border-bottom: none;
}
.chat-list-row:hover {
    background: var(--bs-tertiary-bg) !important;
}

/* ── Meeting Enhancements ── */
.meeting-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.meeting-attendees {
    display: flex;
    align-items: center;
    margin-left: 10px;
}
.meeting-attendees .attendee-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    background: var(--bs-primary-bg-subtle);
    color: var(--bs-primary);
    margin-left: -8px;
}
.meeting-attendees .attendee-avatar:first-child {
    margin-left: 0;
}
.meeting-attendees .attendee-more {
    margin-left: 6px;
    font-size: 11px;
    color: var(--bs-secondary-color);
}

/* ── Online Pulse Dot Animation ── */
.online-pulse-dot {
    width: 10px;
    height: 10px;
    background: #00ab84;
    border-radius: 50%;
    position: relative;
}
.online-pulse-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: rgba(0,171,132,.35);
    animation: onlinePulse 1.8s ease-out infinite;
}
@keyframes onlinePulse {
    0% {
        transform: scale(1);
        opacity: .8;
    }
    70% {
        transform: scale(2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* ── Online Pegawai Row ── */
.online-pegawai-row {
    transition: background .15s;
}
.online-pegawai-row:hover {
    background: var(--bs-tertiary-bg);
}
.online-pegawai-row:last-child {
    border-bottom: none !important;
}

/* ── Dashboard Real-time Widgets ── */
.dash-widget-card {
    display: flex;
    flex-direction: column;
    height: 520px;
}
.dash-widget-body {
    flex: 1;
    overflow: hidden;
}
.dash-item-row {
    transition: background .15s;
}
.dash-item-row:hover {
    background: var(--bs-tertiary-bg);
}
.dash-item-row:last-child {
    border-bottom: none !important;
}

/* ── Foto Zoom Lightbox ── */
#fotoZoomOverlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.82);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: fotoZoomFadeIn .18s ease;
}
#fotoZoomOverlay.show {
    display: flex;
}
@keyframes fotoZoomFadeIn {
    from {
        opacity: 0;
        transform: scale(.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
#fotoZoomOverlay img {
    max-width: 60vh;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,.55);
    object-fit: contain;
    cursor: default;
    transition: transform 0.3s ease;
}
#fotoZoomCaption {
    position: absolute;
    bottom: calc(50% - min(40vh,260px) - 36px);
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    background: rgba(0,0,0,.45);
    border-radius: 20px;
    padding: 4px 16px;
    white-space: nowrap;
}
#fotoZoomClose {
    position: absolute;
    top: 18px;
    right: 22px;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    opacity: .8;
    background: none;
    border: none;
    padding: 0;
}
#fotoZoomClose:hover {
    opacity: 1;
}
.foto-zoomable {
    cursor: zoom-in !important;
    transition: opacity .15s;
}
.foto-zoomable:hover {
    opacity: .82;
}

/* ── Activity Description/Notes Truncate ── */
.activity-notes,
.activity-description {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-wrap: break-word !important;
    max-width: 100% !important;
    min-width: 0 !important;
}
