* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f0f4ff 0%, #fafbff 40%, #f5f0ff 100%);
    min-height: 100vh;
}

.glass {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: 0 4px 24px -4px rgba(100, 116, 139, 0.08), 0 1px 3px rgba(100, 116, 139, 0.04);
    transition: all 0.25s cubic-bezier(.4, 0, .2, 1);
}

.card:hover {
    box-shadow: 0 8px 32px -4px rgba(100, 116, 139, 0.12), 0 2px 6px rgba(100, 116, 139, 0.06);
}

.soft-input {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-size: 0.8125rem;
}

.soft-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #fff;
}

.btn {
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8125rem;
    transition: all 0.2s cubic-bezier(.4, 0, .2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    cursor: pointer;
    border: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 4px 14px -3px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px -3px rgba(37, 99, 235, 0.5);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #fff;
    color: #475569;
    border: 1.5px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1.5px solid #fecaca;
}

.btn-danger:hover {
    background: #fee2e2;
    border-color: #f87171;
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 4px 14px -3px rgba(22, 163, 74, 0.35);
}

.btn-success:hover {
    box-shadow: 0 6px 20px -3px rgba(22, 163, 74, 0.45);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: #64748b;
    padding: 6px 10px;
}

.btn-ghost:hover {
    background: #f1f5f9;
    color: #334155;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
}

.badge-running {
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.badge-success {
    background: rgba(34, 197, 94, 0.08);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.15);
}

.badge-failed {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.badge-queued {
    background: rgba(245, 158, 11, 0.08);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.badge-notrun {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.badge-private {
    background: rgba(168, 85, 247, 0.08);
    color: #7c3aed;
    border: 1px solid rgba(168, 85, 247, 0.15);
}

.badge-public {
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .5;
        transform: scale(0.85);
    }
}

.pulse-running {
    animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.35s ease-out forwards;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.table-row {
    transition: background 0.15s ease;
}

.table-row:hover {
    background: #f8fafc;
}

.metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.terminal {
    background: #0f172a;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    line-height: 1.7;
    border-radius: 16px;
    border: 1px solid #1e293b;
}

.repo-card-hover {
    transition: all 0.2s ease;
}

.repo-card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -6px rgba(100, 116, 139, 0.15);
}

.tooltip-wrap {
    position: relative;
}

.tooltip-wrap .tip {
    visibility: hidden;
    position: absolute;
    z-index: 50;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.6875rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
}

.tooltip-wrap:hover .tip {
    visibility: visible;
    opacity: 1;
}

.inline-edit {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 2px 6px;
    transition: all 0.15s;
    width: 100%;
}

.inline-edit:hover {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.inline-edit:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}