
@tailwind base;
@tailwind components;
@tailwind utilities;

/* AgentForge Layer Badge Styles */
.layer-badge {
    @apply px-2 py-0.5 rounded text-[10px] font-bold uppercase tracking-wider;
}

.layer-orchestration {
    @apply bg-blue-500/20 text-blue-400 border border-blue-500/30;
}

.layer-routing {
    @apply bg-purple-500/20 text-purple-400 border border-purple-500/30;
}

.layer-runtime {
    @apply bg-pink-500/20 text-pink-400 border border-pink-500/30;
}

.layer-data {
    @apply bg-cyan-500/20 text-cyan-400 border border-cyan-500/30;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Card animations */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
}

/* Progress bar animations */
.progress-bar {
    transition: width 0.5s ease-out;
}

/* Tool call pulse effect */
@keyframes pulse-tool {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
    }
}

.tool-active {
    animation: pulse-tool 1.5s infinite;
}

/* Code diff styling */
.diff-added {
    background-color: rgba(34, 197, 94, 0.15);
    border-left: 3px solid #22c55e;
}

.diff-removed {
    background-color: rgba(239, 68, 68, 0.15);
    border-left: 3px solid #ef4444;
}

/* Status indicators */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-running {
    background-color: #fbbf24;
    animation: blink 1s infinite;
}

.status-success {
    background-color: #22c55e;
}

.status-failed {
    background-color: #ef4444;
}

.status-pending {
    background-color: #6b7280;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Table styling */
.eval-table {
    @apply w-full text-sm;
}

.eval-table th {
    @apply text-left py-3 px-4 text-slate-400 font-medium bg-slate-800/50;
}

.eval-table td {
    @apply py-3 px-4 border-b border-slate-700/50;
}

.eval-table tr:hover td {
    @apply bg-slate-800/30;
}

/* Modal backdrop */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

/* Loading spinner */
.spinner {
    border: 3px solid #1e293b;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Badge styling */
.badge {
    @apply px-2 py-0.5 rounded-full text-xs font-medium;
}

.badge-success {
    @apply bg-green-500/20 text-green-400;
}

.badge-warning {
    @apply bg-yellow-500/20 text-yellow-400;
}

.badge-error {
    @apply bg-red-500/20 text-red-400;
}

.badge-info {
    @apply bg-blue-500/20 text-blue-400;
}