/**
 * UX Feedback & Micro-interactions Styles
 */

/* --- Skeleton Screens --- */
.skeleton {
    background-color: #e9ecef;
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0)
    );
    background-size: 200% 100%;
    background-repeat: no-repeat;
    animation: skeleton-shimmer 1.5s infinite linear;
    border-radius: 4px;
    display: inline-block;
    min-height: 1em;
}

[data-bs-theme=dark] .skeleton {
    background-color: #343a40;
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0.1) 60%,
        rgba(255, 255, 255, 0)
    );
}


@keyframes skeleton-shimmer {
    to {
        background-position: -200% 0;
    }
}

.skeleton-text {
    width: 100%;
    height: 0.8em;
    margin-bottom: 0.5rem;
}

.skeleton-rect {
    width: 100%;
    height: 100px;
}

.skeleton-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-table-row td {
    padding: 1rem;
}

/* --- Micro-interactions: Modals --- */
.modal.fade .modal-dialog {
    transform: scale(0.9);
    transition: transform 0.25s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* --- Micro-interactions: Tabs --- */
.tab-content > .tab-pane {
    display: block;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-content > .active {
    height: auto;
    opacity: 1;
    transform: translateY(0);
}

/* --- Micro-interactions: Action Icons --- */
.action-icon {
    transition: transform 0.2s ease, filter 0.2s ease;
}

.action-link:active .action-icon {
    transform: scale(0.85);
}
