﻿/*
    Cabinet themed animated loading indicator
*/

.cabinet-loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
}

.cabinet-body {
    display: inline-grid;
    grid-template-columns: repeat(3, 80px);
    grid-template-rows: repeat(4, 48px);
    gap: 6px;
    /* background: linear-gradient(160deg, #3a3a3a 0%, #1e1e1e 100%); */
    background: #2d2d2d;
    border: 4px solid #555;
    border-radius: 6px;
    padding: 10px;
    /* box-shadow: 0 6px 24px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.07); */
}

.cabinet-drawer-slot {
    /* background: linear-gradient(180deg, #6b7280 0%, #4b5563 60%, #374151 100%); */
    background: #4b5563;
    border: 1px solid #1f2937;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* box-shadow: inset 0 2px 3px rgba(255,255,255,0.08), inset 0 -2px 3px rgba(0,0,0,0.3); */
    animation: drawerPulse 1.8s ease-in-out infinite;
    position: relative;
}

.drawer-pull {
    display: block;
    width: 28px;
    height: 5px;
    /* background: linear-gradient(90deg, #9ca3af, #d1d5db, #9ca3af); */
    background: #9ca3af;
    border-radius: 3px;
    /* box-shadow: 0 1px 2px rgba(0,0,0,0.5); */
}

@keyframes drawerPulse {
    0% {
        transform: translateX(0);
        /* background: linear-gradient(180deg, #6b7280 0%, #4b5563 60%, #374151 100%); */
        background: #4b5563;
        /* box-shadow: inset 0 2px 3px rgba(255,255,255,0.08), inset 0 -2px 3px rgba(0,0,0,0.3); */
    }

    50% {
        transform: translateX(7px);
        /* background: linear-gradient(180deg, #93c5fd 0%, #3b82f6 60%, #1d4ed8 100%); */
        background: #3b82f6;
        /* box-shadow: 0 0 10px rgba(59,130,246,0.7), inset 0 2px 3px rgba(255,255,255,0.15); */
    }

    100% {
        transform: translateX(0);
        /* background: linear-gradient(180deg, #6b7280 0%, #4b5563 60%, #374151 100%); */
        background: #4b5563;
        /* box-shadow: inset 0 2px 3px rgba(255,255,255,0.08), inset 0 -2px 3px rgba(0,0,0,0.3); */
    }
}
/* Staggered delays across all 12 drawers (4 rows x 3 cols, left-to-right, top-to-bottom) */
.cabinet-drawer-slot:nth-child(1) {
    animation-delay: 0.00s;
}

.cabinet-drawer-slot:nth-child(2) {
    animation-delay: 0.15s;
}

.cabinet-drawer-slot:nth-child(3) {
    animation-delay: 0.30s;
}

.cabinet-drawer-slot:nth-child(4) {
    animation-delay: 0.45s;
}

.cabinet-drawer-slot:nth-child(5) {
    animation-delay: 0.60s;
}

.cabinet-drawer-slot:nth-child(6) {
    animation-delay: 0.75s;
}

.cabinet-drawer-slot:nth-child(7) {
    animation-delay: 0.90s;
}

.cabinet-drawer-slot:nth-child(8) {
    animation-delay: 1.05s;
}

.cabinet-drawer-slot:nth-child(9) {
    animation-delay: 1.20s;
}

.cabinet-drawer-slot:nth-child(10) {
    animation-delay: 1.35s;
}

.cabinet-drawer-slot:nth-child(11) {
    animation-delay: 1.50s;
}

.cabinet-drawer-slot:nth-child(12) {
    animation-delay: 1.65s;
}

.cabinet-loader-label {
    margin-top: 1.4rem;
    text-align: center;
    color: #337ab7;
}

    .cabinet-loader-label strong {
        font-size: 2.2rem;
    }

    .cabinet-loader-label small {
        display: block;
        margin-top: 0.3rem;
        color: #666;
        font-size: 1.5rem;
    }
