/* UX Enhancements CSS for IBMS */

/* Loading animations */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color, #336699);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Form enhancements */
.form-control:focus {
    border-color: var(--primary-color, #336699);
    box-shadow: 0 0 0 0.2rem rgba(51, 102, 153, 0.25);
}

/* Card hover effects */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Toast notifications */
.toast {
    border-left: 4px solid var(--primary-color, #336699);
}

.toast.success {
    border-left-color: #28a745;
}

.toast.error {
    border-left-color: #dc3545;
}

.toast.warning {
    border-left-color: #ffc107;
}

/* Smooth transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Focus indicators for accessibility */
.btn:focus,
.form-control:focus,
a:focus {
    outline: 2px solid var(--primary-color, #336699);
    outline-offset: 2px;
}

/* Progress bars */
.progress-bar {
    transition: width 0.6s ease;
}

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

.modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Dropdown enhancements */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 6px;
}

.dropdown-item:hover {
    background-color: var(--primary-color, #336699);
    color: white;
}

/* Pagination enhancements */
.page-link {
    transition: all 0.2s ease;
}

.page-link:hover {
    transform: translateY(-1px);
}

/* Table enhancements */
.table thead th {
    position: sticky;
    top: 0;
    background-color: var(--primary-color, #336699);
    color: white;
    z-index: 10;
}

.table-hover tbody tr:hover {
    background-color: rgba(51, 102, 153, 0.1);
}

/* Status indicators */
.status-badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

.status-active { background-color: #28a745; color: white; }
.status-inactive { background-color: #6c757d; color: white; }
.status-pending { background-color: #ffc107; color: #212529; }
.status-error { background-color: #dc3545; color: white; }