/* Drakon AI Monitor - Custom Styles */

/* These are custom styles that extend Tailwind */

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

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Code blocks */
pre, code {
    font-family: 'Fira Code', 'Consolas', monospace;
}

.code-diff-added {
    background-color: #dcfce7;
    border-left: 3px solid #22c55e;
}

.code-diff-removed {
    background-color: #fee2e2;
    border-left: 3px solid #ef4444;
}

/* Error severity badges */
.severity-critical {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.severity-high {
    background-color: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.severity-medium {
    background-color: #fefce8;
    color: #854d0e;
    border: 1px solid #fef08a;
}

.severity-low {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
}

.toast-success {
    background-color: #10b981;
    color: white;
}

.toast-error {
    background-color: #ef4444;
    color: white;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
