/* Container form upload - versi responsif */
.custom-audio-upload-form {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

/* Informasi file yang dipilih */
.selected-file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0; /* Penting untuk ellipsis */
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 10px;
    border-radius: 8px;
    overflow: hidden;
}

.selected-file-info i {
    flex-shrink: 0;
    font-size: 1.1rem;
    color: #3a86ff;
}

.file-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.85rem;
    color: #f8f9fa;
}

/* Tombol batal (X) */
.btn-cancel-file {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #ef476f;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
    border-radius: 20px;
    transition: 0.2s;
}

.btn-cancel-file:active {
    background: rgba(239, 71, 111, 0.2);
}

/* Tombol kirim */
#btn-upload-audio {
    flex-shrink: 0;
    background: linear-gradient(135deg, #06d6a0, #20c997);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.2s;
}

#btn-upload-audio:disabled {
    background: #6c757d;
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 500px) {
    .custom-audio-upload-form {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
    }
    
    .selected-file-info {
        width: 100%;
        flex-basis: 100%;
        justify-content: space-between;
    }
    
    #btn-upload-audio {
        width: 100%;
        justify-content: center;
        padding: 10px;
    }
    
    /* Agar label upload awal juga rapi */
    .audio-option-content {
        padding: 10px;
        justify-content: center;
    }
}

/* Pastikan .audio-option tidak meluber */
.audio-option {
    display: block;
    width: 100%;
    margin-bottom: 8px;
}

.audio-empty-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  color: #94a3b8;
  font-size: 0.9rem;
  text-align: center;
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
}
.audio-empty-placeholder i {
  font-size: 1.2rem;
}

.upload-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.upload-modal-content {
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(8px);
  padding: 24px 32px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: white;
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 20px 35px -10px rgba(0,0,0,0.3);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}