/* Professional UI/UX transitions and animations */

/* Smooth transitions for interactive elements */
.btn, .card, .form-control, .form-select, .nav-link, a {
    transition: all 0.2s ease-in-out;
}

/* Card hover effects */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Button hover effects */
.btn {
    transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out, box-shadow 0.2s ease-in-out;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

/* Form input focus effects */
.form-control:focus, .form-select:focus {
    transform: scale(1.01);
    box-shadow: 0 0 0 0.2rem rgba(11, 31, 62, 0.25);
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-border {
    animation: spin 0.75s linear infinite;
}

/* Fade in animation for content */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* Smooth page transitions */
.page-transition {
    animation: fadeIn 0.3s ease-in-out;
}

/* Alert animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert {
    animation: slideIn 0.3s ease-in-out;
}

/* Table row hover */
.table tbody tr {
    transition: background-color 0.15s ease-in-out;
}

.table tbody tr:hover {
    background-color: rgba(11, 31, 62, 0.05);
}

/* Modal animations */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: translate(0, 0);
}

/* Badge pulse for notifications */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.badge-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Image loading placeholder */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Breadcrumb transitions */
.breadcrumb-item a {
    transition: color 0.2s ease-in-out;
}

.breadcrumb-item a:hover {
    color: var(--bs-primary);
}

/* Search result card animations */
.search-result-card {
    transition: all 0.2s ease-in-out;
}

.search-result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Loading overlay fade */
.loading-overlay {
    transition: opacity 0.3s ease-in-out;
}

/* Smooth transitions for dropdowns */
.dropdown-menu {
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.dropdown-menu.show {
    animation: fadeIn 0.2s ease-in-out;
}





