/* Alkirtas Audio Sample Widget - Simple Style with Drag Support */

.audio-sample-widget {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    max-width: 600px;
}

.audio-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 500;
    color: #495057;
}

.audio-header svg {
    color: #cd3470;
}

.audio-duration {
    margin-left: auto;
    background: #cd3470;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.audio-play-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #cd3470;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.audio-play-btn:hover {
    background: #0056b3;
}

.audio-play-btn:active {
    transform: scale(0.98);
}

.audio-progress {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: visible;
    cursor: pointer;
    position: relative;
    transition: height 0.2s ease;
}

.progress-bar:hover {
    height: 10px;
}

.progress-bar:active {
    height: 12px;
}

.progress-fill {
    height: 100%;
    background: #cd3470;
    width: 0%;
    border-radius: 4px;
    position: relative;
    transition: width 0.1s linear;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #cd3470;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-bar:hover .progress-fill::after,
.progress-bar:active .progress-fill::after {
    opacity: 1;
}

.time-display {
    font-size: 12px;
    color: #6c757d;
    text-align: right;
    user-select: none;
}

/* Responsive */
@media (max-width: 576px) {
    .audio-sample-widget {
        padding: 12px;
    }
    
    .audio-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .audio-play-btn {
        justify-content: center;
    }
    
    .time-display {
        text-align: center;
    }
    
    .progress-bar {
        height: 10px;
    }
}

/* Prevent text selection while dragging */
.audio-sample-widget.dragging {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.audio-sample-widget.dragging * {
    cursor: grabbing !important;
}
