.arcane-voice-feedback {
    box-sizing: border-box;
    margin: 20px auto;
}

.arcane-voice-feedback * {
    box-sizing: border-box;
}

/* Floating Mode Styles */
.avf-floating {
    position: fixed;
    z-index: 9999;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.avf-floating.avf-collapsed {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
}

.avf-floating.avf-collapsed .avf-recording-interface {
    padding: 0;
}

.avf-floating-top-left {
    top: 20px;
    left: 20px;
}

.avf-floating-top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.avf-floating-top-right {
    top: 20px;
    right: 20px;
}

.avf-floating-right-center {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.avf-floating-bottom-right {
    bottom: 20px;
    right: 20px;
}

.avf-floating-bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.avf-floating-bottom-left {
    bottom: 20px;
    left: 20px;
}

.avf-floating-left-center {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.avf-toggle-button {
    cursor: pointer;
}

.avf-expanded-content {
    margin-top: 15px;
}

.avf-recording-interface {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avf-button-wrapper {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px;
}

.avf-button-wrapper img {
    max-width: 100%;
    max-height: calc(100% - 25px);
    object-fit: contain;
}

.avf-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.avf-icon svg {
    width: 24px;
    height: 24px;
}

.avf-button-text {
    font-size: 0.85em;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.avf-record-button,
.avf-review-button,
.avf-send-button,
.avf-rerecord-button,
.avf-stop-button,
.avf-toggle-button {
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
    padding: 10px;
}

.avf-record-button:hover,
.avf-review-button:hover,
.avf-send-button:hover,
.avf-rerecord-button:hover,
.avf-stop-button:hover,
.avf-toggle-button:hover {
    opacity: 0.9;
}

.avf-recording-status {
    width: 100%;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avf-recording-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
    max-width: 300px;
}

.avf-recording-indicator {
    color: #dc3545;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.avf-waveform {
    display: block;
    width: 100%;
    max-width: 300px;
    height: 60px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 10px auto;
    background: #f9f9f9;
}

.avf-stop-button {
    width: auto;
    margin: 15px auto 0 auto;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.avf-stop-button.avf-button-wrapper {
    flex-direction: column;
    gap: 5px;
}

.avf-audio-player {
    width: 100%;
}

.avf-audio-player audio {
    width: 100%;
    margin-top: 10px;
}

.avf-action-buttons {
    width: 100%;
}

.avf-message {
    width: 100%;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 600px) {
    .arcane-voice-feedback {
        width: 100% !important;
        max-width: 100%;
    }
    
    .avf-action-buttons {
        flex-direction: column;
    }
    
    .avf-action-buttons button {
        width: 100%;
    }
}