/* Advanced Upload Test Page Styles */

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

.upload-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; }
}

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

.upload-stats.hidden {
    display: none;
}

.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: 15px;
    margin: 10px 0;
    background: #fafafa;
}

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

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.file-item:last-child {
    border-bottom: none;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-icon {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.file-meta {
    font-size: 0.8em;
    color: #666;
}

.file-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: bold;
    text-transform: uppercase;
}

.file-status.pending {
    background: #fff3cd;
    color: #856404;
}

.file-status.uploading {
    background: #cce7ff;
    color: #004085;
}

.file-status.success {
    background: #d4edda;
    color: #155724;
}

.file-status.error {
    background: #f8d7da;
    color: #721c24;
}

.upload-progress {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin: 15px 0;
}

.upload-progress.hidden {
    display: none;
}

.upload-progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
    width: 0%;
}

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

.response-viewer.hidden {
    display: none;
}

.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;
}