/* Advanced Conversion Test Page Styles */

/* Page-specific styles for conversion test */
.main-content {
    max-width: 1000px;
}

.conversion-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.service-status {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--light-color);
    border-radius: var(--border-radius-sm);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--success-color);
    animation: pulse 2s infinite;
}

.status-dot.error {
    background: var(--error-color);
}

.status-dot.warning {
    background: var(--warning-color);
}

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

.conversion-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: var(--light-color);
    border-radius: var(--border-radius-sm);
}

.stat-number {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
}

.file-preview {
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    padding: 20px;
    margin: 15px 0;
    background: #fafafa;
}

.file-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.detail-item {
    padding: 10px;
    background: white;
    border-radius: var(--border-radius-sm);
    border: 1px solid #ddd;
}

.detail-label {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 5px;
}

.detail-value {
    font-weight: 500;
    color: var(--dark-color);
}

.conversion-progress {
    margin: 20px 0;
    padding: 20px;
    background: var(--light-color);
    border-radius: var(--border-radius-sm);
    display: none;
}

.conversion-progress.show {
    display: block;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #ddd;
    z-index: 1;
}

.progress-step.active::after {
    background: var(--primary-color);
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    z-index: 2;
    margin-bottom: 10px;
}

.progress-step.active .step-icon {
    background: var(--primary-color);
}

.progress-step.completed .step-icon {
    background: var(--success-color);
}

.progress-step.error .step-icon {
    background: var(--error-color);
}

.step-label {
    font-size: 0.8em;
    text-align: center;
    color: #666;
}

.conversion-result {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-top: 20px;
    display: none;
}

.conversion-result.show {
    display: block;
}

.result-success {
    border-left: 4px solid var(--success-color);
}

.result-error {
    border-left: 4px solid var(--error-color);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-color);
}

.download-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.response-viewer {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-top: 20px;
    display: none;
}

.response-viewer.show {
    display: block;
}

.response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-color);
}

/* Status text colors */
.status-details {
    font-size: 0.9em;
    color: #666;
}

/* Hide elements by default */
.conversion-stats.hidden {
    display: none;
}

.file-preview.hidden {
    display: none;
}