/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.2);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.4);
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Framer-style Motion Animations ===== */

/* Fade Up - main entrance animation */
.motion-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--motion-delay, 0s);
}
.motion-fade-up.motion-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade Down - for flash messages */
.motion-fade-down {
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--motion-delay, 0s);
}
.motion-fade-down.motion-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scale In - for logos, hero images */
.motion-scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--motion-delay, 0s);
}
.motion-scale-in.motion-visible {
    opacity: 1;
    transform: scale(1);
}

/* Card hover effects */
.group {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease;
}
.group:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.08);
}

/* Button press effect */
button:active, a:active {
    transition-duration: 0.1s;
}

/* Focus ring for inputs */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Smooth table row transitions */
tr {
    transition: background-color 0.15s ease;
}

/* File input styling */
input[type="file"]::file-selector-button {
    cursor: pointer;
}

/* Selection color */
::selection {
    background: rgba(124, 58, 237, 0.3);
    color: white;
}
