:root {
    --primary: #0ff;
    --primary-light: #00ccff;
    --secondary: #f0f;
    --secondary-light: #ff00cc;
    --light: #222;
    --dark: #000;
    --success: #0f0;
    --danger: #f00;
    --info: #0ff;
    --border: #333;
    --text: #fff;
    --text-light: #aaa;
    --background: #111;
    --card-bg: #1a1a1a;
    --shadow: 0 2px 10px rgba(0, 255, 255, 0.2);
    --shadow-hover: 0 5px 15px rgba(255, 0, 255, 0.3);
    --radius: 8px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 0, 255, 0.05) 0%, transparent 50%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 15px rgba(0, 255, 255, 0.3); border-color: #0ff; }
    20% { box-shadow: 0 0 15px rgba(255, 0, 255, 0.3); border-color: #f0f; }
    40% { box-shadow: 0 0 15px rgba(0, 255, 0, 0.3); border-color: #0f0; }
    60% { box-shadow: 0 0 15px rgba(255, 255, 0, 0.3); border-color: #ff0; }
    80% { box-shadow: 0 0 15px rgba(255, 119, 0, 0.3); border-color: #f70; }
    100% { box-shadow: 0 0 15px rgba(0, 255, 255, 0.3); border-color: #0ff; }
}

header {
    background: linear-gradient(135deg, var(--dark) 0%, #222 100%);
    color: var(--primary);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--primary);
    animation: glowPulse 10s infinite linear;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,255,255,0.1) 0%, rgba(0,255,255,0) 70%);
    pointer-events: none;
}

header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
    animation: neonPulse 10s infinite linear;
}

.header-logo {
    height: 90px;
    width: auto;
    margin-left: 30px;
    vertical-align: middle;
}

header h1::before {
    content: '⚡';
    margin-right: 12px;
    font-size: 1.8rem;
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.9);
}

.file-selector {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.file-selector:hover {
    box-shadow: var(--shadow-hover);
}

.file-selector h2 {
    margin-top: 0;
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.8rem;
    font-weight: 600;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
}

.file-selector h2::before {
    content: '📁';
    margin-right: 10px;
    font-size: 1.3rem;
}

.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.2rem;
}

.file-item {
    background-color: var(--light);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    padding: 10px 16px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.2);
    color: var(--text);
}

.file-item::before {
    content: '📄';
    margin-right: 8px;
    font-size: 1rem;
}

.file-item:hover {
    background-color: var(--dark);
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.4);
    border-color: var(--secondary);
}

.file-item.active {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.2) 0%, rgba(0, 255, 255, 0.2) 100%);
    color: var(--secondary);
    border: 1px solid var(--secondary);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

.results-container {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.8rem;
    margin-bottom: 1rem;
    transition: var(--transition);
    border-top: 2px solid var(--primary);
    border-left: 1px solid var(--primary-light);
    border-right: 1px solid var(--primary-light);
    border-bottom: 1px solid var(--primary-light);
}

.card:hover {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.card#processingTimesCard {
    animation: glowPulse 10s infinite linear;
}

@keyframes neonPulse {
    0% { color: #0ff; text-shadow: 0 0 5px rgba(0, 255, 255, 0.7); }
    20% { color: #f0f; text-shadow: 0 0 5px rgba(255, 0, 255, 0.7); }
    40% { color: #0f0; text-shadow: 0 0 5px rgba(0, 255, 0, 0.7); }
    60% { color: #ff0; text-shadow: 0 0 5px rgba(255, 255, 0, 0.7); }
    80% { color: #f70; text-shadow: 0 0 5px rgba(255, 119, 0, 0.7); }
    100% { color: #0ff; text-shadow: 0 0 5px rgba(0, 255, 255, 0.7); }
}

@keyframes borderPulse {
    0% { border-bottom-color: #0ff; }
    20% { border-bottom-color: #f0f; }
    40% { border-bottom-color: #0f0; }
    60% { border-bottom-color: #ff0; }
    80% { border-bottom-color: #f70; }
    100% { border-bottom-color: #0ff; }
}

.card h2 {
    margin-top: 0;
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.8rem;
    font-weight: 600;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    cursor: pointer;
    user-select: none;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.7);
    animation: neonPulse 10s infinite linear, borderPulse 10s infinite linear;
}

.card h2::after {
    content: '▼';
    margin-left: auto;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.card.collapsed h2::after {
    transform: rotate(-90deg);
}

.card-content {
    transition: max-height 0.5s ease, opacity 0.3s ease;
    max-height: 2000px;
    opacity: 1;
    overflow: hidden;
}

.card.collapsed .card-content {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

#processingTimesCard h2::before {
    content: '⏱️';
    margin-right: 10px;
}

.chart-container {
    background-color: var(--dark);
    padding: 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--primary);
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.2);
    margin-top: 1rem;
}

.chart-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.chart-option {
    background-color: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 12px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.chart-option:hover {
    background-color: #e9ecef;
}

.chart-option.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-color: var(--primary);
}

#metadataCard h2::before {
    content: '🔍';
    margin-right: 10px;
}

#inputCard h2::before {
    content: '📥';
    margin-right: 10px;
}

#promptCard h2::before {
    content: '💬';
    margin-right: 10px;
}

#responsesCard h2::before {
    content: '🤖';
    margin-right: 10px;
}

#errorsCard h2::before {
    content: '⚠️';
    margin-right: 10px;
}

.metadata {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.metadata-item {
    background-color: var(--dark);
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
    transition: var(--transition);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.15);
}

.metadata-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.3);
    border-left: 3px solid var(--secondary);
}

.metadata-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metadata-item span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    word-break: break-word;
}

.model-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.model-tab {
    padding: 10px 16px;
    cursor: pointer;
    border-radius: var(--radius);
    background-color: var(--light);
    border: 1px solid var(--primary);
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    color: var(--text);
}

.model-tab::before {
    content: '🔹';
    margin-right: 8px;
    font-size: 0.9rem;
}

.model-tab:hover {
    background-color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.4);
    border-color: var(--secondary);
    color: var(--secondary);
}

.model-tab.active {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.2) 0%, rgba(0, 255, 255, 0.2) 100%);
    color: var(--secondary);
    border: 1px solid var(--secondary);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

.model-tab.active::before {
    content: '✓';
}

.model-content-container {
    max-height: 600px;
    overflow-y: auto;
}

.model-content {
    display: none;
    padding: 1.5rem;
    background-color: var(--dark);
    border-radius: var(--radius);
    border: 1px solid var(--primary);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.model-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.model-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.response-text {
    white-space: pre-wrap;
    background-color: var(--dark);
    padding: 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--primary);
    max-height: 500px;
    overflow-y: auto;
    font-family: 'Inter', monospace;
    line-height: 1.6;
    font-size: 0.95rem;
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.2);
    color: var(--text);
}

.error-text {
    white-space: pre-wrap;
    background-color: rgba(255, 0, 0, 0.1);
    color: #ff5555;
    padding: 1.2rem;
    border-radius: var(--radius);
    border: 1px solid #ff5555;
    font-family: 'Inter', monospace;
    line-height: 1.6;
    font-size: 0.95rem;
    box-shadow: inset 0 0 10px rgba(255, 0, 0, 0.2);
}

.processing-time {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-top: 0.8rem;
    display: flex;
    align-items: center;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
}

.processing-time::before {
    content: '⏱️';
    margin-right: 6px;
}

.prompt-text {
    white-space: pre-wrap;
    background-color: var(--dark);
    padding: 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--primary);
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Inter', monospace;
    line-height: 1.6;
    font-size: 0.95rem;
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.2);
    color: var(--text);
}

.input-text {
    white-space: pre-wrap;
    background-color: var(--dark);
    padding: 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--primary);
    max-height: 250px;
    overflow-y: auto;
    font-family: 'Inter', monospace;
    line-height: 1.6;
    font-size: 0.95rem;
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.2);
    color: var(--text);
}

.comparison-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    max-height: 800px;
    overflow-y: auto;
}

.comparison-item {
    padding: 1.2rem;
    background-color: var(--dark);
    border-radius: var(--radius);
    border: 1px solid var(--primary);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    transition: var(--transition);
}

.comparison-item:hover {
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
    transform: translateY(-3px);
    border-color: var(--secondary);
}

.comparison-item h3 {
    margin-top: 0;
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    animation: neonPulse 10s infinite linear, borderPulse 10s infinite linear;
}

.comparison-item h3::before {
    content: '🔹';
    margin-right: 8px;
}

.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

.loading::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid var(--dark);
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.toggle-view-btn {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.3) 0%, rgba(255, 0, 255, 0.3) 100%);
    color: var(--text);
    border: 1px solid var(--primary);
    padding: 12px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.toggle-view-btn::before {
    content: '🔄';
    margin-right: 8px;
}

.toggle-view-btn:hover {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.4) 0%, rgba(0, 255, 255, 0.4) 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
    border-color: var(--secondary);
}

.hidden {
    display: none;
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--dark) 0%, #222 100%);
    color: var(--primary);
    border-radius: var(--radius);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--primary);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    animation: glowPulse 10s infinite linear;
}

footer p {
    animation: neonPulse 10s infinite linear;
}

footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,255,255,0.1) 0%, rgba(0,255,255,0) 70%);
    pointer-events: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: #111;
}

::-webkit-scrollbar-track {
    background: #222;
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #0ff, #f0f);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #f0f, #0ff);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.6rem;
    }
    
    .card {
        padding: 1.2rem;
    }
    
    .comparison-view {
        grid-template-columns: 1fr;
    }
    
    .metadata {
        grid-template-columns: 1fr;
    }
}
