﻿/* Efecto base para el skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Skeleton específico para la card */
.skeleton-card {
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Simulación de imagen de la card */
.skeleton-card-image {
    width: 100%;
    height: 180px;
    margin-bottom: 16px;
    border-radius: 8px;
}

/* Simulación de título de la card */
.skeleton-card-title {
    width: 70%;
    height: 20px;
    margin-bottom: 12px;
}

/* Simulación del texto de la card */
.skeleton-card-text {
    width: 100%;
    height: 14px;
    margin-bottom: 8px;
}

/* Variación para un texto más corto */
.skeleton-card-text-short {
    width: 60%;
}

.skeleton-button {
    width: 100px;
    height: 36px;
    border: none;
    cursor: not-allowed;
}

/* Skeleton específico para un input */
.skeleton-input {
    width: 100%;
    height: 38px;
    border: none;
}

/* Skeleton específico para un textarea */
.skeleton-textarea {
    width: 100%;
    height: 80px;
    border: none;
}

/* Skeleton genérico para celdas */
.skeleton-cell {
    height: 20px;
    padding: 10px 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Usando la clase en la tabla */
.skeleton-table td {
    min-width: 100px;
}

/* Skeleton para los botones circulares */
.skeleton-circle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.skeleton-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: none;
    background-image: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Espaciado entre filas del cuerpo de la tabla */
.skeleton-table tbody tr {
    display: block;
    margin-bottom: 10px;
}

/* Evitar margen extra en la última fila */
.skeleton-table tbody tr:last-child {
    margin-bottom: 0;
}

/* Efecto de shimmer */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}
