@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fadeIn { animation: fadeIn 0.3s ease-out; }
.animate-scaleIn { animation: scaleIn 0.2s ease-out; }
.animate-slideUp { animation: slideUp 0.4s ease-out; }

/* Toast styles */
.toast {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    animation: slideUp 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 360px;
}
.toast-success { background: #059669; color: white; }
.toast-error { background: #dc2626; color: white; }

/* Server action buttons — show on hover */
.server-actions { opacity: 0; transition: opacity 0.15s; }
tr:hover .server-actions,
.server-card:hover .server-actions { opacity: 1; }

/* Group collapse */
.group-body { overflow: hidden; transition: max-height 0.3s ease-out; }
.group-body.collapsed { max-height: 0 !important; }

/* Drag and drop */
.server-card[draggable] { cursor: grab; }
.server-card[draggable]:active { cursor: grabbing; }
.drag-table tr[draggable] .drag-handle { cursor: grab; }
.drag-table tr[draggable]:active .drag-handle { cursor: grabbing; }
.server-card.opacity-40 { opacity: 0.4; }
.server-card.scale-95 { transform: scale(0.95); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }
