/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: rgba(13, 17, 23, 0.8);
}
::-webkit-scrollbar-thumb {
    background: rgba(48, 54, 61, 0.8);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(46, 160, 67, 0.6);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}

/* Signal / WhatsApp Message Bubbles */
.message-sent {
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
    color: #ffffff;
    border-top-right-radius: 2px;
}
.message-received {
    background: #161b22;
    border: 1px solid #30363d;
    color: #e6edf3;
    border-top-left-radius: 2px;
}

/* View Once Blurred Overlay Container */
.view-once-container {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
}

.view-once-blurred {
    filter: blur(20px);
    transition: filter 0.3s ease;
}

.view-once-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 23, 0.75);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-center: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.view-once-container:hover .view-once-overlay {
    background: rgba(13, 17, 23, 0.6);
}

/* Active Audio Waves */
#audio-wave-canvas {
    filter: drop-shadow(0 0 6px rgba(46, 160, 67, 0.6));
}

/* Pulse animation for active SAS badge */
.sas-badge-active {
    box-shadow: 0 0 12px rgba(46, 160, 67, 0.3);
}
