/* Simple Audio Visualizer - Liquid Glass Pill Button Styles */
.ave-container {
    /* Reset button styles */
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-align: inherit;
    font: inherit;
    color: inherit;
    outline: none;
    
    /* Layout */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 30px;
    
    /* Theme default colors (overridden by dynamic CSS variables) */
    background-color: var(--ave-bg-color, rgba(255, 255, 255, 0.25));
    border: 1px solid var(--ave-border-color, rgba(255, 255, 255, 0.45));
    color: var(--ave-text-color, #ffffff);
    
    /* Liquid Glass Effect */
    backdrop-filter: blur(12px) saturate(145%);
    -webkit-backdrop-filter: blur(12px) saturate(145%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05), 
                inset 0 1px 1px rgba(255, 255, 255, 0.4),
                inset 0 -1px 1px rgba(0, 0, 0, 0.05);
    
    /* Typography */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    white-space: nowrap;
    
    /* Interaction */
    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    user-select: none;
    position: relative;
    z-index: 10;
}

/* Hover State */
.ave-container:hover {
    background-color: var(--ave-hover-bg-color, rgba(255, 255, 255, 0.35));
    border-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.04) translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 
                inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Active Click State */
.ave-container:active {
    transform: scale(0.96) translateY(1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 
                inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* Focus outline styled cleanly */
.ave-container:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4), 
                0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Canvas Layout */
.ave-canvas-wrapper {
    flex-shrink: 0;
    width: 28px; /* Clean size for a 5-bar layout */
    height: 16px;
    margin-right: 12px;
    position: relative;
    display: flex;
    align-items: center;
}

.ave-canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

/* Text Element */
.ave-text-trigger {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

/* Error layout */
.ave-error {
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #ef4444;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
}
