/* Light theme styles for examples */

body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px;
    background: #fafafa;
    color: #333;
    line-height: 1.6;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
}

.controls { 
    margin-bottom: 20px; 
    padding: 20px; 
    background: #f8f9fa; 
    border-radius: 6px; 
    border: 1px solid #e9ecef;
}

.section {
    margin-bottom: 30px; 
    padding: 20px; 
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

button { 
    margin: 5px; 
    padding: 10px 15px; 
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

button:active {
    transform: translateY(1px);
}

.session-results { 
    margin-top: 20px; 
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.example-info {
    background-color: #e3f2fd;
    border-left: 4px solid #2196F3;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 4px;
}

.cdn-info {
    background-color: #e8f5e9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #4caf50;
}

#results {
    background-color: #f1f1f1;
    padding: 15px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    white-space: pre-wrap;
    font-size: 12px;
    color: #333;
}

#mocha { 
    margin-top: 20px; 
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    background: white;
}

h1, h2, h3 {
    color: #2c3e50;
    margin-top: 0;
}

h1 {
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.error-display {
    background-color: #fff5f5;
    border-left: 4px solid #f56565;
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
    color: #c53030;
}

/* Event log styles */
#event-log {
    margin-top: 20px;
    padding: 15px;
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 11px;
}

.event-item {
    padding: 2px 0;
    border-bottom: 1px solid #e0e6ed;
}

.event-time { 
    color: #6c757d; 
    margin-right: 8px; 
}

.event-type { 
    font-weight: bold; 
    margin-right: 8px; 
    padding: 2px 6px; 
    border-radius: 3px; 
    font-size: 10px;
}

.event-type.session { 
    background: #e3f2fd; 
    color: #1976d2; 
}

.event-type.test { 
    background: #f3e5f5; 
    color: #7b1fa2; 
}

.event-type.script { 
    background: #e8f5e8; 
    color: #388e3c; 
}

.event-session { 
    color: #495057; 
    margin-right: 8px; 
    font-weight: 500;
}

.event-data { 
    color: #6c757d; 
    font-size: 10px; 
}

code {
    background: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: #e83e8c;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 15px;
    }
    
    .controls {
        padding: 15px;
    }
    
    button {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: " (Loading...)";
    color: #6c757d;
    font-style: italic;
}

/* Success/error states */
.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Syntax highlighting for code blocks */
.hljs {
    background: #f8f9fa !important;
    color: #333 !important;
}
