/* ============================
   🌌 ArtiGrid – Futuristic UI
   ============================ */

.artigrid-container {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    overflow: hidden;
    transition: all .25s ease;
}

.artigrid-container:hover {
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ============================
   🔍 Search
   ============================ */

.artigrid-search {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgb(0 0 0 / 30%);
    padding-left: 1rem;
    transition: all .2s ease;
}

.artigrid-search:focus {
    background: #fff;
    border-color: #6366f1;
    box-shadow: 0 0 0 .15rem rgba(99, 102, 241, 0.25);
}

/* ============================
   📊 Table
   ============================ */

.artigrid-table {
    border-collapse: separate;
    border-spacing: 0;
}

.artigrid-table thead th {
    background: linear-gradient(
        180deg,
        rgba(99, 102, 241, 0.08),
        rgba(99, 102, 241, 0.02)
    );
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #4f46e5;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.artigrid-table tbody tr {
    transition: background .15s ease, transform .15s ease;
}

.artigrid-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.04);
    transform: translateY(-1px);
}

.artigrid-table td {
    font-size: .85rem;
    color: #1f2937;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    white-space: nowrap;
}

/* ============================
   🧩 Action buttons
   ============================ */

.artigrid-table .btn {
    padding: .25rem .55rem;
    border-radius: .5rem;
    font-size: .75rem;
    transition: all .15s ease;
}

/* ============================
   🔘 Pagination
   ============================ */

.artigrid-pagination .page-link {
    border: none;
    margin: 0 .15rem;
    border-radius: .5rem;
    font-size: .75rem;
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.08);
    transition: all .15s ease;
}

.artigrid-pagination .page-link:hover {
    background: rgba(99, 102, 241, 0.2);
}

.artigrid-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.45);
}

/* ============================
   ⏳ Spinner Overlay Fullscreen
   ============================ */

.artigrid-spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(31, 41, 55, 0.4);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.artigrid-spinner {
    width: 80px;   /* puedes ajustar tamaño */
    height: 80px;
    position: absolute;
    top: 15%;
    left: 35%;
    background: url('../img/loading.png') center / contain no-repeat;

    border: none;
    filter: drop-shadow(0 0px 3px rgba(0, 0, 0, 10));
}

.form-control-sm {
    max-width: 100%;
    min-width: 200px;
}

.artigrid-table .artigrid-row:hover td.artigrid-buttons-actions {
    position: sticky;
    right: 0;
}