/* Padronização do Fundo dos Painéis */
.glass { 
    background: rgba(30, 41, 59, 0.85); 
    backdrop-filter: blur(12px); 
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.glass-active {
    border: 1px solid #f59e0b !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

/* Container do Mapa */
#gridContainer {
    background-color: #475569;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: auto; /* Permite rolar suavemente caso aplique muito zoom */
}

.mapa-sala {
    display: grid;
    gap: 6px;
    padding: 8px;
    position: relative;
    width: fit-content;
    height: fit-content;
    margin: auto;
}

/* PC Card Compacto no Mapa */
.pc-card {
    /* Define largura e altura dinâmicas: mínimo 28px, ideal 3.2vw, máximo 44px */
    width: clamp(28px, 3.2vw, 44px);
    height: clamp(28px, 3.2vw, 44px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: clamp(10px, 1vw, 13px);
    user-select: none;
    border-radius: 6px;
}

.porta-card {
    width: clamp(28px, 3.2vw, 44px);
    height: clamp(28px, 3.2vw, 44px);
    user-select: none;
}


/* Container do Mapa */
/* #gridContainer {
    background-color: #475569; 
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.mapa-sala {
    display: grid;
    gap: 4px;
    padding: 8px;
    position: relative;
    width: fit-content;
    height: fit-content;
    margin: auto;
} */

/* PC Card Compacto no Mapa */

/* .pc-card {
    aspect-ratio: 1; // Mantém o elemento sempre quadrado 
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    user-select: none;
}*/
/*
.pc-card {
    aspect-ratio: 1 / 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}


.pc-card {
    width: 52px;       
    height: 52px;     
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border: 1px solid rgba(0,0,0,0.4); 
    border-radius: 8px; 
    font-weight: 800;
    transition: all 0.15s ease;
    cursor: pointer;

    font-size: 0.75rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
*/

.pc-card:hover {
    transform: scale(1.15);
    z-index: 50;
    border-color: white;
}

.pc-card.selected {
    outline: 2px solid #f59e0b;
    outline-offset: 1px;
    z-index: 40;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.9);
}

.status-on { background-color: #10b981; color: white; }
.status-off { background-color: #ef4444; color: white; }

/* Estilo para Caixa do Sequencial */
.seq-box {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #f59e0b;
    font-weight: 800;
    font-size: 0.75rem;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

/* Lista Lateral de PCs */
.pc-list-item {
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
    transition: all 0.2s;
}

.pc-list-item:hover { background: rgba(245, 158, 11, 0.08); }

.pc-list-item.selected-item { 
    background: rgba(245, 158, 11, 0.15); 
    border-left: 3px solid #f59e0b;
}

.pc-list-item.selected-item .seq-box {
    background: #f59e0b;
    color: #0f172a;
    border-color: #f59e0b;
}

/* Checkbox Customizado */
.checkbox-custom {
    width: 16px;
    height: 16px;
    border: 1px solid #f59e0b;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background-color: rgba(15, 23, 42, 0.6);
}

.pc-list-item.selected-item .checkbox-custom {
    background-color: #f59e0b;
}

.pc-list-item.selected-item .checkbox-custom::after {
    content: '✓';
    color: black;
    font-size: 11px;
    font-weight: bold;
}

/* Animações e Scrollbar */
@keyframes pulse-amber {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
.scanning { animation: pulse-amber 2s infinite; }

.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(245, 158, 11, 0.3); border-radius: 4px; }