/* Custom animations and micro-interactions for TimberTrace */

/* Staggered fade-in for cards */
.card-enter {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scale effect for stat cards */
.stat-card {
    animation: scaleIn 0.4s ease-out forwards;
    opacity: 0;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Table row hover effect */
.table-row-enter {
    transition: all 0.2s ease-out;
}

.table-row-enter:hover {
    background-color: rgba(201, 168, 124, 0.08);
    transform: translateX(4px);
}

/* Button pulse effect */
@keyframes pulse-wood {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(201, 168, 124, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(201, 168, 124, 0);
    }
}

.btn-pulse:hover {
    animation: pulse-wood 1.5s infinite;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(201, 168, 124, 0.3);
    border-top-color: #c9a87c;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Gradient border effect for featured cards */
.gradient-border {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #faf8f5 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    bottom: -2px;
    left: -2px;
    background: linear-gradient(135deg, #c9a87c 0%, #4a7c59 100%);
    border-radius: inherit;
    z-index: -1;
}
