/**
 * Upload Overlay Styles
 * Beautiful modal with circular progress
 */

.upload-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.upload-overlay.active {
    opacity: 1;
    visibility: visible;
}

.upload-modal {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.upload-overlay.active .upload-modal {
    transform: scale(1);
}

.upload-content {
    text-align: center;
}

.upload-title {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

/* Circular Progress */
.circular-progress {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.3s ease;
    stroke-linecap: round;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

/* Animations */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.upload-overlay.active .progress-ring-bg {
    animation: pulse 2s ease-in-out infinite;
}

/* Success/Error States */
.upload-status.success {
    color: #28a745;
}

.upload-status.error {
    color: #dc3545;
}

/* Responsive */
@media (max-width: 480px) {
    .upload-modal {
        padding: 30px 20px;
    }

    .upload-title {
        font-size: 20px;
    }

    /* Keep circular-progress at 120x120 - SVG is fixed size */

    .progress-text {
        font-size: 24px;
    }
}


/* Credit Confirmation Styles (compact like ElevenLabs) */
.credit-details {
    margin: 20px 0;
    text-align: left;
}

.credit-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.credit-row:last-child {
    border-bottom: none;
}

.credit-label {
    color: #666;
    font-weight: normal;
}

.credit-value {
    color: #333;
    font-weight: 600;
}

.credit-loading {
    color: #999;
    font-style: italic;
}

.credit-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 10px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 13px;
    text-align: center;
}

.credit-checkbox {
    margin: 20px 0;
    text-align: left;
}

.credit-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.credit-checkbox input[type="checkbox"] {
    margin-top: 2px;
    cursor: pointer;
    accent-color: #333;
}

.credit-checkbox a {
    color: #333;
    text-decoration: underline;
}

.credit-checkbox a:hover {
    color: #000;
}

.credit-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.credit-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.credit-btn-proceed,
.credit-btn-buy {
    background: #333;
    color: white;
}

.credit-btn-proceed:hover:not(:disabled),
.credit-btn-buy:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.credit-btn-proceed:disabled {
    background: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.credit-btn-cancel {
    background: transparent;
    color: #333;
    border: 2px solid #333;
}

.credit-btn-cancel:hover {
    background: #f5f5f5;
}