body {
    background: #f4f6f9;
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* ---------- Pantalla de carga ---------- */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(2px);
    cursor: wait;
}
.loading-overlay.d-none { display: none !important; }
.loading-box {
    background: #fff;
    border-radius: 12px;
    padding: 28px 32px;
    text-align: center;
    max-width: 360px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.loading-box .spinner-border { width: 3rem; height: 3rem; }

/* ---------- Modal de confirmación y notificaciones ---------- */
.confirm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
    background: #e7f1ff;
    color: #0d6efd;
}
.confirm-icon.confirm-danger { background: #fde8ea; color: #dc3545; }
.confirm-icon.confirm-warning { background: #fff4d6; color: #b58100; }
.confirm-icon.confirm-success { background: #e3f4ea; color: #198754; }
#confirm-message { color: #495057; }
.toast-container { z-index: 2100; }

/* ---------- Tablero de proveedores ---------- */
.board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.board-col {
    border-top: 4px solid #adb5bd;
    transition: opacity .15s, box-shadow .15s;
}
.board-col.state-up { border-top-color: #198754; }
.board-col.state-degraded { border-top-color: #ffc107; }
.board-col.state-down { border-top-color: #dc3545; background: #fff5f5; }

.board-metrics { display: flex; flex-wrap: wrap; gap: 4px 12px; color: #495057; }

.board-drop {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Mientras se arrastra: resaltar destinos válidos y apagar los bloqueados. */
.board.dragging .board-drop[data-accepts="1"] { outline: 2px dashed #0d6efd; outline-offset: -6px; border-radius: 6px; }
.board.dragging .board-drop[data-accepts="0"] { opacity: .45; cursor: not-allowed; }
.board.dragging .board-empty { display: none; }

.pool-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    cursor: grab;
    user-select: none;
}
.pool-card:active { cursor: grabbing; }
.pool-borrowed { border-color: #ffc107; background: #fffbea; }
.pool-ghost { opacity: .4; }
.pool-saving { opacity: .6; pointer-events: none; }

.login-card {
    width: 100%;
    max-width: 400px;
    border: 0;
    border-radius: 12px;
}
