/**
 * Test UI Styles
 * 
 * Styles für das SCORM Test Package Interface
 * 
 * @version 1.0
 * @author SCORM Test System
 */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.test-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 30px;
}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 28px;
}

h2 {
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 22px;
}

.test-info {
    background: #e8f4f8;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.test-info p {
    margin: 5px 0;
}

.test-info strong {
    color: #2c3e50;
}

.test-actions {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.test-results {
    margin-top: 30px;
}

.test-summary {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.summary-item {
    text-align: center;
}

.summary-item .label {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.summary-item .value {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
}

.summary-item .value.passed {
    color: #27ae60;
}

.summary-item .value.failed {
    color: #e74c3c;
}

.test-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.test-result {
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid;
    background: #f8f9fa;
}

.test-result.passed {
    border-left-color: #27ae60;
    background: #d5f4e6;
}

.test-result.failed {
    border-left-color: #e74c3c;
    background: #fadbd8;
}

.test-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.test-result-name {
    font-weight: 600;
    color: #2c3e50;
}

.test-result-status {
    font-size: 20px;
}

.test-result-category {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

.test-result-error {
    margin-top: 10px;
    padding: 10px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 4px;
    color: #c0392b;
    font-size: 14px;
}

.test-result-duration {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.export-options {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.export-options h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.export-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* API-Warnung */
.api-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.api-warning .warning-content h3 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 20px;
}

.api-warning .warning-content p {
    color: #856404;
    margin-bottom: 15px;
    line-height: 1.6;
}

.api-warning .warning-instructions {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.api-warning .warning-instructions p {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
}

.api-warning .warning-instructions ol {
    margin-left: 20px;
    color: #2c3e50;
}

.api-warning .warning-instructions ul {
    margin-left: 20px;
    margin-top: 5px;
    color: #2c3e50;
}

.api-warning .warning-instructions li {
    margin: 8px 0;
}

.api-warning .warning-instructions a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.api-warning .warning-instructions a:hover {
    text-decoration: underline;
}

.api-warning .warning-instructions code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #667eea;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .test-container {
        padding: 15px;
    }
    
    .test-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .test-summary {
        grid-template-columns: 1fr;
    }
}

