body {
    font-family: 'Poppins', sans-serif;
    background-color: #000005;
    overflow: hidden;
}

#star-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.glow {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5), 0 0 20px rgba(180, 210, 255, 0.3);
}

#message-input {
    caret-color: #a7c8ff;
}

#message-input:focus {
    outline: none;
}

#message-input:empty:before {
    content: attr(data-placeholder);
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

#reply-input:empty:before {
    content: attr(data-placeholder);
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.hold-button-progress {
    transition: stroke-dashoffset 0.1s linear;
}

.hold-button-fill {
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
    transform-origin: center;
}

.read-button-fill {
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
    transform-origin: center;
}

.particle {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    pointer-events: none;
    opacity: 1;
    transition: transform 1.5s cubic-bezier(0.4, 0, 1, 1), opacity 1.5s linear;
}

#confirmation-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
    line-height: 1.6;
}

/* Filter Container Styling */
#filter-header {
    transition: background-color 0.2s ease;
}

#filter-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

#filter-content {
    max-height: 0;
    padding: 0;
    transition: all 0.3s ease;
}

#filter-content.expanded {
    max-height: 200px;
    padding: 0 1rem 1rem 1rem;
}

#filter-arrow.rotated {
    transform: rotate(180deg);
}

#type-filter-header {
    transition: background-color 0.2s ease;
}

#type-filter-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

#type-filter-content {
    max-height: 0;
    padding: 0;
    transition: all 0.3s ease;
}

#type-filter-content.expanded {
    max-height: 200px;
    padding: 0 1rem 1rem 1rem;
}

#type-filter-arrow.rotated {
    transform: rotate(180deg);
}

/* Filter Chips Styling */
.filter-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}


.filter-chip.active {
    background: linear-gradient(135deg, rgba(167, 200, 255, 0.2), rgba(255, 167, 200, 0.2));
    border-color: rgba(167, 200, 255, 0.5);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 20px rgba(167, 200, 255, 0.3);
}

.filter-emoji {
    font-size: 1rem;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

.filter-chip.active .filter-emoji {
    filter: drop-shadow(0 0 6px rgba(167, 200, 255, 0.6));
}

/* Type Filter Chips Styling */
.type-filter-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.type-filter-chip.active {
    background: linear-gradient(135deg, rgba(255, 167, 200, 0.2), rgba(167, 200, 255, 0.2));
    border-color: rgba(255, 167, 200, 0.5);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 20px rgba(255, 167, 200, 0.3);
}

.type-filter-chip.active .filter-emoji {
    filter: drop-shadow(0 0 6px rgba(255, 167, 200, 0.6));
}

@media (max-width: 768px) {
    #confirmation-text {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .filter-chip {
        padding: 0.375rem 0.625rem;
        font-size: 0.8125rem;
    }
    
    .filter-emoji {
        font-size: 0.875rem;
    }
    
    /* Tooltip positioning for mobile */
    .group:hover .absolute {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100vw - 2rem);
        max-width: 320px;
    }
}
