/* Kekuli AI Custom Styles */

/* Line clamp utility for text truncation */
.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

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

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

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

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

/* Animation for approval cards */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.approval-card-enter {
    animation: slideIn 0.3s ease-out;
}

/* Pulse animation for notification badge */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.animate-pulse {
    animation: pulse 1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Loading spinner */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Focus states for accessibility */
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Hover states for cards */
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Agent colors */
.agent-business-admin {
    color: #10B981;
}

.agent-customer-service {
    color: #3B82F6;
}

.agent-marketing {
    color: #8B5CF6;
}

/* Modal overlay */
.modal-overlay {
    backdrop-filter: blur(4px);
}

/* Skeleton loading */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Transition utilities */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Print styles */
@media print {
    header,
    .no-print {
        display: none !important;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .approval-card {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Artifact execution status transitions */
.approval-item {
    transition: background-color 0.3s ease, opacity 1s ease, border-left-color 0.3s ease;
}

.approval-item.bg-green-50 {
    background-color: #f0fdf4;
    border-left: 4px solid #22c55e !important;
}

.approval-item.bg-red-50 {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444 !important;
}

/* Smooth status badge transitions */
.status-badge {
    transition: all 0.3s ease;
}

/* Execution status animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.approval-item.bg-green-50,
.approval-item.bg-red-50 {
    animation: fadeIn 0.4s ease-out;
}
