:root {
    --primary-color: #3b82f6;
    --secondary-color: #10b981;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --border-color: #374151;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f6;
    --bg-tertiary: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #d1d5db;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.tab-active {
    background-color: var(--bg-primary) !important;
    border-bottom: 2px solid var(--primary-color);
}

.module-item {
    transition: all 0.3s ease;
}

.module-item:hover {
    transform: translateX(4px);
    background-color: var(--bg-tertiary);
}

.version-item {
    transition: all 0.2s ease;
    cursor: pointer;
}

.version-item:hover {
    background-color: var(--bg-tertiary);
    transform: scale(1.02);
}

.action-button {
    transition: all 0.2s ease;
}

.action-button:hover {
    transform: scale(1.05);
}

.action-button:active {
    transform: scale(0.95);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* CodeMirror customizations */
.CodeMirror {
    height: 100%;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 14px;
}

.CodeMirror-merge {
    height: 100%;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.3s ease;
}

/* Loading animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    to {
        left: 100%;
    }
}