/* Animations & Micro-interactions */

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

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

.fade-in {
    /* animation: fadeIn 0.5s ease-out; */
}

.slide-in {
    /* animation: slideInRight 0.4s ease-out; */
}

.btn {
    /* transition: all 0.3s ease; */
}

.btn-loading {
    pointer-events: none;
    position: relative;
    color: transparent !important;
}

.btn-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    /* animation: spin 0.8s linear infinite; */
}

.form-input,
.form-textarea,
.form-select {
    /* transition: all 0.3s ease; */
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    box-shadow: 0 4px 12px rgba(143, 171, 143, 0.2);
}

.error-message {
    /* animation: slideInRight 0.3s ease-out; */
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.error-message::before {
    content: '⚠';
    font-size: 14px;
}

.success-message {
    /* animation: slideInRight 0.3s ease-out; */
    color: #10b981;
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.success-message::before {
    content: '✓';
    font-size: 14px;
}

.loading-skeleton {
    background: var(--surface-elevated);
    /* animation: pulse 1.5s ease-in-out infinite; */
    border-radius: var(--radius-md);
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--surface-card);
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    min-width: 300px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    /* animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1); */
}

.toast.success {
    border-color: #10b981;
}

.toast.error {
    border-color: #ef4444;
}

.toast.info {
    border-color: #3b82f6;
}

.toast-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.toast-icon {
    font-size: 24px;
}

.toast-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.toast-message {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

@media (max-width: 768px) {
    .toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        min-width: auto;
    }
}


.hover-lift {
    /* transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); */
}

.hover-lift:hover {
    /* transform: translateY(-4px); */
    /* box-shadow: 0 8px 24px rgba(143, 171, 143, 0.3); */
}

.page-transition {
    /* animation: fadeIn 0.4s ease-out; */
}

